{"components":{"schemas":{"Envelope":{"properties":{"record":{"type":"object"},"records":{"items":{"type":"object"},"type":"array"},"schemaVersion":{"const":1,"type":"integer"}},"type":"object"}}},"info":{"description":"Static documents, source-backed records and fixed pagination. No authentication in production. Staging remains protected. No server-side arbitrary search.","title":"Chanceries public read-only data API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/v1/answer-records.json.gz":{"get":{"operationId":"download_research_answers","responses":{"200":{"content":{"application/gzip":{"schema":{"format":"binary","type":"string"}}},"description":"Gzip JSON with full answers, sources, and review dates"}}}},"/api/v1/answers.json":{"get":{"operationId":"read_research_answers","responses":{"200":{"description":"Questions, answer text, canonical record URL, evidence, and original verification dates"}},"summary":"Cited question-and-answer projections from existing records; static, not a query endpoint."}},"/api/v1/appointments/index.json":{"get":{"operationId":"index_appointments","responses":{"200":{"description":"Collection directory and page links"}}}},"/api/v1/appointments/pages/{page}.json":{"get":{"operationId":"page_appointments","parameters":[{"description":"Four-digit page number, starting at 0001; follow next links.","in":"path","name":"page","required":true,"schema":{"pattern":"^\\d{4}$","type":"string"}}],"responses":{"200":{"description":"Up to 100 index records"},"404":{"description":"Page not found"}}}},"/api/v1/countries.json":{"get":{"operationId":"read_api_v1_countries_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}},"/api/v1/countries/index.json":{"get":{"operationId":"index_countries","responses":{"200":{"description":"Collection directory and page links"}}}},"/api/v1/countries/pages/{page}.json":{"get":{"operationId":"page_countries","parameters":[{"description":"Four-digit page number, starting at 0001; follow next links.","in":"path","name":"page","required":true,"schema":{"pattern":"^\\d{4}$","type":"string"}}],"responses":{"200":{"description":"Up to 100 index records"},"404":{"description":"Page not found"}}}},"/api/v1/data.zip":{"get":{"operationId":"download_api_v1_data_zip","responses":{"200":{"content":{"application/zip":{"schema":{"format":"binary","type":"string"}}},"description":"Compressed bulk download; decompress before parsing."}}}},"/api/v1/events.json":{"get":{"operationId":"read_api_v1_events_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}},"/api/v1/events/index.json":{"get":{"operationId":"index_events","responses":{"200":{"description":"Collection directory and page links"}}}},"/api/v1/events/pages/{page}.json":{"get":{"operationId":"page_events","parameters":[{"description":"Four-digit page number, starting at 0001; follow next links.","in":"path","name":"page","required":true,"schema":{"pattern":"^\\d{4}$","type":"string"}}],"responses":{"200":{"description":"Up to 100 index records"},"404":{"description":"Page not found"}}}},"/api/v1/graph.jsonld.gz":{"get":{"operationId":"download_api_v1_graph_jsonld_gz","responses":{"200":{"content":{"application/gzip":{"schema":{"format":"binary","type":"string"}}},"description":"Compressed bulk download; decompress before parsing."}}}},"/api/v1/index.json":{"get":{"operationId":"read_api_v1_index_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}},"/api/v1/people/index.json":{"get":{"operationId":"index_people","responses":{"200":{"description":"Collection directory and page links"}}}},"/api/v1/people/pages/{page}.json":{"get":{"operationId":"page_people","parameters":[{"description":"Four-digit page number, starting at 0001; follow next links.","in":"path","name":"page","required":true,"schema":{"pattern":"^\\d{4}$","type":"string"}}],"responses":{"200":{"description":"Up to 100 index records"},"404":{"description":"Page not found"}}}},"/api/v1/people/{recordKey}.json":{"get":{"operationId":"get_person","parameters":[{"description":"Copy the key from the people index; it is not the display name.","in":"path","name":"recordKey","required":true,"schema":{"pattern":"^[a-z0-9-]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"Cited person record"},"404":{"description":"Unknown record key"}}}},"/api/v1/properties/index.json":{"get":{"operationId":"index_properties","responses":{"200":{"description":"Collection directory and page links"}}}},"/api/v1/properties/pages/{page}.json":{"get":{"operationId":"page_properties","parameters":[{"description":"Four-digit page number, starting at 0001; follow next links.","in":"path","name":"page","required":true,"schema":{"pattern":"^\\d{4}$","type":"string"}}],"responses":{"200":{"description":"Up to 100 index records"},"404":{"description":"Page not found"}}}},"/api/v1/records/index.json":{"get":{"operationId":"canonical_record_index","responses":{"200":{"description":"Seven canonical record types, source ownership, snapshot digest, and date conventions."}}}},"/api/v1/records/records.json.xz":{"get":{"operationId":"canonical_records","responses":{"200":{"content":{"application/x-xz":{"schema":{"format":"binary","type":"string"}}},"description":"XZ compressed canonical references. Decompress JSON and hydrate verified pointers with the supplied reference module."}}}},"/api/v1/sources.json.gz":{"get":{"operationId":"download_api_v1_sources_json_gz","responses":{"200":{"content":{"application/gzip":{"schema":{"format":"binary","type":"string"}}},"description":"Compressed bulk download; decompress before parsing."}}}},"/catalogue.json":{"get":{"operationId":"read_catalogue_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}},"/diplomats.json":{"get":{"operationId":"read_diplomats_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}},"/people.json":{"get":{"operationId":"read_people_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}},"/relations.json":{"get":{"operationId":"read_relations_json","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON document"},"404":{"description":"Not found"}},"summary":"Retrieve the complete static document; query-string filtering is not supported."}}},"servers":[{"url":"https://chanceries.org"}]}
