{"openapi":"3.1.0","info":{"title":"Great House Farm Public Correspondence & Case Archive API","version":"2.0.0","description":"Read-only public catalogue of case-related correspondence and associated source texts concerning Great House Farm/Tŷ Mawr, Llandough, BP v Buckler, the Williams/Buckler family and named parties or reference numbers. Original source text remains hosted by the Wayback archive; undated values are not inferred."},"servers":[{"url":"https://email.bucklerfamily.estate"}],"paths":{"/api/records":{"get":{"operationId":"listFOIRecords","summary":"List all in-scope FOI/EIR records","responses":{"200":{"description":"Catalogue in JSON"}}}},"/api/search":{"get":{"operationId":"searchFOIArchive","summary":"Search the full text of the in-scope source records","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":160}}],"responses":{"200":{"description":"Matching record summaries and snippets"}}}},"/api/message":{"get":{"operationId":"readFOIEmail","summary":"Read the complete public source text for one record","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"One complete source text and metadata"},"404":{"description":"Record not in curated catalogue"}}}},"/api/thread":{"get":{"operationId":"readFOIThread","summary":"Read all source texts grouped under a subject slug","parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Messages, full text where available, and source links"}}}},"/api/export":{"get":{"operationId":"exportFOIArchive","summary":"Export the complete curated catalogue; includeText=true returns full source texts","parameters":[{"name":"includeText","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"All curated FOI/EIR records"}}}},"/api/health":{"get":{"operationId":"archiveHealth","summary":"Check archive service health","responses":{"200":{"description":"Health and version"}}}}}}