{"openapi":"3.1.0","info":{"title":"KeepCouncil API","version":"1.0.0","description":"Search city council records: places, coverage, structured records, source passages, mentions, legislation timelines, and source pages. All results with citations. votes lists recorded votes by member. unnamedVotes counts inferred and unverified votes. Free with a KeepCouncil account. Docs: /developers.","contact":{"email":"support@keepcouncil.com"}},"servers":[{"url":"https://keepcouncil.com"}],"security":[{"bearer":[]}],"paths":{"/api/v1/research/list-places":{"post":{"operationId":"list_places","summary":"List places","description":"List every place with its records window, last fetch, and counts. Call this first.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"Every place, with its window, last fetch, and counts","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"name":{"type":"string"},"timeZone":{"type":"string"},"window":{"type":"object","properties":{"from":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"to":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]}},"required":["from","to"],"additionalProperties":false},"lastFetched":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"documents":{"type":"object","propertyNames":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["agenda","packet","minutes","notice","other"]},"counts":{"type":"object","properties":{"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"legislation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"motions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["meetings","pages","legislation","motions"],"additionalProperties":false}},"required":["place","name","timeZone","window","lastFetched","documents","counts"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/coverage":{"post":{"operationId":"coverage","summary":"Show a place's coverage","description":"Show what is stored for each meeting at a place: agenda, packet, and minutes, each with a state and its reason. Use it to tell a gap in the records from no activity.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"place":{"description":"One place key from list_places, such as mo/creve-coeur.","type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"},"from":{"description":"Earliest meeting date to include, YYYY-MM-DD, such as 2026-01-01. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Latest meeting date to include, YYYY-MM-DD, such as 2026-06-30. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"asOf":{"description":"The date coverage is judged on, YYYY-MM-DD, such as 2026-11-05. Minutes not stored for a meeting less than 45 days before it count as pending, not missing. Default: the date of the place's latest fetch.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"limit":{"description":"Results per page, 1 to 100. Default 20.","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"The cursor value from the previous response, for the next page. Omit for the first page.","type":"string","maxLength":200}},"required":["place"],"additionalProperties":false},"example":{"place":"mo/creve-coeur","from":"2026-01-01"}}}},"responses":{"200":{"description":"Each meeting at the place, with the state of its agenda, packet, and minutes","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"canceled":{"type":"boolean"},"agenda":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"published"},"basis":{"type":"string","const":"stored"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"draft"},"basis":{"type":"string","const":"document_name"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"pending"},"basis":{"type":"string","const":"lag"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"reprint_only"},"basis":{"type":"string","const":"section_title"},"reprint":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["state","basis","reprint"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"absent"},"basis":{"type":"string","const":"lag_passed"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"not_expected"},"basis":{"type":"string","const":"canceled"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"unknown"},"basis":{"type":"string","enum":["not_fetched_since","none_at_place","no_lag_rule"]}},"required":["state","basis"],"additionalProperties":false}]},"packet":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"published"},"basis":{"type":"string","const":"stored"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"draft"},"basis":{"type":"string","const":"document_name"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"pending"},"basis":{"type":"string","const":"lag"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"reprint_only"},"basis":{"type":"string","const":"section_title"},"reprint":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["state","basis","reprint"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"absent"},"basis":{"type":"string","const":"lag_passed"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"not_expected"},"basis":{"type":"string","const":"canceled"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"unknown"},"basis":{"type":"string","enum":["not_fetched_since","none_at_place","no_lag_rule"]}},"required":["state","basis"],"additionalProperties":false}]},"minutes":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"published"},"basis":{"type":"string","const":"stored"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"draft"},"basis":{"type":"string","const":"document_name"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"pending"},"basis":{"type":"string","const":"lag"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"reprint_only"},"basis":{"type":"string","const":"section_title"},"reprint":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["state","basis","reprint"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"absent"},"basis":{"type":"string","const":"lag_passed"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"not_expected"},"basis":{"type":"string","const":"canceled"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"unknown"},"basis":{"type":"string","enum":["not_fetched_since","none_at_place","no_lag_rule"]}},"required":["state","basis"],"additionalProperties":false}]},"pages":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Pages with no readable text"},"excluded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Low-confidence pages, left out of passage search"}},"required":["total","unread","excluded"],"additionalProperties":false}},"required":["meeting","canceled","agenda","packet","minutes","pages"],"additionalProperties":false}},"cursor":{"description":"Pass as cursor for the next page; null when none follow","type":["string","null"]},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"truncated":{"type":"boolean","description":"True when a text field was cut; ask again with full"},"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"window":{"type":"object","properties":{"from":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"to":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]}},"required":["from","to"],"additionalProperties":false},"lastFetched":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"asOf":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"basis":{"type":"string","enum":["explicit","latest_fetch"]}},"required":["date","basis"],"additionalProperties":false}},"required":["items","cursor","total","truncated","place","window","lastFetched","asOf"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/next-meeting":{"post":{"operationId":"next_meeting","summary":"Get the council's next meeting","description":"Get the council's next regular meeting: the one the city listed, with whether its agenda is posted, or the date its usual pattern gives when none is listed. Also the last meeting held, how soon agendas and minutes are usually posted, and, until the agenda is posted, the bills that could come up for a vote.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"place":{"description":"One place key from list_places, such as mo/florissant.","type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"}},"required":["place"],"additionalProperties":false},"example":{"place":"mo/florissant"}}}},"responses":{"200":{"description":"The next meeting, listed or expected, and the bills that could come up","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"body":{"type":"string"},"next":{"anyOf":[{"oneOf":[{"type":"object","properties":{"listed":{"type":"boolean","const":true},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"name":{"type":"string"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"time":{"description":"Local time, \"19:00\"","type":["string","null"]},"agenda":{"anyOf":[{"type":"object","properties":{"items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"finalVotes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agenda items up for their final reading"}},"required":["items","finalVotes"],"additionalProperties":false},{"type":"null"}],"description":"Null until the agenda is posted"},"takePart":{"type":"object","properties":{"location":{"type":["string","null"]},"watch":{"type":["string","null"]},"comment":{"anyOf":[{"type":"object","properties":{"href":{"type":"string"},"until":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"time":{"type":["string","null"]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["href","until"],"additionalProperties":false},{"type":"null"}]},"speak":{"anyOf":[{"type":"object","properties":{"href":{"type":"string"},"until":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"time":{"type":["string","null"]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["href","until"],"additionalProperties":false},{"type":"null"}]},"portal":{"type":["string","null"]}},"required":["location","watch","comment","speak","portal"],"additionalProperties":false},"href":{"type":"string"}},"required":["listed","meeting","name","date","time","agenda","takePart","href"],"additionalProperties":false},{"type":"object","properties":{"listed":{"type":"boolean","const":false},"date":{"type":"string","description":"Expected from the usual pattern; not confirmed"},"time":{"type":["string","null"]},"usually":{"type":"string","description":"\"the 2nd and 4th Monday at 7 PM\""},"location":{"type":["string","null"]}},"required":["listed","date","time","usually","location"],"additionalProperties":false}]},{"type":"null"}]},"scheduleVaries":{"type":"boolean","description":"True when none is listed and past meetings keep no pattern to expect one from"},"lastMet":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"agendaDaysBefore":{"type":["number","null"]},"minutesDaysAfter":{"type":["number","null"]},"couldComeUp":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"slug":{"type":"string","description":"For legislation_timeline"},"title":{"type":"string"},"titleLayer":{"type":"string","enum":["source","inferred"]},"lastReading":{"type":"object","properties":{"reading":{"type":"string","enum":["first","later"]},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"}},"required":["reading","date"],"additionalProperties":false},"href":{"type":"string"}},"required":["label","slug","title","titleLayer","lastReading","href"],"additionalProperties":false},"description":"Bills that could come up, until the agenda is posted"}},"required":["place","body","next","scheduleVaries","lastMet","agendaDaysBefore","minutesDaysAfter","couldComeUp"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/officials":{"post":{"operationId":"officials","summary":"List officials and their attendance","description":"List a place's officials: each one's offices (title, district, voting rule, dates) and attendance at the meetings whose roll calls name them, with each meeting missed and its citation. Use it for who serves, who held an office, and who missed meetings.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"place":{"description":"One place key from list_places, such as mo/creve-coeur.","type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"},"date":{"description":"Only officials in office on this date, YYYY-MM-DD. Omit for everyone, current and former.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"q":{"description":"Part of a name, such as Hoffman, ignoring case.","type":"string","minLength":1,"maxLength":100},"from":{"description":"Earliest meeting date counted in attendance, YYYY-MM-DD. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Latest meeting date counted in attendance, YYYY-MM-DD. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"limit":{"description":"Results per page, 1 to 100. Default 20.","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"The cursor value from the previous response, for the next page. Omit for the first page.","type":"string","maxLength":200}},"required":["place"],"additionalProperties":false},"example":{"place":"mo/creve-coeur","date":"2026-11-01","from":"2026-01-01"}}}},"responses":{"200":{"description":"Each official, with their terms and attendance","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"href":{"type":"string","description":"KeepCouncil's page for the official, a path"},"terms":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"title":{"type":"string","description":"The office as the place writes it: \"Mayor\""},"role":{"type":"string","enum":["chief_executive","presiding_officer","pro_tem","chair","vice_chair","member","ex_officio_member"]},"district":{"description":"The seat's district: \"Ward 3\"","type":["string","null"]},"voting":{"type":"string","enum":["always","tie_only","never"],"description":"When the office votes: always, only to break a tie, or never"},"from":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"to":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}],"description":"Null while in office"},"datesConfirmed":{"type":"boolean","description":"False where the term's dates are inferred"}},"required":["body","title","role","district","voting","from","to","datesConfirmed"],"additionalProperties":false}},"attendance":{"type":"object","properties":{"rollCalls":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Roll calls in the minutes that name the official"},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remote":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"arrivedLate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leftEarly":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missed":{"type":"array","items":{"type":"object","properties":{"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"status":{"type":"string","enum":["absent","excused"]},"note":{"description":"The roll call's note, as written","type":["string","null"]},"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["meeting","status","note","cite"],"additionalProperties":false}}},"required":["rollCalls","present","absent","excused","remote","arrivedLate","leftEarly","missed"],"additionalProperties":false,"description":"Within from and to, every meeting when both are open"}},"required":["name","slug","href","terms","attendance"],"additionalProperties":false}},"cursor":{"description":"Pass as cursor for the next page; null when none follow","type":["string","null"]},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"truncated":{"type":"boolean","description":"True when a text field was cut; ask again with full"},"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"}},"required":["items","cursor","total","truncated","place"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/search-records":{"post":{"operationId":"search_records","summary":"Search structured records","description":"Search legislation, agenda items, motions, or meetings. Every word of q must match: legislation by its number, title, AI title, or topics; agenda items by title or topics; motions by their description or their text in the minutes; meetings by name. For every mention in page text, use find_occurrences.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","const":"legislation","description":"An ordinance or resolution, one record across all its readings."},{"type":"string","const":"agenda_item","description":"One item on a meeting's agenda."},{"type":"string","const":"motion","description":"One motion, with its outcome and votes."},{"type":"string","const":"meeting","description":"One meeting of the council."}],"description":"The type of record to return."},"place":{"description":"Place keys from list_places, such as [\"mo/creve-coeur\", \"mo/clayton\"]. Up to 20. Omit, or send the string \"all\", for every place.","anyOf":[{"type":"string","const":"all","description":"Every place."},{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"}}]},"from":{"description":"Earliest meeting date to include, YYYY-MM-DD, such as 2026-01-01. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Latest meeting date to include, YYYY-MM-DD, such as 2026-06-30. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"topic":{"description":"The subject a record is classified under, for legislation and agenda items. Legislation matches any topic of its agenda items, an agenda item its first topic.","anyOf":[{"type":"string","const":"budget_finance","description":"Budget and Finance"},{"type":"string","const":"city_administration","description":"City Administration"},{"type":"string","const":"city_code","description":"City Code"},{"type":"string","const":"community_culture","description":"Community and Culture"},{"type":"string","const":"economic_development","description":"Economic Development"},{"type":"string","const":"government_facilities","description":"Government Facilities"},{"type":"string","const":"historic_preservation","description":"Historic Preservation"},{"type":"string","const":"housing","description":"Housing"},{"type":"string","const":"other","description":"Other"},{"type":"string","const":"parks_recreation","description":"Parks and Recreation"},{"type":"string","const":"planning_zoning","description":"Planning and Zoning"},{"type":"string","const":"procedural","description":"Meeting Procedure"},{"type":"string","const":"public_health","description":"Public Health"},{"type":"string","const":"public_safety","description":"Public Safety"},{"type":"string","const":"stormwater","description":"Stormwater"},{"type":"string","const":"streets_traffic","description":"Streets and Traffic"},{"type":"string","const":"trees_environment","description":"Trees and Environment"},{"type":"string","const":"water_sewer","description":"Water and Sewer"}]},"kind":{"description":"The record's kind, for legislation, motions, and meetings. Each value names the record types it applies to. Agenda items have no kind.","anyOf":[{"type":"string","const":"ordinance","description":"Legislation: A local law."},{"type":"string","const":"resolution","description":"Legislation: A formal decision or statement of the council."},{"type":"string","const":"passage","description":"Motion: A vote to pass or adopt a measure."},{"type":"string","const":"amendment","description":"Motion: A vote to change a measure's text."},{"type":"string","const":"substitution","description":"Motion: A vote to replace a measure with a substitute version."},{"type":"string","const":"table","description":"Motion: A vote to set a measure aside."},{"type":"string","const":"emergency_reading","description":"Motion: A vote to allow more than one reading of a measure on the same night."},{"type":"string","const":"reconsideration","description":"Motion: A vote to reconsider an earlier decision."},{"type":"string","const":"consent_agenda","description":"Motion: One vote that approves every item on the consent agenda."},{"type":"string","const":"approval","description":"Motion: A vote to approve an item, such as a contract or a plan."},{"type":"string","const":"appointment","description":"Motion: A vote to appoint someone to an office, board, or commission."},{"type":"string","const":"denial","description":"Motion: A vote to deny a measure. When it passes, the measure fails."},{"type":"string","const":"procedural","description":"Motion: A vote on how the meeting runs, such as adjourning."},{"type":"string","const":"other","description":"Motion: Any other motion. Meeting: Any other meeting."},{"type":"string","const":"regular","description":"Meeting: A regular meeting."},{"type":"string","const":"work_session","description":"Meeting: A work or study session."},{"type":"string","const":"special","description":"Meeting: A special meeting, called outside the regular schedule."},{"type":"string","const":"executive_session","description":"Meeting: A closed session."},{"type":"string","const":"hearing","description":"Meeting: A public hearing."},{"type":"string","const":"agenda_review","description":"Meeting: A meeting to review an upcoming agenda."},{"type":"string","const":"planning_session","description":"Meeting: A planning or goal-setting session."},{"type":"string","const":"committee_of_the_whole","description":"Meeting: The whole council meeting as a committee."},{"type":"string","const":"organizational","description":"Meeting: A meeting that seats new members and organizes the council."},{"type":"string","const":"town_meeting","description":"Meeting: A town meeting, open to residents."}]},"status":{"description":"Where a piece of legislation stands, for type legislation only.","anyOf":[{"type":"string","const":"introduced","description":"Read, but not yet decided."},{"type":"string","const":"adopted","description":"An ordinance that was enacted."},{"type":"string","const":"passed","description":"A resolution that was approved."},{"type":"string","const":"failed","description":"Voted down."},{"type":"string","const":"tabled","description":"Set aside, and not taken up again."},{"type":"string","const":"under_consideration","description":"Taken up again after being tabled, with no deciding vote since."},{"type":"string","const":"conflicting","description":"The city's records disagree on the outcome."},{"type":"string","const":"vetoed","description":"Vetoed by the mayor, with no override yet."},{"type":"string","const":"listed","description":"On an agenda, with no reading or vote recorded."}]},"q":{"description":"Words a record must contain, all of them, in any order, ignoring case. Legislation: its number, title, AI title, or topics. Agenda items: title or topics. Motions: description or text in the minutes. Meetings: name.","type":"string","maxLength":200},"full":{"description":"Whether to return whole text. Default false, which cuts text at 600 characters.","type":"boolean"},"limit":{"description":"Results per page, 1 to 100. Default 20.","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"The cursor value from the previous response, for the next page. Omit for the first page.","type":"string","maxLength":200}},"required":["type"],"additionalProperties":false},"example":{"type":"legislation","place":["mo/creve-coeur"],"q":"park"}}}},"responses":{"200":{"description":"Matching records, with their citations","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"legislation"},"legislation":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"kind":{"type":"string","enum":["ordinance","resolution"]},"session":{"type":"string","description":"Empty where bill numbers run continuously"},"billNumber":{"type":["string","null"]},"number":{"description":"The number its enactment reports agree on, else null","type":["string","null"]},"slug":{"type":"string","description":"For legislation_timeline: bill-1234"}},"required":["place","kind","session","billNumber","number","slug"],"additionalProperties":false},"title":{"type":["string","null"]},"aiTitle":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"layer":{"type":"string","const":"inferred"},"confidence":{"type":"string","enum":["low","confident","very_confident"]},"publishable":{"type":"boolean"}},"required":["text","layer","confidence","publishable"],"additionalProperties":false,"description":"An AI-written title, layer inferred"},{"type":"null"}]},"status":{"type":"string","enum":["introduced","adopted","passed","failed","tabled","under_consideration","conflicting","vetoed","listed"]},"topic":{"type":["string","null"]},"firstDate":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"lastDate":{"anyOf":[{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},{"type":"null"}]},"layer":{"type":"string","const":"extracted"}},"required":["type","legislation","title","aiTitle","status","topic","firstDate","lastDate","layer"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"agenda_item"},"agendaItemId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"number":{"type":["string","null"]},"section":{"type":["string","null"]},"title":{"type":"string"},"legislation":{"anyOf":[{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"kind":{"type":"string","enum":["ordinance","resolution"]},"session":{"type":"string","description":"Empty where bill numbers run continuously"},"billNumber":{"type":["string","null"]},"number":{"description":"The number its enactment reports agree on, else null","type":["string","null"]},"slug":{"type":"string","description":"For legislation_timeline: bill-1234"}},"required":["place","kind","session","billNumber","number","slug"],"additionalProperties":false},{"type":"null"}]},"topic":{"type":["string","null"]},"layer":{"type":"string","const":"extracted"}},"required":["type","agendaItemId","meeting","number","section","title","legislation","topic","layer"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"motion"},"motionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"motionKind":{"type":"string","enum":["passage","amendment","substitution","table","emergency_reading","reconsideration","consent_agenda","approval","appointment","denial","procedural","other"]},"outcome":{"type":"string","enum":["passed","failed","tabled","no_outcome"]},"sourceText":{"type":"string"},"legislation":{"anyOf":[{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"kind":{"type":"string","enum":["ordinance","resolution"]},"session":{"type":"string","description":"Empty where bill numbers run continuously"},"billNumber":{"type":["string","null"]},"number":{"description":"The number its enactment reports agree on, else null","type":["string","null"]},"slug":{"type":"string","description":"For legislation_timeline: bill-1234"}},"required":["place","kind","session","billNumber","number","slug"],"additionalProperties":false},{"type":"null"}]},"confidence":{"type":"string","enum":["low","confident","very_confident"]},"layer":{"type":"string","const":"extracted"},"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["type","motionId","meeting","motionKind","outcome","sourceText","legislation","confidence","layer","cite"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"meeting"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"name":{"type":"string"},"canceled":{"type":"boolean"},"docTypes":{"type":"array","items":{"type":"string","enum":["agenda","packet","minutes","notice","other"]}},"layer":{"type":"string","const":"source"}},"required":["type","meeting","name","canceled","docTypes","layer"],"additionalProperties":false}]}},"cursor":{"description":"Pass as cursor for the next page; null when none follow","type":["string","null"]},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"truncated":{"type":"boolean","description":"True when a text field was cut; ask again with full"}},"required":["items","cursor","total","truncated"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/search-passages":{"post":{"operationId":"search_passages","summary":"Search source passages","description":"Search the text of agendas, packets, and minutes. Returns the passages (a section's text, a few pages at most) whose words best match q, best first. Best for bill numbers, addresses, and names. For every mention, use find_occurrences.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":300,"description":"Words to search for, such as stormwater detention. A passage matching more of them, and rarer ones, ranks higher."},"place":{"description":"Place keys from list_places, such as [\"mo/creve-coeur\", \"mo/clayton\"]. Up to 20. Omit, or send the string \"all\", for every place.","anyOf":[{"type":"string","const":"all","description":"Every place."},{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"}}]},"from":{"description":"Earliest meeting date to include, YYYY-MM-DD, such as 2026-01-01. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Latest meeting date to include, YYYY-MM-DD, such as 2026-06-30. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"docType":{"description":"Document types to include. Omit for all types.","maxItems":5,"type":"array","items":{"anyOf":[{"type":"string","const":"agenda","description":"The meeting's agenda."},{"type":"string","const":"packet","description":"The agenda packet: the agenda with its reports and attachments."},{"type":"string","const":"minutes","description":"The meeting's minutes."},{"type":"string","const":"notice","description":"A notice about the meeting, such as a cancellation."},{"type":"string","const":"other","description":"Any other document published with the meeting."}]}},"meeting":{"description":"One meeting to search within, as results name it in cite.meeting. Omit to search every meeting.","type":"object","properties":{"place":{"description":"The meeting's place key, such as mo/clayton.","type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The meeting's date, YYYY-MM-DD."},"key":{"type":"string","maxLength":80,"description":"The meeting's key, as results name it, such as city-council-regular."}},"required":["place","date","key"],"additionalProperties":false},"full":{"description":"Whether to return whole text. Default false, which cuts text at 600 characters.","type":"boolean"},"limit":{"description":"Results per page, 1 to 20. Default 20.","type":"integer","minimum":1,"maximum":20},"cursor":{"description":"The cursor value from the previous response, for the next page. Omit for the first page.","type":"string","maxLength":200}},"required":["q"],"additionalProperties":false},"example":{"q":"stormwater detention","place":["mo/clayton","mo/maplewood"]}}}},"responses":{"200":{"description":"The top passages, each with its citation and rank","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chunkId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layer":{"type":"string","const":"source"},"text":{"type":"string"},"sectionTitle":{"type":"string"},"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},"pageConfidence":{"anyOf":[{"type":"string","enum":["low","confident","very_confident"]},{"type":"null"}]},"reprint":{"anyOf":[{"type":"object","properties":{"basis":{"type":"string","enum":["same_text","section_title"]},"originalMeeting":{"anyOf":[{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},{"type":"null"}]},"original":{"anyOf":[{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},{"type":"null"}]}},"required":["basis","originalMeeting","original"],"additionalProperties":false},{"type":"null"}]},"copies":{"type":"array","items":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},"description":"Identical copies collapsed out of the results"},"rank":{"type":"object","properties":{"mode":{"type":"string","enum":["lexical","vector","hybrid"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["mode","position"],"additionalProperties":false}},"required":["chunkId","layer","text","sectionTitle","cite","pageConfidence","reprint","copies","rank"],"additionalProperties":false}},"cursor":{"description":"Pass as cursor for the next page; null when none follow","type":["string","null"]},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"truncated":{"type":"boolean","description":"True when a text field was cut; ask again with full"}},"required":["items","cursor","total","truncated"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/find-occurrences":{"post":{"operationId":"find_occurrences","summary":"Find every meeting that mentions a phrase","description":"List every meeting whose pages contain a phrase (literal, case-insensitive) or a pattern (POSIX regex), oldest first, with a snippet and the best page. unsearchedPages counts pages with no readable text.","x-usage-cost":"5 units","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phrase":{"description":"Exact text to find, ignoring case, such as Graeser Station. Spaces match any run of spaces or line breaks. Give phrase or pattern, not both.","type":"string","minLength":1,"maxLength":200},"pattern":{"description":"A POSIX regular expression to find, ignoring case, such as ordinance no\\.? 70[0-9]{2}. \\b marks a word boundary. Give phrase or pattern, not both.","type":"string","minLength":1,"maxLength":200},"place":{"description":"Place keys from list_places, such as [\"mo/creve-coeur\", \"mo/clayton\"]. Up to 20. Omit, or send the string \"all\", for every place.","anyOf":[{"type":"string","const":"all","description":"Every place."},{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"}}]},"from":{"description":"Earliest meeting date to include, YYYY-MM-DD, such as 2026-01-01. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"Latest meeting date to include, YYYY-MM-DD, such as 2026-06-30. Inclusive.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"docType":{"description":"Document types to include. Omit for all types.","maxItems":5,"type":"array","items":{"anyOf":[{"type":"string","const":"agenda","description":"The meeting's agenda."},{"type":"string","const":"packet","description":"The agenda packet: the agenda with its reports and attachments."},{"type":"string","const":"minutes","description":"The meeting's minutes."},{"type":"string","const":"notice","description":"A notice about the meeting, such as a cancellation."},{"type":"string","const":"other","description":"Any other document published with the meeting."}]}},"limit":{"description":"Results per page, 1 to 100. Default 20.","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"The cursor value from the previous response, for the next page. Omit for the first page.","type":"string","maxLength":200}},"additionalProperties":false},"example":{"phrase":"data center","place":"all","from":"2025-01-01"}}}},"responses":{"200":{"description":"Meetings that mention it, oldest first, each with a snippet and the best page","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"pages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"docTypes":{"type":"array","items":{"type":"string","enum":["agenda","packet","minutes","notice","other"]}},"best":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},"snippet":{"type":"string"},"reprint":{"anyOf":[{"type":"object","properties":{"basis":{"type":"string","enum":["same_text","section_title"]},"originalMeeting":{"anyOf":[{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},{"type":"null"}]},"original":{"anyOf":[{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},{"type":"null"}]}},"required":["basis","originalMeeting","original"],"additionalProperties":false},{"type":"null"}]}},"required":["meeting","pages","docTypes","best","snippet","reprint"],"additionalProperties":false}},"cursor":{"description":"Pass as cursor for the next page; null when none follow","type":["string","null"]},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"truncated":{"type":"boolean","description":"True when a text field was cut; ask again with full"},"unsearchedPages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Pages in scope with no readable text, which no match can reach"}},"required":["items","cursor","total","truncated","unsearchedPages"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/legislation-timeline":{"post":{"operationId":"legislation_timeline","summary":"Get legislation timelines","description":"Get the history of up to 10 pieces of legislation by place and slug (bill-1234, bill-2025-2026-12): appearances, motions and votes, enactments, events, and coverage of each meeting. votes lists recorded votes, by member. unnamedVotes counts inferred and unverified votes. Unknown slugs are listed in missing.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"place":{"description":"The legislation's place key, such as mo/creve-coeur.","type":"string","pattern":"^[a-z]{2}\\/[a-z0-9-]+$"},"slug":{"type":"string","minLength":1,"maxLength":80,"description":"The legislation's slug, from search_records, such as bill-6225 or bill-2025-2026-12."}},"required":["place","slug"],"additionalProperties":false},"description":"The legislation to look up, 1 to 10."},"asOf":{"description":"The date coverage is judged on, YYYY-MM-DD, such as 2026-11-05. Minutes not stored for a meeting less than 45 days before it count as pending, not missing. Default: the date of the place's latest fetch.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"full":{"description":"Whether to return whole titles and quotes, and every named aye. Default false.","type":"boolean"}},"required":["items"],"additionalProperties":false},"example":{"items":[{"place":"mo/creve-coeur","slug":"bill-6225"}]}}}},"responses":{"200":{"description":"Each timeline found, and the slugs not found","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"legislation":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"kind":{"type":"string","enum":["ordinance","resolution"]},"session":{"type":"string","description":"Empty where bill numbers run continuously"},"billNumber":{"type":["string","null"]},"number":{"description":"The number its enactment reports agree on, else null","type":["string","null"]},"slug":{"type":"string","description":"For legislation_timeline: bill-1234"},"title":{"type":["string","null"]},"aiTitle":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"layer":{"type":"string","const":"inferred"},"confidence":{"type":"string","enum":["low","confident","very_confident"]},"publishable":{"type":"boolean"}},"required":["text","layer","confidence","publishable"],"additionalProperties":false,"description":"An AI-written title, layer inferred"},{"type":"null"}]},"status":{"type":"string","enum":["introduced","adopted","passed","failed","tabled","under_consideration","conflicting","vetoed","listed"]},"doubts":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string"},"detail":{"type":["string","null"]}},"required":["check","detail"],"additionalProperties":false}}},"required":["place","kind","session","billNumber","number","slug","title","aiTitle","status","doubts"],"additionalProperties":false},"events":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"appearance"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"agendaItemId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reading":{"anyOf":[{"type":"string","enum":["first","later","final"]},{"type":"null"}]},"readingLabel":{"type":["string","null"]},"version":{"type":["string","null"]},"section":{"type":["string","null"]},"title":{"type":"string"},"addedAtMeeting":{"type":"boolean"},"layer":{"type":"string","const":"extracted"},"cite":{"anyOf":[{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},{"type":"null"}]}},"required":["kind","date","meeting","agendaItemId","reading","readingLabel","version","section","title","addedAtMeeting","layer","cite"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"motion"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"motionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agendaItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"motionKind":{"type":"string","enum":["passage","amendment","substitution","table","emergency_reading","reconsideration","consent_agenda","approval","appointment","denial","procedural","other"]},"outcome":{"type":"string","enum":["passed","failed","tabled","no_outcome"]},"description":{"type":"string"},"sourceText":{"type":"string"},"tally":{"type":"object","properties":{"ayes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"nays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["ayes","nays"],"additionalProperties":false},"mover":{"type":["string","null"]},"seconder":{"type":["string","null"]},"votes":{"type":"array","items":{"type":"object","properties":{"officialId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"name":{"type":"string"},"value":{"type":"string","enum":["aye","nay","abstain","present","recused","absent","excused","not_voting","presided"]}},"required":["officialId","name","value"],"additionalProperties":false},"description":"Recorded votes, by member"},"unnamedVotes":{"type":"object","properties":{"inferred":{"type":"object","propertyNames":{"type":"string","enum":["aye","nay","abstain","present","recused","absent","excused","not_voting","presided"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Votes by value, with no names"},"unverified":{"type":"object","propertyNames":{"type":"string","enum":["aye","nay","abstain","present","recused","absent","excused","not_voting","presided"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Votes by value, with no names"}},"required":["inferred","unverified"],"additionalProperties":false,"description":"Counts of votes the minutes leave unnamed: inferred from a unanimous result, or unverified"},"confidence":{"type":"string","enum":["low","confident","very_confident"]},"doubts":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string"},"detail":{"type":["string","null"]}},"required":["check","detail"],"additionalProperties":false}},"layer":{"type":"string","const":"extracted"},"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["kind","date","meeting","motionId","agendaItemId","motionKind","outcome","description","sourceText","tally","mover","seconder","votes","unnamedVotes","confidence","doubts","layer","cite"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"enactment"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"ordinanceNumber":{"type":"string"},"text":{"type":"string"},"layer":{"type":"string","const":"extracted"},"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["kind","date","ordinanceNumber","text","layer","cite"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"event"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"eventKind":{"type":"string","enum":["mayor_approved","mayor_vetoed","returned_unsigned","veto_override_passed","veto_override_failed"]},"sourceText":{"type":"string"},"layer":{"type":"string","const":"source"},"sourceUrl":{"type":"string"},"cite":{"anyOf":[{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},{"type":"null"}]}},"required":["kind","date","eventKind","sourceText","layer","sourceUrl","cite"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"packet_section"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"sectionTitle":{"type":"string"},"layer":{"type":"string","const":"source"},"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["kind","date","meeting","sectionTitle","layer","cite"],"additionalProperties":false}]},"description":"Oldest first"},"coverage":{"type":"array","items":{"type":"object","properties":{"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"},"canceled":{"type":"boolean"},"agenda":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"published"},"basis":{"type":"string","const":"stored"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"draft"},"basis":{"type":"string","const":"document_name"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"pending"},"basis":{"type":"string","const":"lag"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"reprint_only"},"basis":{"type":"string","const":"section_title"},"reprint":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["state","basis","reprint"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"absent"},"basis":{"type":"string","const":"lag_passed"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"not_expected"},"basis":{"type":"string","const":"canceled"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"unknown"},"basis":{"type":"string","enum":["not_fetched_since","none_at_place","no_lag_rule"]}},"required":["state","basis"],"additionalProperties":false}]},"packet":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"published"},"basis":{"type":"string","const":"stored"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"draft"},"basis":{"type":"string","const":"document_name"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"pending"},"basis":{"type":"string","const":"lag"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"reprint_only"},"basis":{"type":"string","const":"section_title"},"reprint":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["state","basis","reprint"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"absent"},"basis":{"type":"string","const":"lag_passed"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"not_expected"},"basis":{"type":"string","const":"canceled"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"unknown"},"basis":{"type":"string","enum":["not_fetched_since","none_at_place","no_lag_rule"]}},"required":["state","basis"],"additionalProperties":false}]},"minutes":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","const":"published"},"basis":{"type":"string","const":"stored"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"draft"},"basis":{"type":"string","const":"document_name"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"pending"},"basis":{"type":"string","const":"lag"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"reprint_only"},"basis":{"type":"string","const":"section_title"},"reprint":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"}},"required":["state","basis","reprint"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"absent"},"basis":{"type":"string","const":"lag_passed"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"not_expected"},"basis":{"type":"string","const":"canceled"}},"required":["state","basis"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","const":"unknown"},"basis":{"type":"string","enum":["not_fetched_since","none_at_place","no_lag_rule"]}},"required":["state","basis"],"additionalProperties":false}]},"pages":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Pages with no readable text"},"excluded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Low-confidence pages, left out of passage search"}},"required":["total","unread","excluded"],"additionalProperties":false}},"required":["meeting","canceled","agenda","packet","minutes","pages"],"additionalProperties":false}}},"required":["legislation","events","coverage"],"additionalProperties":false}},"missing":{"type":"array","items":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"slug":{"type":"string"},"reason":{"type":"string"}},"required":["place","slug","reason"],"additionalProperties":false},"description":"Asked for and not found"}},"required":["items","missing"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}},"/api/v1/research/get-pages":{"post":{"operationId":"get_pages","summary":"Read source pages","description":"Read up to 10 source pages by document and page (\"d74 p6\" is { documentId: 74, page: 6 }), with provenance and the publisher's file. Text is cut at 600 characters. Pass full for all of it. Pages are the published text, unedited. Unknown pages are listed in missing.","x-usage-cost":"1 unit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"documentId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The document's ID, from a result's cite.documentId."},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The page number in the document, from 1."}},"required":["documentId","page"],"additionalProperties":false},"description":"The pages to read, 1 to 10."},"full":{"description":"Whether to return whole text. Default false, which cuts text at 600 characters.","type":"boolean"}},"required":["pages"],"additionalProperties":false},"example":{"pages":[{"documentId":74,"page":6}]}}}},"responses":{"200":{"description":"Each page found, and the pages not found","headers":{"X-Usage-Units":{"description":"Units this call spent","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"cite":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"documentName":{"type":"string"},"docType":{"type":"string","enum":["agenda","packet","minutes","notice","other"]},"startPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceUrl":{"type":"string","description":"The publisher's own file"},"portalUrl":{"type":"string","description":"The publisher's page for the meeting"},"href":{"type":"string","description":"KeepCouncil's view of the page, a path"},"meeting":{"type":"object","properties":{"place":{"type":"string","description":"A place key, \"state/city\": mo/creve-coeur"},"date":{"type":"string","description":"YYYY-MM-DD in the place's own time zone"},"key":{"type":"string","description":"The meeting's key that day: \"city-council-regular\""},"kind":{"type":"string","enum":["regular","work_session","special","executive_session","hearing","agenda_review","planning_session","committee_of_the_whole","organizational","town_meeting","other"]}},"required":["place","date","key","kind"],"additionalProperties":false,"description":"A meeting by its natural key"}},"required":["documentId","documentName","docType","startPage","endPage","sourceUrl","portalUrl","href","meeting"],"additionalProperties":false,"description":"Where a fact can be checked: pages of one stored document"},"sectionTitle":{"type":["string","null"]},"layer":{"type":"string","const":"source"},"text":{"type":"string"},"markedText":{"description":"The text with ⟦deleted: …⟧ and ⟦added: …⟧ where a redline marks it","type":["string","null"]},"confidence":{"anyOf":[{"type":"string","enum":["low","confident","very_confident"]},{"type":"null"}]},"ocr":{"anyOf":[{"type":"object","properties":{"engine":{"type":"string"},"confidence":{"type":["number","null"]}},"required":["engine","confidence"],"additionalProperties":false},{"type":"null"}]},"truncated":{"type":"boolean"}},"required":["cite","sectionTitle","layer","text","markedText","confidence","ocr","truncated"],"additionalProperties":false}},"missing":{"type":"array","items":{"type":"object","properties":{"documentId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string"}},"required":["documentId","page","reason"],"additionalProperties":false},"description":"Asked for and not found"}},"required":["items","missing"],"additionalProperties":false}}}},"400":{"description":"The input failed validation. See error.issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such operation, place, or record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over a limit. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}},"500":{"description":"The call failed. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is paused. See Retry-After, in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the call may succeed","schema":{"type":"integer"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A KeepCouncil API token (kc_…), made at /developers/tokens. Send it in this header."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string","const":"invalid_input","description":"The input failed validation. See error.issues."},{"type":"string","const":"unauthorized","description":"Missing or invalid token."},{"type":"string","const":"forbidden","description":"The account is suspended."},{"type":"string","const":"not_found","description":"No such operation, place, or record."},{"type":"string","const":"too_large","description":"The body is over 16 KB."},{"type":"string","const":"rate_limited","description":"Over a limit. See Retry-After, in seconds."},{"type":"string","const":"error","description":"The call failed. Retry later."},{"type":"string","const":"paused","description":"The API is paused. See Retry-After, in seconds."}]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}