{"openapi":"3.1.0","info":{"title":"Ploti API","description":"Find and read Ploti's data inside the workspace's coverage, show results on a map, request the data Ploti does not have yet, and be told by webhook when a request or a dataset changes. Every call acts as the workspace member who holds the token.","version":"1.0.0"},"servers":[{"url":"https://api.ploti.ai"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"RequestStatus.Headline":{"type":"object","properties":{"sentenceKey":{"type":"string","enum":["not_found","paid_source","outside_coverage","withdrawn","paused","ready","needs_you","our_problem","stalled","quality_issue","checking","publisher","parts","supporting","first_results","searching_again","building","collecting","searching","research_checking","research_report_ready","research_gathering","research_researching","research_writing","research_complete","research_no_data","research_failed","research_held"],"description":"Where the request is, as a machine key: searching, collecting, building, first_results, ready, needs_you, publisher, parts, not_found, paid_source, outside_coverage, withdrawn and the others in the status catalog."},"sentence":{"type":"string","description":"The same, in one sentence for the user."},"step":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"0 to 5 on the ladder found a source, collected, built, quality checked, ready (5 once everything is done); null once a request ended without data. It never goes back."},"tone":{"type":"string","enum":["working","waiting","late","needs_you","done","ended"],"description":"working, waiting (on something outside Ploti), late, needs_you (the user's answer is needed), done or ended."}},"required":["sentenceKey","sentence","step","tone"],"additionalProperties":false},"RequestStatus.View":{"type":"object","properties":{"subject":{"$ref":"#/components/schemas/CustomerStatus.Subject"},"headline":{"$ref":"#/components/schemas/CustomerStatus.Headline"},"you":{"$ref":"#/components/schemas/CustomerStatus.You"},"waits":{"type":"array","items":{"$ref":"#/components/schemas/CustomerStatus.Wait"}},"timing":{"anyOf":[{"$ref":"#/components/schemas/CustomerStatus.Timing"},{"type":"null"}]},"percent":{"anyOf":[{"$ref":"#/components/schemas/CustomerStatus.Percent"},{"type":"null"}]},"available":{"type":"array","items":{"$ref":"#/components/schemas/CustomerStatus.Available"}},"parts":{"type":"array","items":{"$ref":"#/components/schemas/CustomerStatus.Part"}},"milestones":{"type":"array","items":{"$ref":"#/components/schemas/CustomerStatus.Milestone"}},"updates":{"anyOf":[{"$ref":"#/components/schemas/CustomerStatus.Updates"},{"type":"null"}]},"outcome":{"anyOf":[{"$ref":"#/components/schemas/CustomerStatus.Outcome"},{"type":"null"}]},"heartbeat":{"type":"object","properties":{"lastActivityAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"runningNow":{"type":"boolean"},"records":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sourcesDone":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sourcesTotal":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"countsText":{"type":"string"},"line":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When something last happened on the request, such as \"Last activity 12 min ago\"; null when nothing has."}},"required":["lastActivityAt","runningNow","records","sourcesDone","sourcesTotal","countsText","line"],"additionalProperties":false}},"required":["subject","headline","you","waits","timing","percent","available","parts","milestones","updates","outcome","heartbeat"],"additionalProperties":false,"description":"The request's status: headline, what is needed from the user (you), what it waits on outside Ploti (waits, dates in UTC), heartbeat, typical timing, percent (straightforward requests only), datasets available to open, its parts, milestones, the keeping-fresh line once ready, and how it ended (outcome)."},"CustomerStatus.Outcome":{"type":"object","properties":{"reason":{"type":"string","enum":["not_found","paid_source","outside_coverage","withdrawn"]},"text":{"type":"string"},"next":{"anyOf":[{"type":"string"},{"type":"null"}]},"office":{"anyOf":[{"type":"string"},{"type":"null"}]},"feeCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["reason","text","next","office","feeCents"],"additionalProperties":false},"CustomerStatus.Updates":{"type":"object","properties":{"tone":{"type":"string","enum":["ok","live","retry"]},"lastCheckedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastChangeAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"}},"required":["tone","lastCheckedAt","lastChangeAt","cadence","text"],"additionalProperties":false},"CustomerStatus.Milestone":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string","enum":["submitted","found_source","built","quality_checked","first_results","ready","searching_again","paused","not_found","withdrawn","updated"]},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"tone":{"type":"string","enum":["ok","note","ended"]}},"required":["id","key","at","text","tone"],"additionalProperties":false},"CustomerStatus.Part":{"type":"object","properties":{"requestId":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"type":"string","enum":["ready","first_results","needs_you","waiting","searching_again","working","stalled","ended"]},"stateLabel":{"type":"string"},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"sentenceKey":{"type":"string","enum":["not_found","paid_source","outside_coverage","withdrawn","paused","ready","needs_you","our_problem","stalled","quality_issue","checking","publisher","parts","supporting","first_results","searching_again","building","collecting","searching","research_checking","research_report_ready","research_gathering","research_researching","research_writing","research_complete","research_no_data","research_failed","research_held"]},"step":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["requestId","label","state","stateLabel","text","sentenceKey","step"],"additionalProperties":false},"CustomerStatus.Available":{"type":"object","properties":{"datasetId":{"type":"string"},"name":{"type":"string"},"own":{"type":"boolean"},"firstResults":{"type":"boolean"},"note":{"type":"string"}},"required":["datasetId","name","own","firstResults","note"],"additionalProperties":false},"CustomerStatus.Percent":{"type":"object","properties":{"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["value","text"],"additionalProperties":false},"CustomerStatus.Timing":{"type":"object","properties":{"typicalHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"usualMaxHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"late":{"type":"boolean"},"text":{"type":"string"}},"required":["typicalHours","usualMaxHours","late","text"],"additionalProperties":false},"CustomerStatus.Wait":{"type":"object","properties":{"bucket":{"type":"string","enum":["records_request_preparing","records_request_sent","publisher_replied","publisher_question","publisher_fee","site_blocks_automation","site_rate_limit","site_down","needs_account","supporting_data","ours"]},"party":{"type":"string","enum":["publisher","source","supporting","ours"]},"label":{"type":"string"},"text":{"type":"string"},"partLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"names":{"type":"array","items":{"type":"string"}},"since":{"anyOf":[{"type":"string"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"records":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"feeCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ready":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["bucket","party","label","text","partLabel","names","since","sentAt","nextAt","records","feeCents","count","ready"],"additionalProperties":false},"CustomerStatus.You":{"type":"object","properties":{"needed":{"type":"boolean"},"text":{"type":"string"},"question":{"anyOf":[{"$ref":"#/components/schemas/CustomerStatus.Question"},{"type":"null"}]}},"required":["needed","text","question"],"additionalProperties":false},"CustomerStatus.Question":{"type":"object","properties":{"id":{"type":"string"},"requestId":{"type":"string"},"text":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"assumption":{"anyOf":[{"type":"string"},{"type":"null"}]},"deadlineAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","requestId","text","options","assumption","deadlineAt"],"additionalProperties":false},"CustomerStatus.Headline":{"type":"object","properties":{"journey":{"type":"string","enum":["straightforward","collected","built","places","research"]},"step":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"hold":{"type":"boolean"},"tone":{"type":"string","enum":["working","waiting","late","needs_you","done","ended"]},"sentenceKey":{"type":"string","enum":["not_found","paid_source","outside_coverage","withdrawn","paused","ready","needs_you","our_problem","stalled","quality_issue","checking","publisher","parts","supporting","first_results","searching_again","building","collecting","searching","research_checking","research_report_ready","research_gathering","research_researching","research_writing","research_complete","research_no_data","research_failed","research_held"]},"sentence":{"type":"string"}},"required":["journey","step","hold","tone","sentenceKey","sentence"],"additionalProperties":false},"CustomerStatus.Subject":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["data_request","ask","research_request"]},"title":{"type":"string"},"areaLabel":{"type":"string"},"coverageKind":{"anyOf":[{"type":"string","enum":["county","state","national"]},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"askId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","kind","title","areaLabel","coverageKind","requestedAt","askId"],"additionalProperties":false},"FeedSubscription.PreviewDataset":{"type":"object","properties":{"datasetId":{"type":"string"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"place":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["county","state","us"]}},"required":["id","name","kind"],"additionalProperties":false},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"object","properties":{"publisher":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["publisher","url"],"additionalProperties":false},"keyed":{"type":"boolean"},"keyColumns":{"type":"array","items":{"type":"string"}},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"number"}},"required":["type","srid"],"additionalProperties":false},{"type":"null"}]},"current":{"anyOf":[{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The number of the dataset's release this version was built from, as dataset.changed and datasets changes name it."},"schemaVersion":{"type":"string"},"releasedAt":{"type":"string","description":"When the release went live."},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["version","schemaVersion","releasedAt","rowCount"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["available","not_built","building","held","failed","awaiting_release"],"description":"Why the dataset has no current version, or available when it has one: not_built until a subscription includes it, then building; held or failed when its first version waits on staff; awaiting_release when Ploti has nothing to build it from until its source is released again."},"refresh":{"type":"object","properties":{"lastCheckedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextCheckBy":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["lastCheckedAt","nextCheckBy"],"additionalProperties":false},"links":{"type":"object","properties":{"view":{"type":"string","description":"The dataset on Ploti's map."}},"required":["view"],"additionalProperties":false},"matchedBy":{"type":"array","items":{"type":"string","enum":["places","datasets"]}}},"required":["datasetId","title","description","place","topic","source","keyed","keyColumns","geometry","current","status","refresh","links","matchedBy"],"additionalProperties":false},"DataFeed.Dataset":{"type":"object","properties":{"datasetId":{"type":"string"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"place":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["county","state","us"]}},"required":["id","name","kind"],"additionalProperties":false},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"object","properties":{"publisher":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["publisher","url"],"additionalProperties":false},"keyed":{"type":"boolean"},"keyColumns":{"type":"array","items":{"type":"string"}},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"number"}},"required":["type","srid"],"additionalProperties":false},{"type":"null"}]},"current":{"anyOf":[{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The number of the dataset's release this version was built from, as dataset.changed and datasets changes name it."},"schemaVersion":{"type":"string"},"releasedAt":{"type":"string","description":"When the release went live."},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["version","schemaVersion","releasedAt","rowCount"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["available","not_built","building","held","failed","awaiting_release"],"description":"Why the dataset has no current version, or available when it has one: not_built until a subscription includes it, then building; held or failed when its first version waits on staff; awaiting_release when Ploti has nothing to build it from until its source is released again."},"refresh":{"type":"object","properties":{"lastCheckedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextCheckBy":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["lastCheckedAt","nextCheckBy"],"additionalProperties":false},"links":{"type":"object","properties":{"view":{"type":"string","description":"The dataset on Ploti's map."}},"required":["view"],"additionalProperties":false}},"required":["datasetId","title","description","place","topic","source","keyed","keyColumns","geometry","current","status","refresh","links"],"additionalProperties":false}}},"paths":{"/v1/places":{"get":{"operationId":"places_list","parameters":[{"name":"state","in":"query","required":false,"description":"Only places in this state, by its postal code, e.g. FL: the state being researched, never the user's own.","schema":{"type":"string","minLength":2,"maxLength":2}},{"name":"kind","in":"query","required":false,"description":"Only places of this kind; state_counties is a state's coverage counties as one place (fl-counties). Every kind when left out.","schema":{"type":"string","enum":["county","state","state_counties","us"]}},{"name":"deliverable","in":"query","required":false,"description":"Count only datasets Data Feeds delivers; every dataset when left out.","schema":{"type":"boolean"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"places":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"What every place input takes: a county (fl-county-orange), a state (fl), every coverage county of a state (fl-counties) or the whole country (us)."},"name":{"type":"string"},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["county","state","state_counties","us"]},"datasetCount":{"type":"number","description":"Datasets in the place, with a topic or without."},"datasetCounts":{"type":"object","additionalProperties":{"type":"number"},"description":"Datasets in the place by topic; one with no topic is in none."}},"required":["id","name","state","kind","datasetCount","datasetCounts"],"additionalProperties":false}},"nextCursor":{"type":"null","description":"Always null: every place fits one page."}},"required":["places","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The places of the workspace's coverage, as every search, read and subscription names them: its counties, their states, each state's coverage counties as one place (fl-counties, which follows the coverage as counties are added) and the whole country (us), with how many datasets each holds by topic. Ploti's local data opens, and Ploti gathers new data, only inside the coverage; the user adds counties in Ploti. deliverable=true counts only what Data Feeds delivers.","summary":"List coverage places","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["places","list"],"x-ploti-descriptions":{"cli":"The places of the workspace's coverage, as every search, read and subscription names them: its counties, their states, each state's coverage counties as one place (fl-counties, which follows the coverage as counties are added) and the whole country (us), with how many datasets each holds by topic. Ploti's local data opens, and Ploti gathers new data, only inside the coverage; the user adds counties in Ploti. deliverable=true counts only what Data Feeds delivers.","sdk":"The places of the workspace's coverage, as every search, read and subscription names them: its counties, their states, each state's coverage counties as one place (fl-counties, which follows the coverage as counties are added) and the whole country (us), with how many datasets each holds by topic. Ploti's local data opens, and Ploti gathers new data, only inside the coverage; the user adds counties in Ploti. deliverable=true counts only what Data Feeds delivers."}}},"/v1/topics":{"get":{"operationId":"topics_list","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"What every topic input takes."},"title":{"type":"string","description":"The topic's name, to show the user."},"description":{"type":"string","description":"What data is filed under it."}},"required":["id","title","description"],"additionalProperties":false}}},"required":["topics"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The fixed list of topics a dataset is filed under (zoning-land-use, parcels-property and the rest), as every topic input takes them. A dataset has at most one. Returns each topic's id, title and a description of the data filed under it.","summary":"List topics","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["topics","list"],"x-ploti-descriptions":{"cli":"The fixed list of topics a dataset is filed under (zoning-land-use, parcels-property and the rest), as every topic input takes them. A dataset has at most one. Returns each topic's id, title and a description of the data filed under it.","sdk":"The fixed list of topics a dataset is filed under (zoning-land-use, parcels-property and the rest), as every topic input takes them. A dataset has at most one. Returns each topic's id, title and a description of the data filed under it."}}},"/v1/guides":{"get":{"operationId":"guides_read","parameters":[{"name":"guideId","in":"query","required":false,"description":"One guide to read, by the id this lists, e.g. 'querying'. Leave out both ids to list the guides.","schema":{"type":"string"}},{"name":"guideIds","in":"query","required":false,"description":"Guides to read together in one call, e.g. ['discovering-data', 'parcel-data']; read along with guide_id when both are given.","schema":{"type":"array","items":{"type":"string"},"maxItems":8}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The guides' text, or the list of them."},"guides":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false},"description":"The guides read, or every guide when none was named; message carries their bodies."}},"required":["message","guides"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Fetch a guide on how to work with Ploti's data. Call without an id to list them. 'discovering-data' is worth reading for any task; for a quick single POST /v1/datasets/{datasetId}/lookup it is often enough. Read the others when the task calls for them: 'querying' before your first substantial read, 'analysis' before joins or statistics, 'limits' when the sandbox nears a limit, 'parcel-data' before filtering parcels, 'spatial-analysis' before cross-layer spatial work, 'map-rendering' before custom-colored maps, 'navigation' before moving the map, 'ordinances' before municipal-code research, 'delivering-results' before saving snapshots, maps or files for the user. A guide read once stays read for the conversation; most questions need two or three, so read them together in one call with guide_ids. Returns the guides' text in message and their ids and titles in guides; the list gives each guide's id and what it covers.","summary":"Read a Ploti guide","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["guides","read"],"x-ploti-descriptions":{"cli":"Fetch a guide on how to work with Ploti's data. Call without an id to list them. 'discovering-data' is worth reading for any task; for a quick single ploti datasets lookup it is often enough. Read the others when the task calls for them: 'querying' before your first substantial read, 'analysis' before joins or statistics, 'limits' when the sandbox nears a limit, 'parcel-data' before filtering parcels, 'spatial-analysis' before cross-layer spatial work, 'map-rendering' before custom-colored maps, 'navigation' before moving the map, 'ordinances' before municipal-code research, 'delivering-results' before saving snapshots, maps or files for the user. A guide read once stays read for the conversation; most questions need two or three, so read them together in one call with guide_ids. Returns the guides' text in message and their ids and titles in guides; the list gives each guide's id and what it covers.","sdk":"Fetch a guide on how to work with Ploti's data. Call without an id to list them. 'discovering-data' is worth reading for any task; for a quick single ploti.datasets.lookup() it is often enough. Read the others when the task calls for them: 'querying' before your first substantial read, 'analysis' before joins or statistics, 'limits' when the sandbox nears a limit, 'parcel-data' before filtering parcels, 'spatial-analysis' before cross-layer spatial work, 'map-rendering' before custom-colored maps, 'navigation' before moving the map, 'ordinances' before municipal-code research, 'delivering-results' before saving snapshots, maps or files for the user. A guide read once stays read for the conversation; most questions need two or three, so read them together in one call with guide_ids. Returns the guides' text in message and their ids and titles in guides; the list gives each guide's id and what it covers."}}},"/v1/maps":{"post":{"operationId":"maps_create","parameters":[],"security":[{"bearer":[]}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"mapId":{"type":"string","description":"The id the map tools take as map_id."},"url":{"type":"string","description":"The map in Ploti."},"view":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","description":"The place or center the view frames."},"zoom":{"type":"number","description":"The web-map zoom level the map landed on, a whole number."},"widthKm":{"type":"number","description":"The view's width, east to west, in km."},"heightKm":{"type":"number","description":"The view's height, north to south, in km."},"datasetsInView":{"type":"number","description":"Open layers with data in this view, for the map's key."}},"required":["label","zoom","widthKm","heightKm","datasetsInView"],"additionalProperties":false},{"type":"null"}],"description":"The view place set; null without one."}},"required":["mapId","url","view"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Make a map in the workspace that the user can open in Ploti, to put snapshots and filters on and to run analysis beside. It stays: keep using it by its id later, from this or any other conversation. Reading data needs no map. Returns the map id the map tools take, its Ploti link and the guides to start from. Optionally sets where the map opens.","summary":"Make a map","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100,"description":"Short label for the map, shown to the user in Ploti. Describe the task, e.g. 'Industrial sites near Tampa'."},"place":{"type":"string","maxLength":200,"description":"A place to open the map on, as POST /v1/maps/{mapId}/navigate takes it, e.g. 'Winter Garden, FL'. Left out, the map has no view until POST /v1/maps/{mapId}/navigate sets one. The place being researched, never the user's own location.","x-ploti-description-cli":"A place to open the map on, as ploti maps navigate takes it, e.g. 'Winter Garden, FL'. Left out, the map has no view until ploti maps navigate sets one. The place being researched, never the user's own location.","x-ploti-description-sdk":"A place to open the map on, as Map.navigate() takes it, e.g. 'Winter Garden, FL'. Left out, the map has no view until Map.navigate() sets one. The place being researched, never the user's own location."}},"required":["title"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["maps","create"],"x-ploti-descriptions":{"cli":"Make a map in the workspace that the user can open in Ploti, to put snapshots and filters on and to run analysis beside. It stays: keep using it by its id later, from this or any other conversation. Reading data needs no map. Returns the map id the map tools take, its Ploti link and the guides to start from. Optionally sets where the map opens.","sdk":"Make a map in the workspace that the user can open in Ploti, to put snapshots and filters on and to run analysis beside. It stays: keep using it by its id later, from this or any other conversation. Reading data needs no map. Returns the map id the map tools take, its Ploti link and the guides to start from. Optionally sets where the map opens."}},"get":{"operationId":"maps_list","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"maps":{"type":"array","items":{"type":"object","properties":{"mapId":{"type":"string","description":"The id the map tools take as map_id."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The title the map was made with; null when it has none."},"viewport":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place the view frames, as navigation named it ('custom area' without a name); null before a view is set."},"zoom":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The view's web-map zoom level; null before a view is set."},"url":{"type":"string","description":"The map in Ploti."}},"required":["mapId","title","viewport","zoom","url"],"additionalProperties":false}}},"required":["maps"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The maps you made through Ploti's API or an assistant, most recently used first, each with its id, title, view and Ploti link. Use it to pick up work on a map you made before, or to recover an id you have lost.","summary":"List your maps","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["maps","list"],"x-ploti-descriptions":{"cli":"The maps you made through Ploti's API or an assistant, most recently used first, each with its id, title, view and Ploti link. Use it to pick up work on a map you made before, or to recover an id you have lost.","sdk":"The maps you made through Ploti's API or an assistant, most recently used first, each with its id, title, view and Ploti link. Use it to pick up work on a map you made before, or to recover an id you have lost."}}},"/v1/maps/{mapId}":{"get":{"operationId":"maps_get","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"map":{"type":"object","properties":{"mapId":{"type":"string","description":"The id the map tools take as map_id."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null here; GET /v1/maps gives the title.","x-ploti-description-cli":"Always null here; ploti maps list gives the title.","x-ploti-description-sdk":"Always null here; ploti.maps.list() gives the title."},"viewport":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place the view frames, as navigation named it ('custom area' without a name); null before a view is set."},"zoom":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The view's web-map zoom level; null before a view is set."},"url":{"type":"string","description":"The map in Ploti."}},"required":["mapId","title","viewport","zoom","url"],"additionalProperties":false}},"required":["map"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Check where a map is looking: returns its id, its view (the place it frames and the zoom, or none before POST /v1/maps/{mapId}/navigate sets one) and its Ploti link. GET /v1/maps/{mapId}/outputs lists what was saved on it.","summary":"Get a map","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","get"],"x-ploti-descriptions":{"cli":"Check where a map is looking: returns its id, its view (the place it frames and the zoom, or none before ploti maps navigate sets one) and its Ploti link. ploti maps outputs list lists what was saved on it.","sdk":"Check where a map is looking: returns its id, its view (the place it frames and the zoom, or none before Map.navigate() sets one) and its Ploti link. Map.outputs.list() lists what was saved on it."}}},"/v1/maps/{mapId}/navigate":{"post":{"operationId":"maps_navigate","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","description":"The place or center the view frames."},"zoom":{"type":"number","description":"The web-map zoom level the map landed on, a whole number."},"widthKm":{"type":"number","description":"The view's width, east to west, in km."},"heightKm":{"type":"number","description":"The view's height, north to south, in km."},"datasetsInView":{"type":"number","description":"Open layers with data in this view, for the map's key."}},"required":["label","zoom","widthKm","heightKm","datasetsInView"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Move the map the user sees. It doesn't change what data you can read: reads take a place or bbox of their own. Navigate as often as you need; each call replaces the view. Pass either a place name or a latitude/longitude center, never both. Every reply reports the resulting zoom and the span in km: read it and navigate again if the framing is wrong, rather than guessing a zoom up front.","summary":"Navigate the map","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"place":{"type":"string","maxLength":200,"description":"An address, city, county or state the geocoder resolves, e.g. 'Winter Garden, FL'. The view frames the place's extent unless zoom is given. The place being researched, never the user's own location."},"latitude":{"type":"number","minimum":-85,"maximum":85,"description":"Latitude of the view's center in WGS84 decimal degrees (north positive), e.g. from POST /v1/geocode or a row's coordinates. Pass with longitude. The place being researched, never the user's own location.","x-ploti-description-cli":"Latitude of the view's center in WGS84 decimal degrees (north positive), e.g. from ploti geocode or a row's coordinates. Pass with longitude. The place being researched, never the user's own location.","x-ploti-description-sdk":"Latitude of the view's center in WGS84 decimal degrees (north positive), e.g. from ploti.geocode() or a row's coordinates. Pass with longitude. The place being researched, never the user's own location."},"longitude":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude of the view's center in WGS84 decimal degrees (east positive, so negative across the US). Pass with latitude. The place being researched, never the user's own location."},"zoom":{"type":"number","minimum":3,"maximum":19,"description":"How close to look, as a web-map zoom level: 3 country, 8 region (up to ~140 km across), 10 metro (up to ~35 km), 13 city (~4 km), 15 neighborhood (~1 km), 17 block (~250 m); values between presets sit between their spans, and actual views are often narrower. With a place, centers on it at this zoom instead of framing its extent; with coordinates, 13 when left out."}}}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","navigate"],"x-ploti-descriptions":{"cli":"Move the map the user sees. It doesn't change what data you can read: reads take a place or bbox of their own. Navigate as often as you need; each call replaces the view. Pass either a place name or a latitude/longitude center, never both. Every reply reports the resulting zoom and the span in km: read it and navigate again if the framing is wrong, rather than guessing a zoom up front.","sdk":"Move the map the user sees. It doesn't change what data you can read: reads take a place or bbox of their own. Navigate as often as you need; each call replaces the view. Pass either a place name or a latitude/longitude center, never both. Every reply reports the resulting zoom and the span in km: read it and navigate again if the framing is wrong, rather than guessing a zoom up front."}}},"/v1/maps/{mapId}/datasets":{"get":{"operationId":"maps_datasets","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."},{"name":"kinds","in":"query","required":false,"description":"Kinds of data to keep: layer (rows with shapes), table (rows without), document (ordinances, plans, reports), scanned_map (a map image with no text) or collection (many documents behind one table). Every kind when left out.","schema":{"type":"array","items":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"minItems":1}},{"name":"topics","in":"query","required":false,"description":"Topics to keep, by the ids GET /v1/topics gives with what each covers; every topic when left out.","schema":{"type":"array","items":{"type":"string","enum":["parcels-property","zoning-land-use","subdivisions-platting","development-activity","environmental-constraints","flood-hazard-zones","special-districts","utilities-infrastructure","transportation-roads","public-services-facilities","easements-government","critical-assets","physical-environmental","imagery-basemaps","demographics-social","boundaries-jurisdictions","emergency-public-safety","economic-development","agriculture-natural-resources","historic-cultural","housing","government-records","coastal-marine","health-human-services"]},"minItems":1},"x-ploti-description-cli":"Topics to keep, by the ids ploti topics list gives with what each covers; every topic when left out.","x-ploti-description-sdk":"Topics to keep, by the ids ploti.topics.list() gives with what each covers; every topic when left out."},{"name":"datasetIds","in":"query","required":false,"description":"Dataset ids from the listing or from POST /v1/datasets/search, to read in detail.","schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50},"x-ploti-description-cli":"Dataset ids from the listing or from ploti datasets search, to read in detail.","x-ploti-description-sdk":"Dataset ids from the listing or from ploti.datasets.search(), to read in detail."},{"name":"limit","in":"query","required":false,"description":"Rows per page; 300 when left out. Narrowing kinds or topics usually beats a bigger page.","schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"number","description":"Datasets in the view, before filters."},"matching":{"type":"number","description":"Datasets the filters keep."},"datasets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"datasetId":{"type":"string","description":"What every read, download and watch takes as its dataset."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["kind","datasetId","title","place","topic","locked"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"missing":{"type":"array","items":{"type":"string"},"description":"Ids asked for that are not in the view."}},"required":["total","matching","datasets","nextCursor","missing"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"List every dataset the map's current view offers (layers, tables, documents, scanned maps, collections): the same list the Ploti map shows for this view and zoom, unranked, as titles. Use it when POST /v1/datasets/search doesn't find what you need or you are unsure it found the right thing. Rows (kind, title, dataset id, and a lock with what opens it) come grouped by place: the view's own places first, then state and national data. The header counts everything in view by place, topic and kind. Narrow it with kinds or topics to what the question needs, then page with cursor until nextCursor is null; leaving them out lists everything, which in a dense view runs to many pages. Pass dataset_ids with ids from the rows to read those datasets in detail: description, topic and how to read each. Then check a few rows (GET /v1/datasets/{datasetId}, POST /v1/datasets/{datasetId}/rows) or a document's sections before using one.","summary":"List data in view","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","datasets"],"x-ploti-descriptions":{"cli":"List every dataset the map's current view offers (layers, tables, documents, scanned maps, collections): the same list the Ploti map shows for this view and zoom, unranked, as titles. Use it when ploti datasets search doesn't find what you need or you are unsure it found the right thing. Rows (kind, title, dataset id, and a lock with what opens it) come grouped by place: the view's own places first, then state and national data. The header counts everything in view by place, topic and kind. Narrow it with kinds or topics to what the question needs, then page with cursor until nextCursor is null; leaving them out lists everything, which in a dense view runs to many pages. Pass dataset_ids with ids from the rows to read those datasets in detail: description, topic and how to read each. Then check a few rows (ploti datasets get, ploti datasets rows) or a document's sections before using one.","sdk":"List every dataset the map's current view offers (layers, tables, documents, scanned maps, collections): the same list the Ploti map shows for this view and zoom, unranked, as titles. Use it when ploti.datasets.search() doesn't find what you need or you are unsure it found the right thing. Rows (kind, title, dataset id, and a lock with what opens it) come grouped by place: the view's own places first, then state and national data. The header counts everything in view by place, topic and kind. Narrow it with kinds or topics to what the question needs, then page with cursor until nextCursor is null; leaving them out lists everything, which in a dense view runs to many pages. Pass dataset_ids with ids from the rows to read those datasets in detail: description, topic and how to read each. Then check a few rows (ploti.datasets.get(), ploti.datasets.rows()) or a document's sections before using one."}}},"/v1/data-requests":{"get":{"operationId":"requests_data_list","parameters":[{"name":"limit","in":"query","required":false,"description":"How many requests this page returns, newest first; 50 when left out.","schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"object","properties":{"total":{"type":"integer"},"open":{"type":"integer"},"ready":{"type":"integer"},"ended":{"type":"integer"},"needsYou":{"type":"integer"}},"required":["total","open","ready","ended","needsYou"],"additionalProperties":false},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The request's id, which GET /v1/data-requests/{requestId} takes; for a filing made for several places at once, the filing's id.","x-ploti-description-cli":"The request's id, which ploti requests data get takes; for a filing made for several places at once, the filing's id.","x-ploti-description-sdk":"The request's id, which ploti.requests.data.get() takes; for a filing made for several places at once, the filing's id."},"kind":{"type":"string","enum":["data_request","ask"],"description":"data_request, or ask: one filing made for several places, its places listed in places."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Ploti waits on the user's answer; GET /v1/data-requests/{requestId} has the question and POST /v1/data-requests/{requestId}/answer sends the answer.","x-ploti-description-cli":"Ploti waits on the user's answer; ploti requests data get has the question and ploti requests data answer sends the answer.","x-ploti-description-sdk":"Ploti waits on the user's answer; ploti.requests.data.get() has the question and ploti.requests.data.answer() sends the answer."},"places":{"type":"array","items":{"type":"object","properties":{"requestId":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"type":"string","description":"ready, first_results, needs_you, waiting, searching_again, working, stalled or ended."}},"required":["requestId","label","state"],"additionalProperties":false},"description":"An ask's places; empty for one request."},"datasets":{"type":"array","items":{"type":"string"},"description":"The datasets the user can open from it now, each in the catalog."},"links":{"type":"object","properties":{"view":{"type":"string"}},"required":["view"],"additionalProperties":false}},"required":["id","kind","title","place","headline","needsYou","places","datasets","links"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"links":{"type":"object","properties":{"requests":{"type":"string"}},"required":["requests"],"additionalProperties":false}},"required":["summary","requests","nextCursor","links"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"List the data requests this user filed in the workspace, newest first, each with a headline: a machine key, one sentence for the user, the step on the ladder found a source, collected, built, quality checked, ready, and a tone (working, waiting, late, needs_you, done, ended). A filing made for several places at once is one entry with its places. needsYou marks a request waiting on the user's answer: read it with GET /v1/data-requests/{requestId} and answer with POST /v1/data-requests/{requestId}/answer. A delivered dataset is in the catalog: find it with POST /v1/datasets/search. Check it before filing a research request: data this user already asked for is listed here, and filing again only repeats the work.","summary":"List data requests","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","data","list"],"x-ploti-descriptions":{"cli":"List the data requests this user filed in the workspace, newest first, each with a headline: a machine key, one sentence for the user, the step on the ladder found a source, collected, built, quality checked, ready, and a tone (working, waiting, late, needs_you, done, ended). A filing made for several places at once is one entry with its places. needsYou marks a request waiting on the user's answer: read it with ploti requests data get and answer with ploti requests data answer. A delivered dataset is in the catalog: find it with ploti datasets search. Check it before filing a research request: data this user already asked for is listed here, and filing again only repeats the work.","sdk":"List the data requests this user filed in the workspace, newest first, each with a headline: a machine key, one sentence for the user, the step on the ladder found a source, collected, built, quality checked, ready, and a tone (working, waiting, late, needs_you, done, ended). A filing made for several places at once is one entry with its places. needsYou marks a request waiting on the user's answer: read it with ploti.requests.data.get() and answer with ploti.requests.data.answer(). A delivered dataset is in the catalog: find it with ploti.datasets.search(). Check it before filing a research request: data this user already asked for is listed here, and filing again only repeats the work."}}},"/v1/data-requests/{requestId}":{"get":{"operationId":"requests_data_get","parameters":[{"name":"requestId","in":"path","required":true,"description":"The data request, by the id GET /v1/data-requests gives (a place's own id for a filing made for several places).","schema":{"type":"string","minLength":1,"maxLength":64},"x-ploti-description-cli":"The data request, by the id ploti requests data list gives (a place's own id for a filing made for several places).","x-ploti-description-sdk":"The data request, by the id ploti.requests.data.list() gives (a place's own id for a filing made for several places)."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/RequestStatus.View"},"links":{"type":"object","properties":{"view":{"type":"string"}},"required":["view"],"additionalProperties":false}},"required":["request","links"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One data request's status as Ploti tells the user: the headline, what is needed from them (you, with the open question and its options), what it waits on outside Ploti such as a publisher or a site (waits, dates in UTC), when something last happened, the typical time for a request like it, the datasets they can open now, its parts, milestones, and how it ended. Answer an open question with POST /v1/data-requests/{requestId}/answer.","summary":"Get a data request","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","data","get"],"x-ploti-descriptions":{"cli":"One data request's status as Ploti tells the user: the headline, what is needed from them (you, with the open question and its options), what it waits on outside Ploti such as a publisher or a site (waits, dates in UTC), when something last happened, the typical time for a request like it, the datasets they can open now, its parts, milestones, and how it ended. Answer an open question with ploti requests data answer.","sdk":"One data request's status as Ploti tells the user: the headline, what is needed from them (you, with the open question and its options), what it waits on outside Ploti such as a publisher or a site (waits, dates in UTC), when something last happened, the typical time for a request like it, the datasets they can open now, its parts, milestones, and how it ended. Answer an open question with ploti.requests.data.answer()."}}},"/v1/data-requests/{requestId}/answer":{"post":{"operationId":"requests_data_answer","parameters":[{"name":"requestId","in":"path","required":true,"description":"The data request, by the id GET /v1/data-requests gives (a place's own id for a filing made for several places).","schema":{"type":"string","minLength":1,"maxLength":64},"x-ploti-description-cli":"The data request, by the id ploti requests data list gives (a place's own id for a filing made for several places).","x-ploti-description-sdk":"The data request, by the id ploti.requests.data.list() gives (a place's own id for a filing made for several places)."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"alreadyAnswered":{"type":"boolean","description":"The question had closed before this answer arrived, so nothing was sent."},"links":{"type":"object","properties":{"view":{"type":"string"}},"required":["view"],"additionalProperties":false}},"required":["alreadyAnswered","links"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Send the user's answer to the question Ploti asked about a data request (needsYou), by the question's id from GET /v1/data-requests/{requestId}. The answer is one of the question's options, or the user's own words. Ploti goes on with it; without an answer it carries on with the assumption the question states once its deadline passes. Ask the user; never answer for them. Reports whether the question had already closed.","summary":"Answer a data request's question","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"question_id":{"type":"string","minLength":1,"maxLength":64,"description":"The question's id, from you.question.id."},"answer":{"type":"string","minLength":1,"maxLength":917,"description":"The user's answer: one of the question's options as written, or their own words."}},"required":["question_id","answer"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","data","answer"],"x-ploti-descriptions":{"cli":"Send the user's answer to the question Ploti asked about a data request (needsYou), by the question's id from ploti requests data get. The answer is one of the question's options, or the user's own words. Ploti goes on with it; without an answer it carries on with the assumption the question states once its deadline passes. Ask the user; never answer for them. Reports whether the question had already closed.","sdk":"Send the user's answer to the question Ploti asked about a data request (needsYou), by the question's id from ploti.requests.data.get(). The answer is one of the question's options, or the user's own words. Ploti goes on with it; without an answer it carries on with the assumption the question states once its deadline passes. Ask the user; never answer for them. Reports whether the question had already closed."}}},"/v1/webhooks":{"post":{"operationId":"webhooks_create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique value, such as a UUID. A retry with the same key within a day returns the first answer instead of creating again; the same key with a different body is refused as idempotency_conflict.","schema":{"type":"string","maxLength":255}}],"security":[{"bearer":[]}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","description":"The address Ploti POSTs to."},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"headerName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The extra header sent with every POST, by name only; null when there is none."},"subscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Data Feeds subscription whose events it receives, if any."},"events":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The Data Feeds event types it receives; every one when null."},"createdAt":{"type":"string","description":"When it was created, as an ISO 8601 time."},"lastDelivery":{"anyOf":[{"type":"object","properties":{"eventType":{"type":"string"},"state":{"type":"string","enum":["pending","sending","delivered","failed"]},"attempts":{"type":"integer","description":"How many times Ploti has tried to send it."},"lastStatus":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the receiver answered on the latest try; null when no answer came back."},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the latest try failed: no answer, refused, timed out, TLS failed or HTTP <status>; null when it did not."},"createdAt":{"type":"string","description":"When the event was queued, as an ISO 8601 time."}},"required":["eventType","state","attempts","lastStatus","lastError","createdAt"],"additionalProperties":false},{"type":"null"}],"description":"The newest event: pending (waiting for its next try), sending, delivered, or failed after its retries."}},"required":["id","url","description","headerName","subscriptionId","events","createdAt","lastDelivery"],"additionalProperties":false},"secret":{"type":"string","description":"The signing key the receiver verifies each POST with; it appears in this reply only."}},"required":["webhook","secret"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Have Ploti POST to an https URL whenever one of the member's data or research requests changes: a dataset delivered or failed, a question waiting on their answer, a research request's report ready or its answer in. Use it to wake a routine or alert the user wherever they are instead of polling. Each POST is JSON {id, type, timestamp, data} signed with Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature headers) under the returned secret, which is shown once; the reply carries the webhook's id, url, description, header name and creation time beside it. Docs: https://www.ploti.ai/docs/mcp/watch-datasets. A member may have 20 webhooks. Events: data_request.question (Ploti needs the member's answer; POST /v1/data-requests/{requestId}/answer sends it), .question_reminder, .first_results, .ready, .ended and .late; research_request.question (the data check needs the member's answers; POST /v1/research-requests/{requestId}/question-answers sends them), .report_ready (the data check reported what is there and what is missing), .answered (data.answer) and .needs_attention (the research cannot finish on its own). A request event's data is {id, kind, title, headline: {sentenceKey, sentence, step, tone}, you: {needed, text, question}, outcome, url}: sentenceKey and tone are machine keys, sentence is for the member, url opens the request in Ploti. dataset.changed: a dataset the member watches (POST /v1/dataset-watches) has a new version; data.datasetId is the dataset, data.version (the dataset's release number) and data.releasedAt the new version, data.changeLog and data.counts what it added, changed and removed (GET /v1/datasets/{datasetId}/changes lists those rows), data.provenanceUrl where its values come from (GET /v1/datasets/{datasetId}/provenance).","summary":"Create a webhook","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2000,"description":"The https address Ploti POSTs each event to; it must take JSON from the public internet."},"description":{"type":"string","maxLength":200,"description":"What the receiver is for, shown beside the webhook in Ploti, e.g. 'Nightly permit digest routine'."},"header":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9-]{1,100}$","description":"The header the receiver reads its credential from, such as Authorization."},"value":{"type":"string","maxLength":4000,"pattern":"^[\\x20-\\x7e]+$","description":"The credential the receiver expects in that header, such as 'Bearer <token>'. Ploti sends it with every POST and never shows it again."}},"required":["name","value"],"description":"A header the receiver requires, e.g. {\"name\": \"Authorization\", \"value\": \"Bearer …\"}; it is sent with every POST and never shown again."},"subscriptionId":{"type":"string","minLength":1,"maxLength":32,"description":"A Data Feeds subscription: the webhook then receives that subscription's feed.* events instead of request events, and each POST adds subscriptionId (https://www.ploti.ai/docs/feeds/events)."},"events":{"type":"array","items":{"type":"string","enum":["feed.dataset.added","feed.dataset.updated","feed.dataset.schema_changed","feed.dataset.resync_required","feed.dataset.removed","feed.dataset.stale","feed.dataset.delayed"]},"minItems":1,"description":"With subscriptionId, only these feed event types; every one when left out."}},"required":["url"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["webhooks","create"],"x-ploti-descriptions":{"cli":"Have Ploti POST to an https URL whenever one of the member's data or research requests changes: a dataset delivered or failed, a question waiting on their answer, a research request's report ready or its answer in. Use it to wake a routine or alert the user wherever they are instead of polling. Each POST is JSON {id, type, timestamp, data} signed with Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature headers) under the returned secret, which is shown once; the reply carries the webhook's id, url, description, header name and creation time beside it. Docs: https://www.ploti.ai/docs/mcp/watch-datasets. A member may have 20 webhooks. Events: data_request.question (Ploti needs the member's answer; ploti requests data answer sends it), .question_reminder, .first_results, .ready, .ended and .late; research_request.question (the data check needs the member's answers; ploti requests questions answer sends them), .report_ready (the data check reported what is there and what is missing), .answered (data.answer) and .needs_attention (the research cannot finish on its own). A request event's data is {id, kind, title, headline: {sentenceKey, sentence, step, tone}, you: {needed, text, question}, outcome, url}: sentenceKey and tone are machine keys, sentence is for the member, url opens the request in Ploti. dataset.changed: a dataset the member watches (ploti datasets watch) has a new version; data.datasetId is the dataset, data.version (the dataset's release number) and data.releasedAt the new version, data.changeLog and data.counts what it added, changed and removed (ploti datasets changes lists those rows), data.provenanceUrl where its values come from (ploti datasets provenance).","sdk":"Have Ploti POST to an https URL whenever one of the member's data or research requests changes: a dataset delivered or failed, a question waiting on their answer, a research request's report ready or its answer in. Use it to wake a routine or alert the user wherever they are instead of polling. Each POST is JSON {id, type, timestamp, data} signed with Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature headers) under the returned secret, which is shown once; the reply carries the webhook's id, url, description, header name and creation time beside it. Docs: https://www.ploti.ai/docs/mcp/watch-datasets. A member may have 20 webhooks. Events: data_request.question (Ploti needs the member's answer; ploti.requests.data.answer() sends it), .question_reminder, .first_results, .ready, .ended and .late; research_request.question (the data check needs the member's answers; ploti.requests.questions.answer() sends them), .report_ready (the data check reported what is there and what is missing), .answered (data.answer) and .needs_attention (the research cannot finish on its own). A request event's data is {id, kind, title, headline: {sentenceKey, sentence, step, tone}, you: {needed, text, question}, outcome, url}: sentenceKey and tone are machine keys, sentence is for the member, url opens the request in Ploti. dataset.changed: a dataset the member watches (ploti.datasets.watch()) has a new version; data.datasetId is the dataset, data.version (the dataset's release number) and data.releasedAt the new version, data.changeLog and data.counts what it added, changed and removed (ploti.datasets.changes() lists those rows), data.provenanceUrl where its values come from (ploti.datasets.provenance())."}},"get":{"operationId":"webhooks_list","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"webhooks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","description":"The address Ploti POSTs to."},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"headerName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The extra header sent with every POST, by name only; null when there is none."},"subscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Data Feeds subscription whose events it receives, if any."},"events":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The Data Feeds event types it receives; every one when null."},"createdAt":{"type":"string","description":"When it was created, as an ISO 8601 time."},"lastDelivery":{"anyOf":[{"type":"object","properties":{"eventType":{"type":"string"},"state":{"type":"string","enum":["pending","sending","delivered","failed"]},"attempts":{"type":"integer","description":"How many times Ploti has tried to send it."},"lastStatus":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the receiver answered on the latest try; null when no answer came back."},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the latest try failed: no answer, refused, timed out, TLS failed or HTTP <status>; null when it did not."},"createdAt":{"type":"string","description":"When the event was queued, as an ISO 8601 time."}},"required":["eventType","state","attempts","lastStatus","lastError","createdAt"],"additionalProperties":false},{"type":"null"}],"description":"The newest event: pending (waiting for its next try), sending, delivered, or failed after its retries."}},"required":["id","url","description","headerName","subscriptionId","events","createdAt","lastDelivery"],"additionalProperties":false}}},"required":["webhooks"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The member's webhooks, each with its id, url, description, header name, when it was created, and its last delivery (event, state, attempts, last status or error). Secrets are never repeated; a new secret means a new webhook.","summary":"List webhooks","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["webhooks","list"],"x-ploti-descriptions":{"cli":"The member's webhooks, each with its id, url, description, header name, when it was created, and its last delivery (event, state, attempts, last status or error). Secrets are never repeated; a new secret means a new webhook.","sdk":"The member's webhooks, each with its id, url, description, header name, when it was created, and its last delivery (event, state, attempts, last status or error). Secrets are never repeated; a new secret means a new webhook."}}},"/v1/webhooks/{webhookId}":{"delete":{"operationId":"webhooks_delete","parameters":[{"name":"webhookId","in":"path","required":true,"description":"The webhook, by the id POST /v1/webhooks gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The webhook, by the id ploti webhooks create gave.","x-ploti-description-sdk":"The webhook, by the id ploti.webhooks.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True once the webhook is gone; an unknown id is refused instead."}},"required":["deleted"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Stop Ploti posting to one of the member's webhooks. Events not yet sent to it are cancelled, and the webhook and its secret are gone for good: receiving events again means a new webhook with a new secret. Confirm with the user before removing one they set up. Reports whether a webhook was deleted.","summary":"Delete a webhook","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["webhooks","delete"],"x-ploti-descriptions":{"cli":"Stop Ploti posting to one of the member's webhooks. Events not yet sent to it are cancelled, and the webhook and its secret are gone for good: receiving events again means a new webhook with a new secret. Confirm with the user before removing one they set up. Reports whether a webhook was deleted.","sdk":"Stop Ploti posting to one of the member's webhooks. Events not yet sent to it are cancelled, and the webhook and its secret are gone for good: receiving events again means a new webhook with a new secret. Confirm with the user before removing one they set up. Reports whether a webhook was deleted."}}},"/v1/webhooks/{webhookId}/test":{"post":{"operationId":"webhooks_test","parameters":[{"name":"webhookId","in":"path","required":true,"description":"The webhook, by the id POST /v1/webhooks gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The webhook, by the id ploti webhooks create gave.","x-ploti-description-sdk":"The webhook, by the id ploti.webhooks.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"delivered":{"type":"boolean","description":"Whether the receiver answered with a 2xx status."},"status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the receiver answered; null when no answer came back."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it was not delivered: no answer, refused, timed out, TLS failed or HTTP <status>; null when delivered."}},"required":["delivered","status","error"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Send one signed `ping` event to a webhook now and report how the receiver answered: delivered, or error as one of no answer, refused, timed out, TLS failed or HTTP <status>.","summary":"Test a webhook","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["webhooks","test"],"x-ploti-descriptions":{"cli":"Send one signed `ping` event to a webhook now and report how the receiver answered: delivered, or error as one of no answer, refused, timed out, TLS failed or HTTP <status>.","sdk":"Send one signed `ping` event to a webhook now and report how the receiver answered: delivered, or error as one of no answer, refused, timed out, TLS failed or HTTP <status>."}}},"/v1/dataset-watches":{"get":{"operationId":"datasets_watches","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"watches":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset's id, as dataset.changed names it."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The county, city or state the dataset covers; null when the catalog names none."},"since":{"type":"string","description":"When the watch began."}},"required":["datasetId","title","place","since"],"additionalProperties":false}}},"required":["watches"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The datasets the member watches: each new version of one is sent to their webhooks as dataset.changed. Returns each watch's dataset id, title, place and when the watch began.","summary":"List watched datasets","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","watches"],"x-ploti-descriptions":{"cli":"The datasets the member watches: each new version of one is sent to their webhooks as dataset.changed. Returns each watch's dataset id, title, place and when the watch began.","sdk":"The datasets the member watches: each new version of one is sent to their webhooks as dataset.changed. Returns each watch's dataset id, title, place and when the watch began."}},"post":{"operationId":"datasets_watch","parameters":[],"security":[{"bearer":[]}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"watch":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset's id, as dataset.changed names it."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The county, city or state the dataset covers; null when the catalog names none."},"since":{"type":"string","description":"When the watch began."}},"required":["datasetId","title","place","since"],"additionalProperties":false}},"required":["watch"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Be told each time a dataset gets a new version: Ploti sends a dataset.changed event to the member's webhooks (POST /v1/webhooks makes one) with the dataset's id, the new version and when it went live. Use it to have an agent check new rows for what the user is after, such as new permits matching their criteria, instead of polling. Watch a dataset POST /v1/datasets/search found; one the workspace's coverage or plan does not open cannot be watched. Watching again changes nothing. A member may watch 100 datasets.","summary":"Watch a dataset","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","minLength":1,"maxLength":255,"description":"Which dataset, by the id POST /v1/datasets/search gives for it; GET /v1/dataset-watches repeats the ids being watched.","x-ploti-description-cli":"Which dataset, by the id ploti datasets search gives for it; ploti datasets watches repeats the ids being watched.","x-ploti-description-sdk":"Which dataset, by the id ploti.datasets.search() gives for it; ploti.datasets.watches() repeats the ids being watched."}},"required":["datasetId"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","watch"],"x-ploti-descriptions":{"cli":"Be told each time a dataset gets a new version: Ploti sends a dataset.changed event to the member's webhooks (ploti webhooks create makes one) with the dataset's id, the new version and when it went live. Use it to have an agent check new rows for what the user is after, such as new permits matching their criteria, instead of polling. Watch a dataset ploti datasets search found; one the workspace's coverage or plan does not open cannot be watched. Watching again changes nothing. A member may watch 100 datasets.","sdk":"Be told each time a dataset gets a new version: Ploti sends a dataset.changed event to the member's webhooks (ploti.webhooks.create() makes one) with the dataset's id, the new version and when it went live. Use it to have an agent check new rows for what the user is after, such as new permits matching their criteria, instead of polling. Watch a dataset ploti.datasets.search() found; one the workspace's coverage or plan does not open cannot be watched. Watching again changes nothing. A member may watch 100 datasets."}}},"/v1/dataset-watches/{datasetId}":{"delete":{"operationId":"datasets_unwatch","parameters":[{"name":"datasetId","in":"path","required":true,"description":"Which dataset, by the id POST /v1/datasets/search gives for it; GET /v1/dataset-watches repeats the ids being watched.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"Which dataset, by the id ploti datasets search gives for it; ploti datasets watches repeats the ids being watched.","x-ploti-description-sdk":"Which dataset, by the id ploti.datasets.search() gives for it; ploti.datasets.watches() repeats the ids being watched."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"stopped":{"type":"boolean","description":"True once the watch is gone."}},"required":["stopped"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Stop watching a dataset: its new versions are no longer sent to the member's webhooks as dataset.changed, and it leaves GET /v1/dataset-watches. Nothing already delivered changes, and POST /v1/dataset-watches starts it again. Returns stopped: true once the watch is gone; a dataset the member was not watching is refused as not found.","summary":"Stop watching a dataset","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","unwatch"],"x-ploti-descriptions":{"cli":"Stop watching a dataset: its new versions are no longer sent to the member's webhooks as dataset.changed, and it leaves ploti datasets watches. Nothing already delivered changes, and ploti datasets watch starts it again. Returns stopped: true once the watch is gone; a dataset the member was not watching is refused as not found.","sdk":"Stop watching a dataset: its new versions are no longer sent to the member's webhooks as dataset.changed, and it leaves ploti.datasets.watches(). Nothing already delivered changes, and ploti.datasets.watch() starts it again. Returns stopped: true once the watch is gone; a dataset the member was not watching is refused as not found."}}},"/v1/datasets/{datasetId}/changes":{"get":{"operationId":"datasets_changes","parameters":[{"name":"datasetId","in":"path","required":true,"description":"Which dataset, by the id POST /v1/datasets/search gives for it; GET /v1/dataset-watches repeats the ids being watched.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"Which dataset, by the id ploti datasets search gives for it; ploti datasets watches repeats the ids being watched.","x-ploti-description-sdk":"Which dataset, by the id ploti.datasets.search() gives for it; ploti.datasets.watches() repeats the ids being watched."},{"name":"version","in":"query","required":false,"description":"The version, as dataset.changed names it: the number of the dataset's release that made it live. Defaults to the latest.","schema":{"type":"integer","exclusiveMinimum":0}},{"name":"limit","in":"query","required":false,"description":"How many changes to return; 200 unless given.","schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"number","description":"The version: the number of the dataset's release that made it live, counted per dataset."},"releasedAt":{"type":"string","description":"When the version went live."},"changeLog":{"anyOf":[{"type":"string","enum":["recorded","counts_only","record_ids_changed","full_refresh","first"]},{"type":"null"}],"description":"recorded: every change is listed. counts_only: too many to list, counted. record_ids_changed: this version replaced every record id. An id you hold from an earlier version may no longer name its row. Where Ploti accepts an id it follows an old one to the current one; otherwise read the rows again by your own keys. Its edits are listed as changed rows under the new ids when they fit (see counts): when fewer changed rows are listed than counts.changed, they did not fit, so query the dataset with your own filters. full_refresh: not compared. first: the first version. Null: a version from before changes were kept."},"counts":{"anyOf":[{"type":"object","properties":{"added":{"type":"number"},"changed":{"type":"number"},"removed":{"type":"number"}},"required":["added","changed","removed"],"additionalProperties":false},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["added","changed","removed","renamed"],"description":"renamed: recordId now names the record replacesRecordId named, so follow it. It can arrive in the version after the one that showed that record removed and recordId added. A version that replaced every id says so in changeLog (record_ids_changed) instead of one renamed row per record."},"key":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"The row's key columns. A removed row with a recordId has null where its table had no value under the key, and recordId names it; a removed row with neither a recordId nor a key carries its columns."},"recordId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The row's Ploti record id (https://www.ploti.ai/docs/feeds/record-ids), an opaque handle: store it as it is, and never parse it or treat it as a gid or a key. Null for a dataset whose table has no record ids yet."},"replacesRecordId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"On a renamed change, the record id that recordId replaces. Null otherwise."},"row":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"The row as it is now, for an added or changed row of the latest version."}},"required":["kind","key","recordId","replacesRecordId","row"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["datasetId","version","releasedAt","changeLog","counts","changes","nextCursor","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The rows a version of a dataset added, changed, removed or renamed, so an agent told of a new version (dataset.changed) reads only those instead of the whole dataset. Pass the version the event named, the dataset's release number (v1, v2, ...); without one it is the latest. A version whose data was released again under a later number is refused as expired, naming the version to read. An added or changed row of the latest version comes with the row itself (no geometry); a removed row, or one of an older version, comes with its key. Each change names its row by recordId, which survives a new version where a row position does not. A renamed change says recordId now names the record replacesRecordId named, so follow it; it can arrive in the version after the one that showed that record removed and recordId added, because the map's log does not wait for Ploti's matching agent. A version that replaced every id has no renamed row per record; its changeLog says so. When the changes were not recorded (changeLog counts_only, full_refresh or first), the note says so: query the dataset with your own filters instead.","summary":"List a dataset version's changes","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","changes"],"x-ploti-descriptions":{"cli":"The rows a version of a dataset added, changed, removed or renamed, so an agent told of a new version (dataset.changed) reads only those instead of the whole dataset. Pass the version the event named, the dataset's release number (v1, v2, ...); without one it is the latest. A version whose data was released again under a later number is refused as expired, naming the version to read. An added or changed row of the latest version comes with the row itself (no geometry); a removed row, or one of an older version, comes with its key. Each change names its row by recordId, which survives a new version where a row position does not. A renamed change says recordId now names the record replacesRecordId named, so follow it; it can arrive in the version after the one that showed that record removed and recordId added, because the map's log does not wait for Ploti's matching agent. A version that replaced every id has no renamed row per record; its changeLog says so. When the changes were not recorded (changeLog counts_only, full_refresh or first), the note says so: query the dataset with your own filters instead.","sdk":"The rows a version of a dataset added, changed, removed or renamed, so an agent told of a new version (dataset.changed) reads only those instead of the whole dataset. Pass the version the event named, the dataset's release number (v1, v2, ...); without one it is the latest. A version whose data was released again under a later number is refused as expired, naming the version to read. An added or changed row of the latest version comes with the row itself (no geometry); a removed row, or one of an older version, comes with its key. Each change names its row by recordId, which survives a new version where a row position does not. A renamed change says recordId now names the record replacesRecordId named, so follow it; it can arrive in the version after the one that showed that record removed and recordId added, because the map's log does not wait for Ploti's matching agent. A version that replaced every id has no renamed row per record; its changeLog says so. When the changes were not recorded (changeLog counts_only, full_refresh or first), the note says so: query the dataset with your own filters instead."}}},"/v1/datasets/{datasetId}/provenance":{"get":{"operationId":"datasets_provenance","parameters":[{"name":"datasetId","in":"path","required":true,"description":"Which dataset, by the id POST /v1/datasets/search gives for it.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"Which dataset, by the id ploti datasets search gives for it.","x-ploti-description-sdk":"Which dataset, by the id ploti.datasets.search() gives for it."},{"name":"path","in":"query","required":false,"description":"builtFrom ids joined by \"/\", in order, to walk to a dataset this one was built from.","schema":{"type":"string","maxLength":2000}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"path":{"type":"array","items":{"type":"string"}},"recorded":{"type":"boolean","description":"False for a dataset published before Ploti kept provenance records; nothing else is filled then."},"locked":{"type":"boolean"},"methodology":{"anyOf":[{"type":"object","properties":{"summary":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}}},"required":["summary","steps"],"additionalProperties":false},{"type":"null"}]},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The dataset's account of itself, in Markdown."},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"role":{"type":"string","description":"observed_evidence: values were read from it. methodology_only: it informed the method, not values."},"authority":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"official, official_reference, third_party or unknown, as Ploti scored the publisher; null when not recorded."},"originalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"effectiveDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"retrievedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The date the source says it is current to."},"archivedCopy":{"anyOf":[{"type":"object","properties":{"contentType":{"type":"string"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"retrievedAt":{"type":"string"}},"required":["contentType","sizeBytes","sha256","retrievedAt"],"additionalProperties":false},{"type":"null"}],"description":"The copy Ploti archived when it read the source."},"file":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass to GET /v1/datasets/{datasetId}/files/{file} as file, with the same path, to download Ploti's copy of this source. Null when Ploti holds none it can serve.","x-ploti-description-cli":"Pass to ploti datasets files get as file, with the same path, to download Ploti's copy of this source. Null when Ploti holds none it can serve.","x-ploti-description-sdk":"Pass to ploti.datasets.files.get() as file, with the same path, to download Ploti's copy of this source. Null when Ploti holds none it can serve."},"fileLink":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link that opens Ploti's copy for a person signed in to the workspace, to cite to the user."}},"required":["id","title","role","authority","originalUrl","effectiveDate","retrievedAt","asOf","archivedCopy","file","fileLink"],"additionalProperties":false}},"builtFrom":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"usage":{"type":"string"}},"required":["id","title","usage"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"classification":{"type":"string","enum":["observed","computed","estimated","transformed"]},"appliesTo":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"description":"Which rows: {\"op\": \"all\"}, or eq, in, not, and, or over column values.","additionalProperties":{}}},"required":["columns","where"]},"formula":{"type":"object","propertyNames":{"type":"string"},"description":"For a computed value: the expression and its inputs.","additionalProperties":{}},"evidence":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string"},"locator":{"type":"object","propertyNames":{"type":"string"},"description":"Where in the source the value sits: a page, table, cell, region or locator column.","additionalProperties":{}}},"required":["sourceId","locator"]}}},"required":["id","classification","appliesTo"],"additionalProperties":{}},"description":"Which columns each rule applies to, observed, computed, estimated or transformed, its formula, and its evidence: a sourceId and a locator naming where in that source the value sits."},"constants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"record":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string"},"transformRecorded":{"type":"boolean"},"transform":{"anyOf":[{"oneOf":[{"type":"object","properties":{"measured":{"type":"boolean","const":false},"reason":{"type":"string"}},"required":["measured","reason"],"additionalProperties":false},{"type":"object","properties":{"measured":{"type":"boolean","const":true},"schemaDiff":{"type":"object","properties":{"kept":{"type":"array","items":{"type":"string"}},"renamed":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"check":{"anyOf":[{"type":"object","properties":{"compared":{"type":"number"},"differing":{"type":"number"}},"required":["compared","differing"],"additionalProperties":false},{"type":"null"}]}},"required":["from","to","check"],"additionalProperties":false}},"cast":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"fromType":{"type":"string"},"toType":{"type":"string"},"lossless":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"compared":{"type":"number"},"differing":{"type":"number"}},"required":["compared","differing"],"additionalProperties":false},{"type":"null"}]}},"required":["column","fromType","toType","lossless"],"additionalProperties":false}},"added":{"type":"array","items":{"type":"string"}},"dropped":{"type":"array","items":{"type":"string"}},"modified":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"compared":{"type":"number"},"differing":{"type":"number"}},"required":["column","compared","differing"],"additionalProperties":false},"default":[]},"uncompared":{"type":"array","items":{"type":"string"},"default":[]}},"required":["kept","renamed","cast","added","dropped","modified","uncompared"],"additionalProperties":false},"rows":{"type":"object","properties":{"raw":{"anyOf":[{"type":"number"},{"type":"null"}]},"published":{"anyOf":[{"type":"number"},{"type":"null"}]},"compared":{"anyOf":[{"type":"number"},{"type":"null"}]},"joinedOn":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}},"by":{"type":"string","enum":["source_record_key","unique_column"],"default":"unique_column"}},"required":["columns","by"],"additionalProperties":false},{"type":"null"}]},"pairingRejected":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}}},"required":["columns"],"additionalProperties":false},"duplicateKeysCollapsed":{"anyOf":[{"type":"number"},{"type":"null"}]},"withoutSourceKey":{"anyOf":[{"type":"number"},{"type":"null"}]},"acknowledgedLoss":{"type":"boolean"},"reason":{"type":"string"}},"required":["raw","published","duplicateKeysCollapsed","withoutSourceKey","acknowledgedLoss"],"additionalProperties":false},"hidden":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}},"valueMaps":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"entries":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["column","entries"],"additionalProperties":false}}},"required":["columns","valueMaps"],"additionalProperties":false},"code":{"type":"object","properties":{"sha256":{"type":"string"}},"required":["sha256"],"additionalProperties":false}},"required":["measured","schemaDiff","rows"],"additionalProperties":false}]},{"type":"null"}]},"sourceRecordKey":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"sourceVersionResolvedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"authority":{"anyOf":[{"type":"string","enum":["official","official_reference","third_party","unknown"]},{"type":"null"}],"default":null},"retrievedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"asOf":{"anyOf":[{"type":"string"},{"type":"null"}]},"fetch":{"anyOf":[{"type":"object","properties":{"requestedUrl":{"type":"string"},"finalUrl":{"type":"string"},"sameSiteAsOriginal":{"type":"boolean"}},"additionalProperties":false},{"type":"null"}]},"original":{"anyOf":[{"oneOf":[{"type":"object","properties":{"available":{"type":"boolean","const":true},"url":{"type":"string"},"contentType":{"type":"string"}},"required":["available","url","contentType"],"additionalProperties":false},{"type":"object","properties":{"available":{"type":"boolean","const":false},"reason":{"type":"string"}},"required":["available","reason"],"additionalProperties":false}]},{"type":"null"}],"default":null}},"required":["id","authority","retrievedAt","asOf","fetch","original"],"additionalProperties":false}}},"required":["schemaVersion","transformRecorded","transform","sourceRecordKey","sourceVersionResolvedBy","sources"],"additionalProperties":false},{"type":"null"}],"description":"What the publish measured: columns renamed, cast, added or dropped, rows dropped and why."},"checks":{"anyOf":[{"type":"object","properties":{"observed":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"compared":{"type":"number"},"mismatched":{"type":"number"},"unchecked":{"type":"number"},"reason":{"type":"string"},"waivedBy":{"type":"string"}},"required":["ruleId","compared","mismatched","unchecked"],"additionalProperties":false}}},"required":["rules"],"additionalProperties":false},"locators":{"type":"object","properties":{"resolved":{"type":"number"},"unresolved":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"reason":{"type":"string"}},"required":["ruleId","reason"],"additionalProperties":false}}},"required":["resolved","unresolved"],"additionalProperties":false}},"required":["observed","locators"],"additionalProperties":false},{"type":"null"}],"description":"What comparing the record's claims with the data found."},"gaps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"missingIngredient":{"type":"string","description":"What the dataset lacks."}},"required":["id"],"additionalProperties":{}}},"placement":{"anyOf":[{"type":"object","properties":{"pendingReplacement":{"anyOf":[{"type":"number"},{"type":"null"}]},"snapshot":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"type":"string","enum":["not_promoted","not_placed_yet"]}},"required":["pendingReplacement","snapshot"],"additionalProperties":false},{"type":"null"}],"description":"Rows entity resolution placed that are held off the map until their parcel is proven in the parcel layer's current publication, and that layer's snapshot state. Null when none wait or the dataset is locked. A null count with a reason is unknown: not_promoted until the dataset's next promotion, not_placed_yet until entity resolution places the promoted version. A null count without a reason means the read failed."}},"required":["datasetId","path","recorded","locked","methodology","account","sources","builtFrom","rules","constants","record","checks","gaps"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"How a dataset was made and where its values come from, so an answer can cite them: the methodology, each source (publisher, dates, its original link and Ploti's archived copy), the rules that derive each value with the evidence's location in its source (a page, table or cell), what the values were checked against, the known gaps, and the datasets it was built from. Pass a dataset id POST /v1/datasets/search gave; pass path with a builtFrom id to read that dataset's own record. A dataset outside the workspace's coverage or plan returns its methodology and sources only (locked: true).","summary":"Where a dataset comes from","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","provenance"],"x-ploti-descriptions":{"cli":"How a dataset was made and where its values come from, so an answer can cite them: the methodology, each source (publisher, dates, its original link and Ploti's archived copy), the rules that derive each value with the evidence's location in its source (a page, table or cell), what the values were checked against, the known gaps, and the datasets it was built from. Pass a dataset id ploti datasets search gave; pass path with a builtFrom id to read that dataset's own record. A dataset outside the workspace's coverage or plan returns its methodology and sources only (locked: true).","sdk":"How a dataset was made and where its values come from, so an answer can cite them: the methodology, each source (publisher, dates, its original link and Ploti's archived copy), the rules that derive each value with the evidence's location in its source (a page, table or cell), what the values were checked against, the known gaps, and the datasets it was built from. Pass a dataset id ploti.datasets.search() gave; pass path with a builtFrom id to read that dataset's own record. A dataset outside the workspace's coverage or plan returns its methodology and sources only (locked: true)."}}},"/v1/datasets/search":{"post":{"operationId":"datasets_search","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"datasetId":{"type":"string","description":"What every read, download and watch takes as its dataset."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["kind","datasetId","title","place","topic","locked"],"additionalProperties":false}},"locked":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"datasetId":{"type":"string","description":"What every read, download and watch takes as its dataset."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["kind","datasetId","title","place","topic","locked"],"additionalProperties":false},"description":"Matches here that the workspace's plan or coverage locks."},"truncated":{"type":"boolean","description":"More matched than were returned."},"elsewhereCount":{"type":"number","description":"Matches elsewhere, found with scope='coverage' or a place."},"documentText":{"type":"string","enum":["searched","not_needed","waking","unavailable"],"description":"Whether what documents say was searched: waking means the document search was waking and the same search in a few seconds includes it; unavailable means it cannot be searched here; not_needed means no document could match."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why what documents say was not searched, and what to do; null when it was searched or not needed."}},"required":["matches","locked","truncated","elsewhereCount","documentText","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Find the layers, tables, documents (ordinances, plans, reports) and scanned maps that can answer a question, by their titles, descriptions, schemas, values and content; documents are also matched by meaning. Searches a named county, city or state, or without one the workspace's whole coverage; given a map with a view, what that view offers unless scope='coverage'. Each match leads with its dataset id, which every read, download and watch takes, and says how to use it and where it matched; county and city data outside the coverage comes back locked, naming the county that opens it; a statewide dataset is open whole in a state the coverage has a county in, and a national one to any covered workspace. Search once for each thing the question needs (the parcel, the zoning, the signs), each in two to four phrasings in the words the data might use. Use it before GET /v1/datasets when you know what you need. When the reply says the document search was waking, the same search in a few seconds includes what documents say. Data Ploti lacks can be requested with POST /v1/research-requests.","summary":"Find data","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"queries":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":4}],"description":"Phrasings of what you need, in the words the data might use; several different phrasings find more than one."},"kinds":{"type":"array","items":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"minItems":1,"description":"Kinds of data to keep: layer (rows with shapes), table (rows without), document (ordinances, plans, reports), scanned_map (a map image with no text) or collection (many documents behind one table). Every kind when left out."},"topics":{"type":"array","items":{"type":"string","enum":["parcels-property","zoning-land-use","subdivisions-platting","development-activity","environmental-constraints","flood-hazard-zones","special-districts","utilities-infrastructure","transportation-roads","public-services-facilities","easements-government","critical-assets","physical-environmental","imagery-basemaps","demographics-social","boundaries-jurisdictions","emergency-public-safety","economic-development","agriculture-natural-resources","historic-cultural","housing","government-records","coastal-marine","health-human-services"]},"minItems":1,"description":"Topics to keep, by the ids GET /v1/topics gives with what each covers; every topic when left out.","x-ploti-description-cli":"Topics to keep, by the ids ploti topics list gives with what each covers; every topic when left out.","x-ploti-description-sdk":"Topics to keep, by the ids ploti.topics.list() gives with what each covers; every topic when left out."},"place":{"type":"string","maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"mapId":{"type":"string","description":"The map whose view to search, by the id POST /v1/maps returned. Leave it out to search a place or the whole coverage; reading needs no map.","x-ploti-description-cli":"The map whose view to search, by the id ploti maps create returned. Leave it out to search a place or the whole coverage; reading needs no map.","x-ploti-description-sdk":"The map whose view to search, by the id ploti.maps.create() returned. Leave it out to search a place or the whole coverage; reading needs no map."},"scope":{"type":"string","enum":["view","coverage"],"description":"With map_id: 'view' (the default) is what the map's view offers; 'coverage' is every place the workspace has data for. A place overrides it."},"limit":{"type":"integer","minimum":1,"maximum":30,"description":"How many matches to return, best first; 12 when left out. The reply says when more match: narrow the queries or kinds rather than raising it."}},"required":["queries"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","search"],"x-ploti-descriptions":{"cli":"Find the layers, tables, documents (ordinances, plans, reports) and scanned maps that can answer a question, by their titles, descriptions, schemas, values and content; documents are also matched by meaning. Searches a named county, city or state, or without one the workspace's whole coverage; given a map with a view, what that view offers unless scope='coverage'. Each match leads with its dataset id, which every read, download and watch takes, and says how to use it and where it matched; county and city data outside the coverage comes back locked, naming the county that opens it; a statewide dataset is open whole in a state the coverage has a county in, and a national one to any covered workspace. Search once for each thing the question needs (the parcel, the zoning, the signs), each in two to four phrasings in the words the data might use. Use it before ploti datasets list when you know what you need. When the reply says the document search was waking, the same search in a few seconds includes what documents say. Data Ploti lacks can be requested with ploti requests create.","sdk":"Find the layers, tables, documents (ordinances, plans, reports) and scanned maps that can answer a question, by their titles, descriptions, schemas, values and content; documents are also matched by meaning. Searches a named county, city or state, or without one the workspace's whole coverage; given a map with a view, what that view offers unless scope='coverage'. Each match leads with its dataset id, which every read, download and watch takes, and says how to use it and where it matched; county and city data outside the coverage comes back locked, naming the county that opens it; a statewide dataset is open whole in a state the coverage has a county in, and a national one to any covered workspace. Search once for each thing the question needs (the parcel, the zoning, the signs), each in two to four phrasings in the words the data might use. Use it before ploti.datasets.list() when you know what you need. When the reply says the document search was waking, the same search in a few seconds includes what documents say. Data Ploti lacks can be requested with ploti.requests.create()."}}},"/v1/datasets":{"get":{"operationId":"datasets_list","parameters":[{"name":"place","in":"query","required":false,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","schema":{"type":"string","minLength":1,"maxLength":120},"x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},{"name":"mapId","in":"query","required":false,"description":"A map's id, to list what lies in its view when no place is named.","schema":{"type":"string"}},{"name":"kinds","in":"query","required":false,"description":"Kinds of data to keep: layer (rows with shapes), table (rows without), document (ordinances, plans, reports), scanned_map (a map image with no text) or collection (many documents behind one table). Every kind when left out.","schema":{"type":"array","items":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"minItems":1}},{"name":"topics","in":"query","required":false,"description":"Topics to keep, by the ids GET /v1/topics gives with what each covers; every topic when left out.","schema":{"type":"array","items":{"type":"string","enum":["parcels-property","zoning-land-use","subdivisions-platting","development-activity","environmental-constraints","flood-hazard-zones","special-districts","utilities-infrastructure","transportation-roads","public-services-facilities","easements-government","critical-assets","physical-environmental","imagery-basemaps","demographics-social","boundaries-jurisdictions","emergency-public-safety","economic-development","agriculture-natural-resources","historic-cultural","housing","government-records","coastal-marine","health-human-services"]},"minItems":1},"x-ploti-description-cli":"Topics to keep, by the ids ploti topics list gives with what each covers; every topic when left out.","x-ploti-description-sdk":"Topics to keep, by the ids ploti.topics.list() gives with what each covers; every topic when left out."},{"name":"includeLocked","in":"query","required":false,"description":"Also list datasets the plan or coverage locks. Defaults to false.","schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Datasets per page; 25 when left out.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"number","description":"Datasets that match, across all pages."},"datasets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["layer","table","document","scanned_map","collection"]},"datasetId":{"type":"string","description":"What every read, download and watch takes as its dataset."},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["kind","datasetId","title","place","topic","locked"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"scope":{"type":"string","description":"Where these datasets were looked for."},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["total","datasets","nextCursor","scope","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Every dataset in a place, in a map's view, or without either in the workspace's coverage, of every kind (layers, tables, documents, scanned maps, collections), unranked: the map's own list, by place, topic and title. Use POST /v1/datasets/search to search by what is in them. Locked datasets are left out unless include_locked=true; a locked one exists and cannot be read yet. Each row names its datasetId and kind; GET /v1/datasets/{datasetId} gives a layer's or table's columns.","summary":"List datasets","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","list"],"x-ploti-descriptions":{"cli":"Every dataset in a place, in a map's view, or without either in the workspace's coverage, of every kind (layers, tables, documents, scanned maps, collections), unranked: the map's own list, by place, topic and title. Use ploti datasets search to search by what is in them. Locked datasets are left out unless include_locked=true; a locked one exists and cannot be read yet. Each row names its datasetId and kind; ploti datasets get gives a layer's or table's columns.","sdk":"Every dataset in a place, in a map's view, or without either in the workspace's coverage, of every kind (layers, tables, documents, scanned maps, collections), unranked: the map's own list, by place, topic and title. Use ploti.datasets.search() to search by what is in them. Locked datasets are left out unless include_locked=true; a locked one exists and cannot be read yet. Each row names its datasetId and kind; ploti.datasets.get() gives a layer's or table's columns."}}},"/v1/datasets/{datasetId}":{"get":{"operationId":"datasets_get","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."},{"name":"detail","in":"query","required":false,"description":"summary names every column; full also defines each one. summary when left out; fields, when given, takes its place.","schema":{"type":"string","enum":["summary","full"]}},{"name":"fields","in":"query","required":false,"description":"Columns to describe in full, e.g. ['land_use_code', 'acreage']; the whole layer when left out.","schema":{"type":"array","items":{"type":"string","minLength":1},"maxItems":40}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset described, by its datasetId."},"name":{"type":"string","description":"The dataset's title."},"idColumn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The column whose value names a row, which POST /v1/datasets/{datasetId}/lookup, POST /v1/datasets/{datasetId}/related and a snapshot's ids take; null when the dataset has none.","x-ploti-description-cli":"The column whose value names a row, which ploti datasets lookup, ploti datasets related and a snapshot's ids take; null when the dataset has none.","x-ploti-description-sdk":"The column whose value names a row, which ploti.datasets.lookup(), ploti.datasets.related() and a snapshot's ids take; null when the dataset has none."},"recordIdColumn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The column holding each row's Ploti record id: the id a row keeps across the dataset's versions, and the one GET /v1/datasets/{datasetId}/changes and Data Feeds name a row by. An opaque string to store and compare, never to parse. Null when the dataset has none.","x-ploti-description-cli":"The column holding each row's Ploti record id: the id a row keeps across the dataset's versions, and the one ploti datasets changes and Data Feeds name a row by. An opaque string to store and compare, never to parse. Null when the dataset has none.","x-ploti-description-sdk":"The column holding each row's Ploti record id: the id a row keeps across the dataset's versions, and the one ploti.datasets.changes() and Data Feeds name a row by. An opaque string to store and compare, never to parse. Null when the dataset has none."},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","description":"The column's database type."},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","type","label","description"],"additionalProperties":false},"description":"Every column, for a program; schema says the same as text."},"fieldCount":{"type":"number","description":"Columns described."},"schema":{"type":"string","description":"Every column with its type, label and description, as text; with detail full, each column's codes, units and aliases too."},"fieldNames":{"type":"array","items":{"type":"string"},"description":"Every column's name."},"hasGeometry":{"type":"boolean"},"geometryType":{"type":"string","description":"The layer's usual shape, e.g. Point, MultiPolygon or MultiLineString."},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Given fields: each named column's full definition."},"notFound":{"type":"array","items":{"type":"string"},"description":"Columns named in fields that the dataset lacks."},"fileColumns":{"type":"array","items":{"type":"string"},"description":"Columns whose cell is the row's file, as document:<sha256>; absent when there are none."}},"required":["datasetId","name","idColumn","recordIdColumn","columns","fieldCount"],"additionalProperties":{}}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"A dataset's (a layer's or table's) dataset id, geometry, id column and columns, with each column's type, label and description. fileColumns names the columns whose cell is the row's file (document:<sha256>), which GET /v1/datasets/{datasetId}/files/{file} downloads with the same dataset. detail='full' adds every column's full definition (codes, units, aliases); fields narrows the answer to the columns named. Coded columns (land use, zoning, flood zone) list their codes with GET /v1/datasets/{datasetId}/values.","summary":"Describe a layer's columns","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","get"],"x-ploti-descriptions":{"cli":"A dataset's (a layer's or table's) dataset id, geometry, id column and columns, with each column's type, label and description. fileColumns names the columns whose cell is the row's file (document:<sha256>), which ploti datasets files get downloads with the same dataset. detail='full' adds every column's full definition (codes, units, aliases); fields narrows the answer to the columns named. Coded columns (land use, zoning, flood zone) list their codes with ploti datasets values.","sdk":"A dataset's (a layer's or table's) dataset id, geometry, id column and columns, with each column's type, label and description. fileColumns names the columns whose cell is the row's file (document:<sha256>), which ploti.datasets.files.get() downloads with the same dataset. detail='full' adds every column's full definition (codes, units, aliases); fields narrows the answer to the columns named. Coded columns (land use, zoning, flood zone) list their codes with ploti.datasets.values()."}}},"/v1/datasets/{datasetId}/values":{"get":{"operationId":"datasets_values","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."},{"name":"field","in":"query","required":true,"description":"The coded column, as GET /v1/datasets/{datasetId} names it, e.g. 'land_use_code' or 'fld_zone'.","schema":{"type":"string","minLength":1,"maxLength":128},"x-ploti-description-cli":"The coded column, as ploti datasets get names it, e.g. 'land_use_code' or 'fld_zone'.","x-ploti-description-sdk":"The coded column, as ploti.datasets.get() names it, e.g. 'land_use_code' or 'fld_zone'."},{"name":"place","in":"query","required":false,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location. Counts the values of a column without a dictionary there; the workspace's coverage when left out. A dictionary's codes hold everywhere.","schema":{"type":"string","minLength":1,"maxLength":120},"x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location. Counts the values of a column without a dictionary there; the workspace's coverage when left out. A dictionary's codes hold everywhere.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location. Counts the values of a column without a dictionary there; the workspace's coverage when left out. A dictionary's codes hold everywhere."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset read, by its datasetId."},"scope":{"type":"string","description":"dataset_dictionary when the codes come from the column's dictionary, which holds across the whole dataset; otherwise the place whose values were counted."},"note":{"type":"string","description":"How to read these values."},"columnName":{"type":"string"},"columnLabel":{"type":"string"},"columnDescription":{"type":"string"},"total":{"type":"number","description":"Codes in the dictionary, all of them in options."},"options":{"type":"array","items":{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"number"}]},"label":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["code","label"],"additionalProperties":false},"description":"From a dictionary: each code, as filters take it, with its label."},"values":{"type":"array","items":{"type":"object","properties":{"value":{},"rows":{"type":"number","description":"Rows holding the value."}},"required":["value","rows"],"additionalProperties":false},"description":"Without a dictionary: the column's commonest values, up to 50, most rows first."}},"required":["datasetId","scope","note"],"additionalProperties":{}}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The codes a coded column takes across the whole dataset, each with its label (land use 0100 = single family, flood zone AE), with the column's notes. A column without a dictionary returns its commonest values inside the workspace's coverage or the place named, with row counts.","summary":"List a coded column's values","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","values"],"x-ploti-descriptions":{"cli":"The codes a coded column takes across the whole dataset, each with its label (land use 0100 = single family, flood zone AE), with the column's notes. A column without a dictionary returns its commonest values inside the workspace's coverage or the place named, with row counts.","sdk":"The codes a coded column takes across the whole dataset, each with its label (land use 0100 = single family, flood zone AE), with the column's notes. A column without a dictionary returns its commonest values inside the workspace's coverage or the place named, with row counts."}}},"/v1/datasets/{datasetId}/profile":{"post":{"operationId":"datasets_profile","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset to read, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset to read, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset to read, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset read, by its dataset id, whatever name the request used."},"scope":{"type":"string","description":"What place this reply covers, as a sentence."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Anything else worth knowing."},"rows":{"type":"number","description":"Covered rows the profile read."},"columns":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"with_value":{"type":"number","description":"Rows where the column is not null."},"share":{"type":"number","description":"with_value as a fraction of rows, from 0 to 1."},"distinct":{"type":"number","description":"Distinct values among those rows."},"min":{"description":"The smallest value, compared as text unless the column holds numbers or dates; null when it holds none."},"max":{"description":"The largest value, compared the same way."}},"required":["column","with_value","share","distinct","min","max"],"additionalProperties":false}}},"required":["datasetId","scope","note","rows","columns"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"What columns of a layer or table really hold, among its rows or those of a place. Returns, for each column named, how many rows hold a value and what share, its distinct values, min and max, with how many rows were read. A filter on a mostly empty column returns a clean 0, so profile a column before trusting a count that rests on it, and compare rows with distinct ids to learn a layer's real grain.","summary":"Profile a layer's columns","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":20,"description":"Columns to profile, as the layer's description names them."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"inSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Keep only the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Keep only the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Keep only the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"notInSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Leave out the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Leave out the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Leave out the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."}},"required":["columns"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","profile"],"x-ploti-descriptions":{"cli":"What columns of a layer or table really hold, among its rows or those of a place. Returns, for each column named, how many rows hold a value and what share, its distinct values, min and max, with how many rows were read. A filter on a mostly empty column returns a clean 0, so profile a column before trusting a count that rests on it, and compare rows with distinct ids to learn a layer's real grain.","sdk":"What columns of a layer or table really hold, among its rows or those of a place. Returns, for each column named, how many rows hold a value and what share, its distinct values, min and max, with how many rows were read. A filter on a mostly empty column returns a clean 0, so profile a column before trusting a count that rests on it, and compare rows with distinct ids to learn a layer's real grain."}}},"/v1/datasets/{datasetId}/rows":{"post":{"operationId":"datasets_rows","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset to read, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset to read, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset to read, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset read, by its dataset id, whatever name the request used."},"scope":{"type":"string","description":"What place this reply covers, as a sentence."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Anything else worth knowing."},"matched":{"type":"object","properties":{"count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Null when how is unknown."},"how":{"type":"string","enum":["exact","planner","at_least","table_estimate","unknown"],"description":"exact: counted. planner: the database's estimate, which can be well off. table_estimate: the database's statistic for the whole table, which can be a little off either way. at_least: counting ran out of time, and this many rows are known to exist. unknown: counting ran out of time with nothing known."}},"required":["count","how"],"additionalProperties":false,"description":"Rows the request matches, across pages."},"returned":{"type":"number","description":"Rows in this page."},"columns":{"type":"array","items":{"type":"string"},"description":"The columns each row holds."},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"One object per row, keyed by column, with the fields the geometry mode adds."},"columnTypes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Each of the layer's returned columns and its database type."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"geometry":{"type":"object","properties":{"mode":{"type":"string","enum":["none","centroid","area","bbox","full"]},"format":{"anyOf":[{"type":"string","enum":["geojson"]},{"type":"null"}]}},"required":["mode","format"],"additionalProperties":false,"description":"What the rows say about their shapes, and in what form."}},"required":["datasetId","scope","note","matched","returned","columns","rows","columnTypes","nextCursor","geometry"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Rows of one dataset (a layer or table), with no map or view. A dataset the workspace's coverage opens reads whole, and one it does not is refused. Name the columns, then narrow with where, any_of, place, bbox, in_snapshot or not_in_snapshot. A shape touching a place or box is included. Returns a page of rows holding the columns named, each column's database type, how many rows matched across pages and how that was counted, and what place it read; nextCursor continues to the next page. GET /v1/datasets/{datasetId} names the columns. For joins across layers, POST /v1/datasets/{datasetId}/files copies the rows to where you can join them.","summary":"Read a layer's rows","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":100,"description":"Columns to return, as the layer's description names them. The layer's id column always comes back too."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"inSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Keep only the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Keep only the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Keep only the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"notInSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Leave out the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Leave out the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Leave out the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"geometry":{"type":"string","enum":["none","centroid","area","bbox","full"],"description":"What each row says about its shape. none: nothing. centroid: _longitude and _latitude. area: _area_m2. bbox: _bbox as [west, south, east, north]. full: _geometry as GeoJSON, the heaviest. none when left out."},"orderBy":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":128,"description":"A column to sort by, as the layer's description names it."},"direction":{"type":"string","enum":["asc","desc"],"description":"asc when left out."}},"required":["column"]},"minItems":1,"maxItems":3,"description":"Sort order, e.g. [{\"column\": \"acreage\", \"direction\": \"desc\"}]. A sorted read pages through at most 50000 rows; an unsorted one has no such limit unless its reply says otherwise."},"limit":{"type":"integer","minimum":1,"description":"Most rows in this page; 100 when left out. A reply says how many fit when you ask for more."},"cursor":{"type":"string","maxLength":4000,"description":"The previous reply's nextCursor, with the same request, for the next page."}},"required":["columns"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","rows"],"x-ploti-descriptions":{"cli":"Rows of one dataset (a layer or table), with no map or view. A dataset the workspace's coverage opens reads whole, and one it does not is refused. Name the columns, then narrow with where, any_of, place, bbox, in_snapshot or not_in_snapshot. A shape touching a place or box is included. Returns a page of rows holding the columns named, each column's database type, how many rows matched across pages and how that was counted, and what place it read; nextCursor continues to the next page. ploti datasets get names the columns. For joins across layers, ploti datasets download copies the rows to where you can join them.","sdk":"Rows of one dataset (a layer or table), with no map or view. A dataset the workspace's coverage opens reads whole, and one it does not is refused. Name the columns, then narrow with where, any_of, place, bbox, in_snapshot or not_in_snapshot. A shape touching a place or box is included. Returns a page of rows holding the columns named, each column's database type, how many rows matched across pages and how that was counted, and what place it read; nextCursor continues to the next page. ploti.datasets.get() names the columns. For joins across layers, ploti.datasets.download() copies the rows to where you can join them."}}},"/v1/datasets/{datasetId}/aggregate":{"post":{"operationId":"datasets_aggregate","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset to read, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset to read, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset to read, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset read, by its dataset id, whatever name the request used."},"scope":{"type":"string","description":"What place this reply covers, as a sentence."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Anything else worth knowing."},"matched":{"type":"object","properties":{"count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Null when how is unknown."},"how":{"type":"string","enum":["exact","planner","at_least","table_estimate","unknown"],"description":"exact: counted. planner: the database's estimate, which can be well off. table_estimate: the database's statistic for the whole table, which can be a little off either way. at_least: counting ran out of time, and this many rows are known to exist. unknown: counting ran out of time with nothing known."}},"required":["count","how"],"additionalProperties":false,"description":"Covered rows the result was computed over."},"returned":{"type":"number","description":"Result rows in this reply."},"columns":{"type":"array","items":{"type":"string"},"description":"The group_by columns, then each metric's name."},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"One per group, holding its group_by values and each metric by name."}},"required":["datasetId","scope","note","matched","returned","columns","rows"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Counts, sums, averages, minimums and maximums over one layer's rows, optionally broken down by the group_by columns, with the same narrowing as POST /v1/datasets/{datasetId}/rows. Returns one row per group holding its group_by values and each metric by name, largest group first unless order_by says otherwise, and how many rows the result covers.","summary":"Summarize a layer's rows","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["count","sum","avg","min","max"],"description":"What to compute over each group's rows: count counts rows, or a column's values that are not null; sum and avg need a number column."},"column":{"type":"string","minLength":1,"maxLength":128,"description":"The column to measure. Left out of count, it counts rows."},"as":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$","description":"The result's name in each row; fn_column when left out (avg_acreage), or count for a count of rows."}},"required":["fn"]},"minItems":1,"maxItems":20,"description":"What to compute, e.g. [{\"fn\": \"count\"}, {\"fn\": \"avg\", \"column\": \"acreage\"}]."},"groupBy":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":2,"description":"Columns to break the result down by: one result row for each combination of their values. A single result row when left out."},"orderBy":{"type":"object","properties":{"result":{"type":"string","description":"A metric's name, or a group_by column, to rank by."},"direction":{"type":"string","enum":["asc","desc"],"description":"desc ranks the largest first; asc, the smallest.","default":"desc"}},"required":["result"],"description":"How to rank the groups, for a top-N by something other than count. Most rows first when left out, and groups past the limit are cut in this order."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"inSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Keep only the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Keep only the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Keep only the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"notInSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Leave out the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Leave out the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Leave out the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."}},"required":["metrics"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","aggregate"],"x-ploti-descriptions":{"cli":"Counts, sums, averages, minimums and maximums over one layer's rows, optionally broken down by the group_by columns, with the same narrowing as ploti datasets rows. Returns one row per group holding its group_by values and each metric by name, largest group first unless order_by says otherwise, and how many rows the result covers.","sdk":"Counts, sums, averages, minimums and maximums over one layer's rows, optionally broken down by the group_by columns, with the same narrowing as ploti.datasets.rows(). Returns one row per group holding its group_by values and each metric by name, largest group first unless order_by says otherwise, and how many rows the result covers."}}},"/v1/datasets/{datasetId}/estimate":{"post":{"operationId":"datasets_estimate","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset to read, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset to read, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset to read, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset read, by its dataset id, whatever name the request used."},"scope":{"type":"string","description":"What place this reply covers, as a sentence."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Anything else worth knowing."},"rows":{"type":"object","properties":{"count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Null when how is unknown."},"how":{"type":"string","enum":["exact","planner","at_least","table_estimate","unknown"],"description":"exact: counted. planner: the database's estimate, which can be well off. table_estimate: the database's statistic for the whole table, which can be a little off either way. at_least: counting ran out of time, and this many rows are known to exist. unknown: counting ran out of time with nothing known."}},"required":["count","how"],"additionalProperties":false},"bytes":{"type":"object","properties":{"count":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Null when no sample could be read in time."},"how":{"type":"string","description":"How the bytes were worked out."}},"required":["count","how"],"additionalProperties":false},"pages":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Pages the rows would take at the largest page."},"sandboxFit":{"anyOf":[{"type":"object","properties":{"fits":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"neededMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"availableMb":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["fits","neededMb","availableMb"],"additionalProperties":false},{"type":"null"}],"description":"Whether the rows fit the map's sandbox, given map_id."}},"required":["datasetId","scope","note","rows","bytes","pages","sandboxFit"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"How many rows and bytes a POST /v1/datasets/{datasetId}/rows request would return, before anything moves: an exact count where that is cheap, otherwise the database planner's estimate, and the reply says which. Bytes come from the average size of a sample of rows at the columns and geometry mode asked for.","summary":"Size up a read","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":100,"description":"Columns the read would return; every column when left out."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"inSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Keep only the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Keep only the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Keep only the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"notInSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Leave out the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Leave out the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Leave out the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"geometry":{"type":"string","enum":["none","centroid","area","bbox","full"],"description":"What each row says about its shape. none: nothing. centroid: _longitude and _latitude. area: _area_m2. bbox: _bbox as [west, south, east, north]. full: _geometry as GeoJSON, the heaviest. none when left out."},"mapId":{"type":"string","minLength":1,"description":"A map's id, as POST /v1/maps or GET /v1/maps gives it, to also learn whether these rows would fit in its sandbox. sandboxFit is null when left out.","x-ploti-description-cli":"A map's id, as ploti maps create or ploti maps list gives it, to also learn whether these rows would fit in its sandbox. sandboxFit is null when left out.","x-ploti-description-sdk":"A map's id, as ploti.maps.create() or ploti.maps.list() gives it, to also learn whether these rows would fit in its sandbox. sandboxFit is null when left out."}}}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","estimate"],"x-ploti-descriptions":{"cli":"How many rows and bytes a ploti datasets rows request would return, before anything moves: an exact count where that is cheap, otherwise the database planner's estimate, and the reply says which. Bytes come from the average size of a sample of rows at the columns and geometry mode asked for.","sdk":"How many rows and bytes a ploti.datasets.rows() request would return, before anything moves: an exact count where that is cheap, otherwise the database planner's estimate, and the reply says which. Bytes come from the average size of a sample of rows at the columns and geometry mode asked for."}}},"/v1/datasets/{datasetId}/lookup":{"post":{"operationId":"datasets_lookup","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset searched, by its datasetId."},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"Each matching row, keyed by column, with every column except geometry, plus _latitude and _longitude."},"returned":{"type":"number","description":"Rows in this reply."},"truncated":{"type":"boolean","description":"More rows matched than limit allowed."},"scope":{"type":"string","description":"What the lookup searched."},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["datasetId","rows","returned","truncated","scope","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Rows of a layer or table by an id, APN, address or owner name, wherever they are in it, when the workspace's coverage opens the dataset. match='exact' compares whole values (ids, APNs, codes); match='contains' finds text columns containing the value in any case (owner names: 'GRBK EDGEWOOD' finds 'GRBK EDGEWOOD LLC'), and needs at least 3 characters. Returns up to limit rows, each with every column except geometry, plus _latitude and _longitude, and whether more matched.","summary":"Look up rows by id or name","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":8,"description":"Columns to match on; a row matches on any of them, e.g. ['apn', 'alt_apn']."},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]},"minItems":1,"maxItems":50,"description":"Values to find, e.g. ['R040171'] or ['GRBK EDGEWOOD']."},"match":{"type":"string","enum":["exact","contains"],"description":"exact compares whole values; contains finds text columns containing the value, in any case. exact when left out."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Most rows to return; 50 when left out."}},"required":["columns","values"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","lookup"],"x-ploti-descriptions":{"cli":"Rows of a layer or table by an id, APN, address or owner name, wherever they are in it, when the workspace's coverage opens the dataset. match='exact' compares whole values (ids, APNs, codes); match='contains' finds text columns containing the value in any case (owner names: 'GRBK EDGEWOOD' finds 'GRBK EDGEWOOD LLC'), and needs at least 3 characters. Returns up to limit rows, each with every column except geometry, plus _latitude and _longitude, and whether more matched.","sdk":"Rows of a layer or table by an id, APN, address or owner name, wherever they are in it, when the workspace's coverage opens the dataset. match='exact' compares whole values (ids, APNs, codes); match='contains' finds text columns containing the value in any case (owner names: 'GRBK EDGEWOOD' finds 'GRBK EDGEWOOD LLC'), and needs at least 3 characters. Returns up to limit rows, each with every column except geometry, plus _latitude and _longitude, and whether more matched."}}},"/v1/datasets/{datasetId}/related":{"post":{"operationId":"datasets_related","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset the row is in, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset the row is in, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset the row is in, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"object","properties":{"datasetId":{"type":"string"},"id":{"type":"string","description":"The row checked."}},"required":["datasetId","id"],"additionalProperties":false,"description":"The row the relationship was tested from."},"operation":{"type":"string","enum":["intersects","touches","dwithin","contains","within","overlaps"]},"distance":{"type":"number","description":"For dwithin: the distance in meters."},"results":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string","description":"The dataset checked, by its datasetId."},"featureCount":{"type":"number","description":"Matching features found."},"featureIds":{"type":"array","items":{"type":"string"},"description":"The matching features' values in that layer's id column, up to 1000."},"error":{"type":"string","description":"Why this layer could not be checked."}},"required":["datasetId","featureCount","featureIds"],"additionalProperties":false},"description":"One entry for each layer checked."},"skippedDatasets":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"reason":{"type":"string"}},"required":["datasetId","reason"],"additionalProperties":false},"description":"Layers that were not checked, and why."},"summary":{"type":"string","description":"The result in a sentence, naming each layer with matches and any that were skipped."}},"required":["source","operation","results","summary"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The features of other layers that relate spatially to one row of a dataset, such as a parcel in a county parcel dataset: intersects (shares any space), within (the row lies inside the feature, e.g. a flood zone), contains (inside the row), touches, overlaps, or dwithin a distance in meters. Returns, for each layer checked, the matching features' ids and how many, with a summary sentence that names any layer skipped.","summary":"Find features related to a row","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","minLength":1},{"type":"number"}],"description":"The row's value in the dataset's id column (GET /v1/datasets/{datasetId} names it).","x-ploti-description-cli":"The row's value in the dataset's id column (ploti datasets get names it).","x-ploti-description-sdk":"The row's value in the dataset's id column (ploti.datasets.get() names it)."},"datasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":10,"description":"The layers to check, by the datasetIds POST /v1/datasets/search or GET /v1/datasets give.","x-ploti-description-cli":"The layers to check, by the datasetIds ploti datasets search or ploti datasets list give.","x-ploti-description-sdk":"The layers to check, by the datasetIds ploti.datasets.search() or ploti.datasets.list() give."},"operation":{"type":"string","enum":["intersects","touches","dwithin","contains","within","overlaps"],"description":"The relationship to test."},"distanceMeters":{"type":"number","minimum":0,"maximum":5000,"description":"The distance in meters, for dwithin, which is refused without it. The other operations ignore it."}},"required":["id","datasetIds","operation"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","related"],"x-ploti-descriptions":{"cli":"The features of other layers that relate spatially to one row of a dataset, such as a parcel in a county parcel dataset: intersects (shares any space), within (the row lies inside the feature, e.g. a flood zone), contains (inside the row), touches, overlaps, or dwithin a distance in meters. Returns, for each layer checked, the matching features' ids and how many, with a summary sentence that names any layer skipped.","sdk":"The features of other layers that relate spatially to one row of a dataset, such as a parcel in a county parcel dataset: intersects (shares any space), within (the row lies inside the feature, e.g. a flood zone), contains (inside the row), touches, overlaps, or dwithin a distance in meters. Returns, for each layer checked, the matching features' ids and how many, with a summary sentence that names any layer skipped."}}},"/v1/datasets/{datasetId}/files":{"post":{"operationId":"datasets_files_create","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset to read, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset to read, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset to read, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","running"],"description":"done, with files; or running, when jobId says where to look."},"jobId":{"anyOf":[{"type":"string"},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Downloads the file with no sign-in."},"rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Its rows, when they are counted apart from the total."},"bytes":{"anyOf":[{"type":"integer"},{"type":"null"}]},"fileId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A file the worker cut, which GET /v1/files/{fileId} links again once the link expires.","x-ploti-description-cli":"A file the worker cut, which ploti files get links again once the link expires.","x-ploti-description-sdk":"A file the worker cut, which ploti.files.get() links again once the link expires."}},"required":["url","rows","bytes","fileId"],"additionalProperties":false},"description":"GeoParquet files, in order. Read them together as one table: shapes are in geom, with a bbox column of each row's extent."},"whole":{"type":"boolean","description":"true when the files are the layer's own, every column of every row, so the columns asked for are a subset to keep."},"rows":{"anyOf":[{"type":"integer"},{"type":"null"}]},"scope":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresInSeconds":{"type":"integer"},"worker":{"anyOf":[{"type":"object","properties":{"memory":{"type":"object","properties":{"usedMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"limitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"duckdbLimitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"sandboxPeakMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"peakMb":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["usedMb","limitMb","duckdbLimitMb","sandboxPeakMb"],"allOf":[{"type":"object","additionalProperties":{}}]},"disk":{"type":"object","properties":{"usedMb":{"type":"number"},"freeMb":{"type":"number"},"totalMb":{"type":"number"}},"required":["usedMb","freeMb"],"additionalProperties":false},"duckdbFileMb":{"type":"number"},"spillMb":{"type":"number"},"seconds":{"type":"number"},"queuedSeconds":{"type":"number"}},"required":["memory","disk","duckdbFileMb","spillMb"],"allOf":[{"type":"object","additionalProperties":{}}],"description":"What the worker has and used: memory now, its limit and this call's peak (peakMb), disk, the tables' file, spill, and seconds."},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","jobId","files","whole","rows","expiresInSeconds"],"allOf":[{"type":"object","additionalProperties":{}}],"description":"Where to download the rows."}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Hands a layer's rows over as GeoParquet files to download, for an agent with its own computer to analyse with its own tools. Takes the same request as POST /v1/datasets/{datasetId}/rows. A whole layer (no where, any_of, place, bbox, snapshot, order_by, and geometry full or none) comes back at once as the layer's own files, every column included. Anything narrower is cut from them on Ploti's side, with no map needed; a slow cut returns a job id for GET /v1/jobs/{jobId}. The links last an hour.","summary":"Get a layer's rows as files","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":100,"description":"Columns to load, as the layer's description names them; every column when left out. The layer's id column always comes too."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"inSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Keep only the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Keep only the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Keep only the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"notInSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Leave out the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Leave out the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Leave out the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"geometry":{"type":"string","enum":["none","centroid","area","bbox","full"],"description":"How much of each row's shape comes along: a centroid point, its area, its bounding box, or the full shape. none when left out."},"orderBy":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":128,"description":"A column to sort by, as the layer's description names it."},"direction":{"type":"string","enum":["asc","desc"],"description":"asc when left out."}},"required":["column"]},"minItems":1,"maxItems":3,"description":"Sort order, e.g. [{\"column\": \"acreage\", \"direction\": \"desc\"}]. A sorted read pages through at most 50000 rows; an unsorted one has no such limit unless its reply says otherwise."}}}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","files","create"],"x-ploti-descriptions":{"cli":"Hands a layer's rows over as GeoParquet files to download, for an agent with its own computer to analyse with its own tools. Takes the same request as ploti datasets rows. A whole layer (no where, any_of, place, bbox, snapshot, order_by, and geometry full or none) comes back at once as the layer's own files, every column included. Anything narrower is cut from them on Ploti's side, with no map needed; a slow cut returns a job id for ploti jobs get. The links last an hour.","sdk":"Hands a layer's rows over as GeoParquet files to download, for an agent with its own computer to analyse with its own tools. Takes the same request as ploti.datasets.rows(). A whole layer (no where, any_of, place, bbox, snapshot, order_by, and geometry full or none) comes back at once as the layer's own files, every column included. Anything narrower is cut from them on Ploti's side, with no map needed; a slow cut returns a job id for ploti.jobs.get(). The links last an hour."}}},"/v1/datasets/{datasetId}/files/{file}":{"get":{"operationId":"datasets_files_get","parameters":[{"name":"datasetId","in":"path","required":true,"description":"Which dataset, by the id POST /v1/datasets/search gives for it.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"Which dataset, by the id ploti datasets search gives for it.","x-ploti-description-sdk":"Which dataset, by the id ploti.datasets.search() gives for it."},{"name":"file","in":"path","required":true,"description":"\"original\", \"source:<id>\" with a source id, or a row's \"document:<sha256>\" as its cell reads.","schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"path","in":"query","required":false,"description":"For a source of a dataset this one was built from: the builtFrom ids joined by \"/\", as GET /v1/datasets/{datasetId}/provenance takes them.","schema":{"type":"string","maxLength":2000},"x-ploti-description-cli":"For a source of a dataset this one was built from: the builtFrom ids joined by \"/\", as ploti datasets provenance takes them.","x-ploti-description-sdk":"For a source of a dataset this one was built from: the builtFrom ids joined by \"/\", as ploti.datasets.provenance() takes them."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"file":{"type":"string","description":"The file as it was asked for."},"filename":{"type":"string","description":"A name to save the file under."},"contentType":{"type":"string","description":"The file's media type."},"sizeBytes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The file's size in bytes; null when not recorded."},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SHA-256 checksum on record; null when Ploti recorded none."},"integrity":{"type":"string","enum":["verified","unverified"],"description":"verified: storage confirmed the bytes match the checksum on record. unverified: storage holds no checksum of its own for this copy to compare, so check sha256 against the bytes you download."},"downloadUrl":{"type":"string","description":"Fetches the bytes until expiresAt. Not for the user."},"expiresAt":{"type":"string","description":"When downloadUrl stops working."},"link":{"type":"string","description":"A lasting link for a person signed in to Ploti: each visit checks access and opens a fresh copy."}},"required":["datasetId","file","filename","contentType","sizeBytes","sha256","integrity","downloadUrl","expiresAt","link"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"A file Ploti holds for a dataset, as a download link: file \"source:<id>\" is a source's archived copy (the ids are in GET /v1/datasets/{datasetId}/provenance's sources, which say which have one), and file \"original\" is the document or map file Ploti downloaded for the version the dataset publishes now, such as an ordinance's PDF or a scanned zoning map. A row's file (a permit's PDF, a meeting's minutes) is the value its cell holds, \"document:<sha256>\": GET /v1/datasets/{datasetId} names those columns as fileColumns. downloadUrl expires within minutes: fetch it now, and call again for a fresh one. link is the address to give the user, which opens the file for anyone signed in to the workspace. A copy whose checksum no longer matches its record is refused. Returns the file's name, content type, size and checksum with downloadUrl and link.","summary":"Download a dataset's file","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["datasets","files","get"],"x-ploti-descriptions":{"cli":"A file Ploti holds for a dataset, as a download link: file \"source:<id>\" is a source's archived copy (the ids are in ploti datasets provenance's sources, which say which have one), and file \"original\" is the document or map file Ploti downloaded for the version the dataset publishes now, such as an ordinance's PDF or a scanned zoning map. A row's file (a permit's PDF, a meeting's minutes) is the value its cell holds, \"document:<sha256>\": ploti datasets get names those columns as fileColumns. downloadUrl expires within minutes: fetch it now, and call again for a fresh one. link is the address to give the user, which opens the file for anyone signed in to the workspace. A copy whose checksum no longer matches its record is refused. Returns the file's name, content type, size and checksum with downloadUrl and link.","sdk":"A file Ploti holds for a dataset, as a download link: file \"source:<id>\" is a source's archived copy (the ids are in ploti.datasets.provenance()'s sources, which say which have one), and file \"original\" is the document or map file Ploti downloaded for the version the dataset publishes now, such as an ordinance's PDF or a scanned zoning map. A row's file (a permit's PDF, a meeting's minutes) is the value its cell holds, \"document:<sha256>\": ploti.datasets.get() names those columns as fileColumns. downloadUrl expires within minutes: fetch it now, and call again for a fresh one. link is the address to give the user, which opens the file for anyone signed in to the workspace. A copy whose checksum no longer matches its record is refused. Returns the file's name, content type, size and checksum with downloadUrl and link."}}},"/v1/geocode":{"post":{"operationId":"geocode","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"type":"object","properties":{"PlaceId":{"type":"string"},"PlaceType":{"type":"string","description":"PointAddress, Street, Locality and the like."},"Title":{"type":"string","description":"The candidate in a line."},"Address":{"type":"object","properties":{"Label":{"type":"string"},"Country":{"type":"object","properties":{"Name":{"type":"string"},"Code":{"type":"string"},"Code2":{"type":"string"},"Code3":{"type":"string"}}},"Region":{"type":"object","properties":{"Name":{"type":"string"},"Code":{"type":"string"},"Code2":{"type":"string"},"Code3":{"type":"string"}}},"SubRegion":{"type":"object","properties":{"Name":{"type":"string"},"Code":{"type":"string"},"Code2":{"type":"string"},"Code3":{"type":"string"}}},"Locality":{"type":"string"},"PostalCode":{"type":"string"},"Street":{"type":"string"},"AddressNumber":{"type":"string"}},"additionalProperties":{},"description":"The address: Label, the whole of it in a line, and its parts (Country, Region, SubRegion, Locality, PostalCode, Street, AddressNumber)."},"Position":{"type":"array","items":{"type":"number"},"description":"[longitude, latitude] in WGS84 degrees."},"MapView":{"type":"array","items":{"type":"number"},"description":"[west, south, east, north]: the box to view it in."},"Distance":{"type":"number","description":"For a reverse lookup: meters from the point given."}},"additionalProperties":{}},"description":"The candidates; none when nothing matched."}},"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Coordinates for an address or place name, or the address at a latitude and longitude. Pass address, or latitude with longitude. Returns up to five candidates, each with its title, address, position and the box to view it in.","summary":"Geocode an address or place","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","minLength":1,"maxLength":200,"description":"An address or place, e.g. '123 Main St, Winter Garden, FL'. The place being researched, never the user's own location."},"latitude":{"type":"number","minimum":-90,"maximum":90,"description":"For a reverse lookup: latitude in WGS84 decimal degrees. The place being researched, never the user's own location."},"longitude":{"type":"number","minimum":-180,"maximum":180,"description":"For a reverse lookup: longitude in WGS84 decimal degrees. The place being researched, never the user's own location."}}}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["geocode"],"x-ploti-descriptions":{"cli":"Coordinates for an address or place name, or the address at a latitude and longitude. Pass address, or latitude with longitude. Returns up to five candidates, each with its title, address, position and the box to view it in.","sdk":"Coordinates for an address or place name, or the address at a latitude and longitude. Pass address, or latitude with longitude. Returns up to five candidates, each with its title, address, position and the box to view it in."}}},"/v1/feeds/datasets":{"get":{"operationId":"feeds_datasets_list","parameters":[{"name":"place","in":"query","required":false,"description":"A place id from GET /v1/places.","schema":{"type":"string","maxLength":160},"x-ploti-description-cli":"A place id from ploti places list.","x-ploti-description-sdk":"A place id from ploti.places.list()."},{"name":"topic","in":"query","required":false,"schema":{"type":"string","maxLength":80}},{"name":"subscriptionId","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"updatedSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many to return; 50 unless given.","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasets":{"type":"array","items":{"$ref":"#/components/schemas/DataFeed.Dataset"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["datasets","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Deliverable datasets in the workspace's coverage, by place, topic or subscription, or with updatedSince only those with a version sent to subscribers since a time.","summary":"List Data Feeds datasets","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","list"],"x-ploti-descriptions":{"cli":"Deliverable datasets in the workspace's coverage, by place, topic or subscription, or with updatedSince only those with a version sent to subscribers since a time.","sdk":"Deliverable datasets in the workspace's coverage, by place, topic or subscription, or with updatedSince only those with a version sent to subscribers since a time."}}},"/v1/feeds/datasets/{datasetId}":{"get":{"operationId":"feeds_datasets_get","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the dataset id Data Feeds and POST /v1/datasets/search give.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the dataset id Data Feeds and ploti datasets search give.","x-ploti-description-sdk":"The dataset, by the dataset id Data Feeds and ploti.datasets.search() give."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataFeed.Dataset"}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One deliverable dataset: its place, topic, source, key, geometry, current released version and when its source was last checked.","summary":"Get a Data Feeds dataset","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","get"],"x-ploti-descriptions":{"cli":"One deliverable dataset: its place, topic, source, key, geometry, current released version and when its source was last checked.","sdk":"One deliverable dataset: its place, topic, source, key, geometry, current released version and when its source was last checked."}}},"/v1/feeds/datasets/{datasetId}/schema":{"get":{"operationId":"feeds_datasets_schemas_get","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the dataset id Data Feeds and POST /v1/datasets/search give.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the dataset id Data Feeds and ploti datasets search give.","x-ploti-description-sdk":"The dataset, by the dataset id Data Feeds and ploti.datasets.search() give."},{"name":"version","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"schemaVersion":{"type":"string"},"firstVersion":{"type":"number","description":"The first released version built with this schema."},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"keyColumns":{"type":"array","items":{"type":"string"}},"changeFromPrevious":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["additive","breaking"],"description":"breaking when a column was removed or retyped or the key changed, which starts a new MAJOR schema version; additive otherwise."},"previousSchemaVersion":{"type":"string"},"added":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"removed":{"type":"array","items":{"type":"string"},"description":"The names of the columns removed."},"retyped":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"from":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]},"to":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"required":["name","from","to"]}},"keyColumnsChanged":{"type":"boolean"}},"required":["kind","previousSchemaVersion","added","removed","retyped","keyColumnsChanged"]},{"type":"null"}],"description":"What changed from the schema before, column by column; null for the first."}},"required":["datasetId","schemaVersion","firstVersion","columns","keyColumns","changeFromPrevious"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The columns of the current released version, or of `version`, and how the schema differs from the one before it.","summary":"Get a dataset's schema","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","schemas","get"],"x-ploti-descriptions":{"cli":"The columns of the current released version, or of `version`, and how the schema differs from the one before it.","sdk":"The columns of the current released version, or of `version`, and how the schema differs from the one before it."}}},"/v1/feeds/datasets/{datasetId}/schemas":{"get":{"operationId":"feeds_datasets_schemas_list","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the dataset id Data Feeds and POST /v1/datasets/search give.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the dataset id Data Feeds and ploti datasets search give.","x-ploti-description-sdk":"The dataset, by the dataset id Data Feeds and ploti.datasets.search() give."},{"name":"limit","in":"query","required":false,"description":"How many to return; 50 unless given.","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"schemaVersion":{"type":"string"},"firstVersion":{"type":"number","description":"The first released version built with this schema."},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"keyColumns":{"type":"array","items":{"type":"string"}},"changeFromPrevious":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["additive","breaking"],"description":"breaking when a column was removed or retyped or the key changed, which starts a new MAJOR schema version; additive otherwise."},"previousSchemaVersion":{"type":"string"},"added":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"removed":{"type":"array","items":{"type":"string"},"description":"The names of the columns removed."},"retyped":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"from":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]},"to":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"required":["name","from","to"]}},"keyColumnsChanged":{"type":"boolean"}},"required":["kind","previousSchemaVersion","added","removed","retyped","keyColumnsChanged"]},{"type":"null"}],"description":"What changed from the schema before, column by column; null for the first."}},"required":["datasetId","schemaVersion","firstVersion","columns","keyColumns","changeFromPrevious"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["schemas","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Every schema version the dataset has had, oldest first.","summary":"List a dataset's schema versions","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","schemas","list"],"x-ploti-descriptions":{"cli":"Every schema version the dataset has had, oldest first.","sdk":"Every schema version the dataset has had, oldest first."}}},"/v1/feeds/datasets/{datasetId}/versions":{"get":{"operationId":"feeds_datasets_versions_list","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the dataset id Data Feeds and POST /v1/datasets/search give.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the dataset id Data Feeds and ploti datasets search give.","x-ploti-description-sdk":"The dataset, by the dataset id Data Feeds and ploti.datasets.search() give."},{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"limit","in":"query","required":false,"description":"How many to return; 50 unless given.","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"number","description":"The number of the dataset's release the version was built from. Numbers increase but skip a release Data Feeds never built."},"previousVersion":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The version the changes apply to; null for a dataset's first version."},"schemaVersion":{"type":"string"},"releasedAt":{"type":"string","description":"When the release went live."},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"rowCount":{"type":"number"},"counts":{"anyOf":[{"type":"object","properties":{"added":{"type":"number"},"changed":{"type":"number"},"removed":{"type":"number"}},"required":["added","changed","removed"],"additionalProperties":false},{"type":"null"}],"description":"Rows added, changed and removed since the previous version; null when the version needs a resync."},"resyncRequired":{"type":"boolean"},"recordIdsChanged":{"type":"boolean"}},"required":["datasetId","version","previousVersion","schemaVersion","releasedAt","sourceUrl","fetchedAt","rowCount","counts","resyncRequired","recordIdsChanged"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["versions","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Built versions of a dataset. A version's number is the dataset's release it was built from, so numbers increase but skip; follow previousVersion.","summary":"List a dataset's versions","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","versions","list"],"x-ploti-descriptions":{"cli":"Built versions of a dataset. A version's number is the dataset's release it was built from, so numbers increase but skip; follow previousVersion.","sdk":"Built versions of a dataset. A version's number is the dataset's release it was built from, so numbers increase but skip; follow previousVersion."}}},"/v1/feeds/datasets/{datasetId}/versions/{version}":{"get":{"operationId":"feeds_datasets_versions_get","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the dataset id Data Feeds and POST /v1/datasets/search give.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the dataset id Data Feeds and ploti datasets search give.","x-ploti-description-sdk":"The dataset, by the dataset id Data Feeds and ploti.datasets.search() give."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"number","description":"The number of the dataset's release the version was built from. Numbers increase but skip a release Data Feeds never built."},"previousVersion":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The version the changes apply to; null for a dataset's first version."},"schemaVersion":{"type":"string"},"releasedAt":{"type":"string","description":"When the release went live."},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"rowCount":{"type":"number"},"counts":{"anyOf":[{"type":"object","properties":{"added":{"type":"number"},"changed":{"type":"number"},"removed":{"type":"number"}},"required":["added","changed","removed"],"additionalProperties":false},{"type":"null"}],"description":"Rows added, changed and removed since the previous version; null when the version needs a resync."},"resyncRequired":{"type":"boolean"},"recordIdsChanged":{"type":"boolean"},"files":{"type":"object","properties":{"snapshot":{"type":"array","items":{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}},"changes":{"type":"array","items":{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}},"idMap":{"type":"array","items":{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}},"schema":{"anyOf":[{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false},{"type":"null"}]},"manifest":{"anyOf":[{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["file","filename","contentType","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}},"format":{"type":"string","enum":["geoparquet"]},"expiresAt":{"type":"string"}},"required":["snapshot","changes","idMap","schema","manifest","attachments","format","expiresAt"],"additionalProperties":false}},"required":["datasetId","version","previousVersion","schemaVersion","releasedAt","sourceUrl","fetchedAt","rowCount","counts","resyncRequired","recordIdsChanged","files"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"A released version with signed links to its snapshot and changes parts, schema and manifest, and to its attachments: the files Ploti holds for the dataset, each named by file as GET /v1/datasets/{datasetId}/provenance's sources and GET /v1/datasets/{datasetId}/files/{file} name them (\"source:<id>\" for a source's archived copy, \"original\" for the document or map file Ploti downloaded), with filename, contentType, sizeBytes and sha256. For a dataset one of the workspace's subscriptions delivers. Links expire at files.expiresAt; ask again for fresh ones, or sign some again with POST /v1/feeds/datasets/{datasetId}/versions/{version}/links.","summary":"Get a version and its files","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","versions","get"],"x-ploti-descriptions":{"cli":"A released version with signed links to its snapshot and changes parts, schema and manifest, and to its attachments: the files Ploti holds for the dataset, each named by file as ploti datasets provenance's sources and ploti datasets files get name them (\"source:<id>\" for a source's archived copy, \"original\" for the document or map file Ploti downloaded), with filename, contentType, sizeBytes and sha256. For a dataset one of the workspace's subscriptions delivers. Links expire at files.expiresAt; ask again for fresh ones, or sign some again with ploti feeds datasets versions links.","sdk":"A released version with signed links to its snapshot and changes parts, schema and manifest, and to its attachments: the files Ploti holds for the dataset, each named by file as ploti.datasets.provenance()'s sources and ploti.datasets.files.get() name them (\"source:<id>\" for a source's archived copy, \"original\" for the document or map file Ploti downloaded), with filename, contentType, sizeBytes and sha256. For a dataset one of the workspace's subscriptions delivers. Links expire at files.expiresAt; ask again for fresh ones, or sign some again with ploti.feeds.datasets.versions.links()."}}},"/v1/feeds/datasets/{datasetId}/versions/{version}/links":{"post":{"operationId":"feeds_datasets_versions_links","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The dataset, by the dataset id Data Feeds and POST /v1/datasets/search give.","schema":{"type":"string","minLength":1,"maxLength":255},"x-ploti-description-cli":"The dataset, by the dataset id Data Feeds and ploti datasets search give.","x-ploti-description-sdk":"The dataset, by the dataset id Data Feeds and ploti.datasets.search() give."},{"name":"version","in":"path","required":true,"description":"The released version, as GET /v1/feeds/datasets/{datasetId}/versions/{version} takes it.","schema":{"type":"integer","exclusiveMinimum":0},"x-ploti-description-cli":"The released version, as ploti feeds datasets versions get takes it.","x-ploti-description-sdk":"The released version, as ploti.feeds.datasets.versions.get() takes it."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"integer"},"expiresAt":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["file","filename","contentType","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}},"missing":{"type":"array","items":{"type":"string"}}},"required":["datasetId","version","expiresAt","files","missing"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Fresh signed links to some of a released version's files, without reading the whole version again: an attachment by its file (\"source:<id>\", \"original\"), any other file by its path in the version's manifest.json (\"snapshot/part-0000.parquet\", \"schema.json\"). For a dataset one of the workspace's subscriptions delivers. A name the version has no file for, or none left past retention, comes back in missing. Links expire at expiresAt.","summary":"Sign links to a version's files","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":200,"description":"The files, by the names the version gives them: an attachment's file (\"source:<id>\", \"original\") or a path in its manifest.json."}},"required":["files"]}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","datasets","versions","links"],"x-ploti-descriptions":{"cli":"Fresh signed links to some of a released version's files, without reading the whole version again: an attachment by its file (\"source:<id>\", \"original\"), any other file by its path in the version's manifest.json (\"snapshot/part-0000.parquet\", \"schema.json\"). For a dataset one of the workspace's subscriptions delivers. A name the version has no file for, or none left past retention, comes back in missing. Links expire at expiresAt.","sdk":"Fresh signed links to some of a released version's files, without reading the whole version again: an attachment by its file (\"source:<id>\", \"original\"), any other file by its path in the version's manifest.json (\"snapshot/part-0000.parquet\", \"schema.json\"). For a dataset one of the workspace's subscriptions delivers. A name the version has no file for, or none left past retention, comes back in missing. Links expire at expiresAt."}}},"/v1/feeds/subscriptions":{"post":{"operationId":"feeds_subscriptions_create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique value, such as a UUID. A retry with the same key within a day returns the first answer instead of creating again; the same key with a different body is refused as idempotency_conflict.","schema":{"type":"string","maxLength":255}}],"security":[{"bearer":[]}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"places":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"datasetIds":{"type":"array","items":{"type":"string"}},"excludedDatasetIds":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","description":"Send it back as If-Match (or revision) to update."},"datasetCount":{"type":"integer"},"lastEventCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","places","topics","datasetIds","excludedDatasetIds","revision","datasetCount","lastEventCursor","createdAt"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Receive every deliverable dataset in the named places, optionally only some topics, less any datasets excluded, plus datasets named directly. Datasets that join later each send feed.dataset.added. The subscription belongs to the workspace. Takes a workspace admin.","summary":"Create a Data Feeds subscription","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"places":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Place ids from GET /v1/places (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later.","x-ploti-description-cli":"Place ids from ploti places list (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later.","x-ploti-description-sdk":"Place ids from ploti.places.list() (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later."},"topics":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Only these topics within places, by the ids GET /v1/topics gives. Every topic when left out.","x-ploti-description-cli":"Only these topics within places, by the ids ploti topics list gives. Every topic when left out.","x-ploti-description-sdk":"Only these topics within places, by the ids ploti.topics.list() gives. Every topic when left out."},"datasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Datasets to include on their own, from any place in the coverage, by dataset id."},"excludedDatasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Datasets the places and topics match to leave out, by dataset id. Datasets that join the places and topics later are still received; these never are."}}}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","create"],"x-ploti-descriptions":{"cli":"Receive every deliverable dataset in the named places, optionally only some topics, less any datasets excluded, plus datasets named directly. Datasets that join later each send feed.dataset.added. The subscription belongs to the workspace. Takes a workspace admin.","sdk":"Receive every deliverable dataset in the named places, optionally only some topics, less any datasets excluded, plus datasets named directly. Datasets that join later each send feed.dataset.added. The subscription belongs to the workspace. Takes a workspace admin."}},"get":{"operationId":"feeds_subscriptions_list","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"subscriptions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"places":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"datasetIds":{"type":"array","items":{"type":"string"}},"excludedDatasetIds":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","description":"Send it back as If-Match (or revision) to update."},"datasetCount":{"type":"integer"},"lastEventCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","places","topics","datasetIds","excludedDatasetIds","revision","datasetCount","lastEventCursor","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["subscriptions","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The workspace's subscriptions, oldest first.","summary":"List Data Feeds subscriptions","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","list"],"x-ploti-descriptions":{"cli":"The workspace's subscriptions, oldest first.","sdk":"The workspace's subscriptions, oldest first."}}},"/v1/feeds/subscriptions/preview":{"post":{"operationId":"feeds_subscriptions_preview","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"matchedBy":{"type":"object","properties":{"places":{"type":"integer"},"datasets":{"type":"integer"}},"required":["places","datasets"],"additionalProperties":false},"byTopic":{"type":"array","items":{"type":"object","properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"count":{"type":"integer"}},"required":["topic","count"],"additionalProperties":false}},"byPlace":{"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"count":{"type":"integer"}},"required":["id","name","kind","count"],"additionalProperties":false}},"matching":{"type":"integer"},"datasets":{"type":"array","items":{"$ref":"#/components/schemas/FeedSubscription.PreviewDataset"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["total","matchedBy","byTopic","byPlace","matching","datasets","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"What a subscription with these places, topics and datasets would deliver now, before it is created or changed: the exact count (a dataset over several of the places counts once), counts by topic and by the place each dataset is filed under, and a page of the datasets. q, place, topic and matchedBy narrow the page and `matching`, never the counts. Refused for the same reasons POST /v1/feeds/subscriptions would refuse.","summary":"Preview a Data Feeds subscription","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"places":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Place ids from GET /v1/places (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later.","x-ploti-description-cli":"Place ids from ploti places list (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later.","x-ploti-description-sdk":"Place ids from ploti.places.list() (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later."},"topics":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Only these topics within places, by the ids GET /v1/topics gives. Every topic when left out.","x-ploti-description-cli":"Only these topics within places, by the ids ploti topics list gives. Every topic when left out.","x-ploti-description-sdk":"Only these topics within places, by the ids ploti.topics.list() gives. Every topic when left out."},"datasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Datasets to include on their own, from any place in the coverage, by dataset id."},"excludedDatasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Datasets the places and topics match to leave out, by dataset id. Datasets that join the places and topics later are still received; these never are."},"q":{"type":"string","maxLength":200,"description":"Only datasets whose title contains this, in any case."},"place":{"type":"string","maxLength":160,"description":"Only datasets filed under this place id (their place.id)."},"topic":{"type":"string","maxLength":80,"description":"Only datasets with this topic, or `none` for those with no topic."},"matchedBy":{"type":"string","enum":["places","datasets"],"description":"Only datasets the places and topics match, or only those named in datasetIds."},"sort":{"type":"string","enum":["place","title","updated"],"description":"place (the default) then title; title; or newest released version first."},"limit":{"type":"integer","minimum":1,"maximum":200},"cursor":{"type":"string","maxLength":64,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page."}}}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","preview"],"x-ploti-descriptions":{"cli":"What a subscription with these places, topics and datasets would deliver now, before it is created or changed: the exact count (a dataset over several of the places counts once), counts by topic and by the place each dataset is filed under, and a page of the datasets. q, place, topic and matchedBy narrow the page and `matching`, never the counts. Refused for the same reasons ploti feeds subscriptions create would refuse.","sdk":"What a subscription with these places, topics and datasets would deliver now, before it is created or changed: the exact count (a dataset over several of the places counts once), counts by topic and by the place each dataset is filed under, and a page of the datasets. q, place, topic and matchedBy narrow the page and `matching`, never the counts. Refused for the same reasons ploti.feeds.subscriptions.create() would refuse."}}},"/v1/feeds/subscriptions/{subscriptionId}":{"get":{"operationId":"feeds_subscriptions_get","parameters":[{"name":"subscriptionId","in":"path","required":true,"description":"The subscription, by the id POST /v1/feeds/subscriptions gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The subscription, by the id ploti feeds subscriptions create gave.","x-ploti-description-sdk":"The subscription, by the id ploti.feeds.subscriptions.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"places":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"datasetIds":{"type":"array","items":{"type":"string"}},"excludedDatasetIds":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","description":"Send it back as If-Match (or revision) to update."},"datasetCount":{"type":"integer"},"lastEventCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","places","topics","datasetIds","excludedDatasetIds","revision","datasetCount","lastEventCursor","createdAt"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One subscription: what it names, how many datasets it delivers, its revision and its newest event.","summary":"Get a Data Feeds subscription","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","get"],"x-ploti-descriptions":{"cli":"One subscription: what it names, how many datasets it delivers, its revision and its newest event.","sdk":"One subscription: what it names, how many datasets it delivers, its revision and its newest event."}},"patch":{"operationId":"feeds_subscriptions_update","parameters":[{"name":"subscriptionId","in":"path","required":true,"description":"The subscription, by the id POST /v1/feeds/subscriptions gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The subscription, by the id ploti feeds subscriptions create gave.","x-ploti-description-sdk":"The subscription, by the id ploti.feeds.subscriptions.create() gave."},{"name":"If-Match","in":"header","required":false,"description":"The ETag the resource was read with. A stale one is refused as precondition_failed.","schema":{"type":"string"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"places":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"datasetIds":{"type":"array","items":{"type":"string"}},"excludedDatasetIds":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","description":"Send it back as If-Match (or revision) to update."},"datasetCount":{"type":"integer"},"lastEventCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","places","topics","datasetIds","excludedDatasetIds","revision","datasetCount","lastEventCursor","createdAt"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Replace the fields sent and keep the rest. Send the revision read, as `revision` or, over REST, the If-Match header; a stale one is refused as precondition_failed, so two edits never overwrite each other. Datasets that join send feed.dataset.added, those that leave feed.dataset.removed. Takes a workspace admin.","summary":"Update a Data Feeds subscription","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"description":"The revision the subscription was read at; over REST it may come as the If-Match header instead."},"name":{"type":"string","minLength":1,"maxLength":120},"places":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Place ids from GET /v1/places (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later.","x-ploti-description-cli":"Place ids from ploti places list (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later.","x-ploti-description-sdk":"Place ids from ploti.places.list() (fl-county-orange, fl, fl-counties, us). Every deliverable dataset in each place; a state's counties place (e.g. fl-counties) is every coverage county in that state, including ones added later."},"topics":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Only these topics within places, by the ids GET /v1/topics gives. Every topic when left out.","x-ploti-description-cli":"Only these topics within places, by the ids ploti topics list gives. Every topic when left out.","x-ploti-description-sdk":"Only these topics within places, by the ids ploti.topics.list() gives. Every topic when left out."},"datasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Datasets to include on their own, from any place in the coverage, by dataset id."},"excludedDatasetIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":500,"description":"Datasets the places and topics match to leave out, by dataset id. Datasets that join the places and topics later are still received; these never are."}}}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","update"],"x-ploti-descriptions":{"cli":"Replace the fields sent and keep the rest. Send the revision read, as `revision` or, over REST, the If-Match header; a stale one is refused as precondition_failed, so two edits never overwrite each other. Datasets that join send feed.dataset.added, those that leave feed.dataset.removed. Takes a workspace admin.","sdk":"Replace the fields sent and keep the rest. Send the revision read, as `revision` or, over REST, the If-Match header; a stale one is refused as precondition_failed, so two edits never overwrite each other. Datasets that join send feed.dataset.added, those that leave feed.dataset.removed. Takes a workspace admin."}},"delete":{"operationId":"feeds_subscriptions_delete","parameters":[{"name":"subscriptionId","in":"path","required":true,"description":"The subscription, by the id POST /v1/feeds/subscriptions gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The subscription, by the id ploti feeds subscriptions create gave.","x-ploti-description-sdk":"The subscription, by the id ploti.feeds.subscriptions.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Stop the subscription's events, its webhooks and its file access. Files already downloaded are the workspace's to keep. Takes a workspace admin.","summary":"Delete a Data Feeds subscription","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","delete"],"x-ploti-descriptions":{"cli":"Stop the subscription's events, its webhooks and its file access. Files already downloaded are the workspace's to keep. Takes a workspace admin.","sdk":"Stop the subscription's events, its webhooks and its file access. Files already downloaded are the workspace's to keep. Takes a workspace admin."}}},"/v1/feeds/subscriptions/{subscriptionId}/manifest":{"get":{"operationId":"feeds_subscriptions_manifest","parameters":[{"name":"subscriptionId","in":"path","required":true,"description":"The subscription, by the id POST /v1/feeds/subscriptions gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The subscription, by the id ploti feeds subscriptions create gave.","x-ploti-description-sdk":"The subscription, by the id ploti.feeds.subscriptions.create() gave."},{"name":"asOf","in":"query","required":false,"description":"An eventCursor from an earlier manifest, to pin its versions.","schema":{"type":"string","maxLength":32}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"subscriptionId":{"type":"string"},"generatedAt":{"type":"string"},"eventCursor":{"type":"string"},"expiresAt":{"type":"string"},"datasets":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"title":{"type":"string"},"place":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"type":"number"},"schemaVersion":{"type":"string"},"keyed":{"type":"boolean"},"lastCheckedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"snapshot":{"type":"array","items":{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}},"schema":{"anyOf":[{"type":"object","properties":{"rows":{"type":"number"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["rows","sizeBytes","sha256","downloadUrl"],"additionalProperties":false},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"downloadUrl":{"type":"string"}},"required":["file","filename","contentType","sizeBytes","sha256","downloadUrl"],"additionalProperties":false}}},"required":["datasetId","title","place","version","schemaVersion","keyed","lastCheckedAt","snapshot","schema","attachments"],"additionalProperties":false}},"unavailable":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"integer"},"reason":{"type":"string"}},"required":["datasetId","reason"],"additionalProperties":false},"description":"Datasets the subscription delivers that this manifest has no files for, with why. `rebuilding` (with its version): the files are being rebuilt; ask again in a few minutes, and its events after eventCursor still apply. With no version, the dataset has none released yet: `building` (its first version is on the way), `held` or `failed` (its first version waits on Ploti's staff), or `awaiting_release` (nothing to build until its source is released again). Each sends feed.dataset.resync_required with its first version."}},"required":["subscriptionId","generatedAt","eventCursor","expiresAt","datasets","unavailable"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Every dataset the subscription delivers, the version of each with signed links to its snapshot, schema and attachments (the files Ploti holds for the dataset, each named by file as GET /v1/datasets/{datasetId}/provenance's sources name them: \"source:<id>\" or \"original\"), and eventCursor, the last event already in those snapshots: load them, then read events after eventCursor, skipping any for a version at or below the one loaded. Pass asOf with an earlier eventCursor for fresh links to the same versions.","summary":"Get a subscription's manifest","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","manifest"],"x-ploti-descriptions":{"cli":"Every dataset the subscription delivers, the version of each with signed links to its snapshot, schema and attachments (the files Ploti holds for the dataset, each named by file as ploti datasets provenance's sources name them: \"source:<id>\" or \"original\"), and eventCursor, the last event already in those snapshots: load them, then read events after eventCursor, skipping any for a version at or below the one loaded. Pass asOf with an earlier eventCursor for fresh links to the same versions.","sdk":"Every dataset the subscription delivers, the version of each with signed links to its snapshot, schema and attachments (the files Ploti holds for the dataset, each named by file as ploti.datasets.provenance()'s sources name them: \"source:<id>\" or \"original\"), and eventCursor, the last event already in those snapshots: load them, then read events after eventCursor, skipping any for a version at or below the one loaded. Pass asOf with an earlier eventCursor for fresh links to the same versions."}}},"/v1/feeds/subscriptions/{subscriptionId}/events":{"get":{"operationId":"feeds_subscriptions_events","parameters":[{"name":"subscriptionId","in":"path","required":true,"description":"The subscription, by the id POST /v1/feeds/subscriptions gave.","schema":{"type":"string","minLength":1,"maxLength":32},"x-ploti-description-cli":"The subscription, by the id ploti feeds subscriptions create gave.","x-ploti-description-sdk":"The subscription, by the id ploti.feeds.subscriptions.create() gave."},{"name":"cursor","in":"query","required":false,"description":"The previous page's nextCursor, or a manifest's eventCursor. From the start when left out.","schema":{"type":"string","maxLength":32}},{"name":"types","in":"query","required":false,"description":"Comma-separated event types to keep; nextCursor still moves past the ones skipped.","schema":{"type":"string","maxLength":400}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.added"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The version to load; null when the dataset has no released version yet."},"schemaVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"links":{"type":"object","properties":{"version":{"type":"string","description":"The address that returns the version with its files."},"schema":{"type":"string","description":"The address that returns the version's schema."}},"required":["version","schema"]}},"required":["datasetId","version","schemaVersion"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"A dataset joins the subscription."},{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.updated"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"integer"},"previousVersion":{"anyOf":[{"type":"integer"},{"type":"null"}]},"schemaVersion":{"type":"string"},"counts":{"anyOf":[{"type":"object","properties":{"added":{"type":"integer"},"changed":{"type":"integer"},"removed":{"type":"integer"}},"required":["added","changed","removed"]},{"type":"null"}]},"links":{"type":"object","properties":{"version":{"type":"string","description":"The address that returns the version with its files."},"schema":{"type":"string","description":"The address that returns the version's schema."}},"required":["version","schema"]}},"required":["datasetId","version","previousVersion","schemaVersion","counts","links"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"A dataset has a new version to apply as changes."},{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.schema_changed"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"integer"},"schemaVersion":{"type":"string"},"schemaChange":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["additive","breaking"],"description":"breaking when a column was removed or retyped or the key changed, which starts a new MAJOR schema version; additive otherwise."},"previousSchemaVersion":{"type":"string"},"added":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"removed":{"type":"array","items":{"type":"string"},"description":"The names of the columns removed."},"retyped":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"from":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]},"to":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"items":{"type":"string"},"precision":{"type":"object","properties":{"precision":{"type":"integer"},"scale":{"type":"integer"}},"required":["precision","scale"]},"geometry":{"type":"object","properties":{"type":{"type":"string"},"srid":{"type":"integer"}},"required":["type","srid"]}},"required":["name","type"]}},"required":["name","from","to"]}},"keyColumnsChanged":{"type":"boolean"}},"required":["kind","previousSchemaVersion","added","removed","retyped","keyColumnsChanged"]},{"type":"null"}]}},"required":["datasetId","version","schemaVersion","schemaChange"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"A new version changes the schema. Sent before that version's event."},{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.resync_required"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"type":"integer"},"schemaVersion":{"type":"string"},"reason":{"type":"string","enum":["record_ids_changed","first_version","previous_unavailable","key_columns_changed","schema_changed"]},"links":{"type":"object","properties":{"version":{"type":"string","description":"The address that returns the version with its files."},"schema":{"type":"string","description":"The address that returns the version's schema."}},"required":["version","schema"]}},"required":["datasetId","version","schemaVersion","reason","links"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"A new version to load from its snapshot. Sent in place of updated."},{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.removed"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"reason":{"type":"string","enum":["no_longer_deliverable","subscription_changed","plan_changed","left_coverage"]}},"required":["datasetId","reason"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"A dataset leaves the subscription."},{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.stale"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"reason":{"type":"string","enum":["check_overdue"]},"lastCheckedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["datasetId","reason","lastCheckedAt"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"The source is a day past its due check. Sent once per missed check."},{"type":"object","properties":{"id":{"type":"string","description":"evt_ and the event's number in the subscription's log."},"type":{"type":"string","enum":["feed.dataset.delayed"]},"timestamp":{"type":"string"},"subscriptionId":{"type":"string"},"data":{"type":"object","properties":{"datasetId":{"type":"string"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The version the subscription still holds, which stays current meanwhile; null when the held version is the dataset's first."},"reason":{"type":"string","enum":["schema_review","data_check","processing"]},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the version was held."}},"required":["datasetId","version","reason","since"]}},"required":["id","type","timestamp","subscriptionId","data"],"description":"The dataset's next version is held for review."}]}},"nextCursor":{"type":"string"}},"required":["events","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Events in order. A subscription's events are numbered in one gap-free sequence, so reading after the last one applied never misses one; order holds within a dataset. Events are kept 90 days: an older cursor is refused as expired, and the consumer reloads from the manifest. nextCursor is always set; store it and pass it as cursor next time.","summary":"List a subscription's events","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["feeds","subscriptions","events"],"x-ploti-descriptions":{"cli":"Events in order. A subscription's events are numbered in one gap-free sequence, so reading after the last one applied never misses one; order holds within a dataset. Events are kept 90 days: an older cursor is refused as expired, and the consumer reloads from the manifest. nextCursor is always set; store it and pass it as cursor next time.","sdk":"Events in order. A subscription's events are numbered in one gap-free sequence, so reading after the last one applied never misses one; order holds within a dataset. Events are kept 90 days: an older cursor is refused as expired, and the consumer reloads from the manifest. nextCursor is always set; store it and pass it as cursor next time."}}},"/v1/research-requests":{"post":{"operationId":"requests_create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique value, such as a UUID. A retry with the same key within a day returns the first answer instead of creating again; the same key with a different body is refused as idempotency_conflict.","schema":{"type":"string","maxLength":255}}],"security":[{"bearer":[]}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string","description":"The research request's id, which the other research request tools take."},"title":{"type":"string"},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Whether the request waits on the user: answers to its questions, or a choice on its data check's report."},"links":{"type":"object","properties":{"view":{"type":"string","description":"The request's page in Ploti."}},"required":["view"],"additionalProperties":false}},"required":["id","title","headline","needsYou","links"],"additionalProperties":false},"checkStarted":{"type":"boolean","description":"Whether the data check began; when false, the user can start it from the request in Ploti."}},"required":["request","checkStarted"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"File a research request for the user: Ploti answers their question end to end, first getting any data it does not have yet. Ploti checks which data the question needs (minutes), searching the web for sources, and reports what it already has and what is missing. When the check reports, Ploti files the missing pieces as data requests itself, out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. Each asks for a whole source dataset that other workspaces covering the place can use too, and is written to leave out the brief's own parcels, owners and addresses, which stay in the research request. Its agents get the data, and when it arrives Ploti runs the research and emails the user the answer. Returns the request with its id, status and Ploti link, and whether the data check started; the answer itself comes later, by email and on GET /v1/research-requests/{requestId}.","summary":"Request research","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"The name the user sees for the question in Ploti's list of research requests, e.g. 'Vacant industrial land near the Tampa port'."},"brief":{"type":"string","minLength":1,"maxLength":50000,"description":"The question, the place it is about, and what a good answer looks like. It is about property and public records: leave out health, financial account, payment card and government id details, and private people's contact details."},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"A page the user already knows bears on the question, such as a county GIS portal or an ordinance."},"details":{"type":"string","maxLength":4000,"description":"What on that page matters to the question, when the link alone would not say."}},"required":["url"]},"maxItems":20,"description":"Pages the user already knows are relevant, if any."}},"required":["title","brief"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","create"],"x-ploti-descriptions":{"cli":"File a research request for the user: Ploti answers their question end to end, first getting any data it does not have yet. Ploti checks which data the question needs (minutes), searching the web for sources, and reports what it already has and what is missing. When the check reports, Ploti files the missing pieces as data requests itself, out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. Each asks for a whole source dataset that other workspaces covering the place can use too, and is written to leave out the brief's own parcels, owners and addresses, which stay in the research request. Its agents get the data, and when it arrives Ploti runs the research and emails the user the answer. Returns the request with its id, status and Ploti link, and whether the data check started; the answer itself comes later, by email and on ploti requests get.","sdk":"File a research request for the user: Ploti answers their question end to end, first getting any data it does not have yet. Ploti checks which data the question needs (minutes), searching the web for sources, and reports what it already has and what is missing. When the check reports, Ploti files the missing pieces as data requests itself, out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. Each asks for a whole source dataset that other workspaces covering the place can use too, and is written to leave out the brief's own parcels, owners and addresses, which stay in the research request. Its agents get the data, and when it arrives Ploti runs the research and emails the user the answer. Returns the request with its id, status and Ploti link, and whether the data check started; the answer itself comes later, by email and on ploti.requests.get()."}},"get":{"operationId":"requests_list","parameters":[{"name":"limit","in":"query","required":false,"description":"How many requests this page returns, newest first; 20 when left out.","schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","description":"How many research requests the member can see in all, across every page."},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The research request's id, which the other research request tools take."},"title":{"type":"string"},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Whether the request waits on the user: answers to its questions, or a choice on its data check's report."},"links":{"type":"object","properties":{"view":{"type":"string","description":"The request's page in Ploti."}},"required":["view"],"additionalProperties":false}},"required":["id","title","headline","needsYou","links"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."}},"required":["total","requests","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The research requests the member can see, newest first: each one's id, title, headline (where it is, as a key and a sentence), whether it needs the user, and its Ploti link. Pages by cursor; GET /v1/research-requests/{requestId} has the detail.","summary":"List research requests","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","list"],"x-ploti-descriptions":{"cli":"The research requests the member can see, newest first: each one's id, title, headline (where it is, as a key and a sentence), whether it needs the user, and its Ploti link. Pages by cursor; ploti requests get has the detail.","sdk":"The research requests the member can see, newest first: each one's id, title, headline (where it is, as a key and a sentence), whether it needs the user, and its Ploti link. Pages by cursor; ploti.requests.get() has the detail."}}},"/v1/research-requests/{requestId}":{"get":{"operationId":"requests_get","parameters":[{"name":"requestId","in":"path","required":true,"description":"The research request, by the id POST /v1/research-requests gave.","schema":{"type":"string","minLength":1,"maxLength":64},"x-ploti-description-cli":"The research request, by the id ploti requests create gave.","x-ploti-description-sdk":"The research request, by the id ploti.requests.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string","description":"The research request's id, which the other research request tools take."},"title":{"type":"string"},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Whether the request waits on the user: answers to its questions, or a choice on its data check's report."},"links":{"type":"object","properties":{"view":{"type":"string","description":"The request's page in Ploti."}},"required":["view"],"additionalProperties":false}},"required":["id","title","headline","needsYou","links"],"additionalProperties":false},"status":{"$ref":"#/components/schemas/RequestStatus.View"},"checkRunning":{"type":"boolean","description":"Whether the data check is working on the request right now."},"questionsTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The heading the data check gave its questions; null when there are none."},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"prompt":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},"allowMultiple":{"type":"boolean"}},"required":["id","prompt","options","allowMultiple"],"additionalProperties":false},"description":"The questions the data check is waiting on the user to answer while needsYou is true, each with its id and options."},"report":{"anyOf":[{"type":"object","properties":{"summary":{"type":"string","description":"The data check's findings in prose."},"coveragePercent":{"type":"number","description":"How much of the question, from 0 to 100, the data Ploti already has covers."},"available":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"datasetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The dataset's id for the dataset tools; null when it has none."},"reason":{"type":"string","description":"How the dataset bears on the question."}},"required":["name","datasetId","reason"],"additionalProperties":false},"description":"Data already in Ploti that the question can use."},"gaps":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string","description":"What is missing."},"filed":{"type":"boolean","description":"Whether a data request has been filed for it."},"declined":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it was not filed, such as a place outside the workspace's coverage; null when it was not declined."}},"required":["title","description","filed","declined"],"additionalProperties":false},"description":"Data the question needs that Ploti does not have yet."}},"required":["summary","coveragePercent","available","gaps"],"additionalProperties":false},{"type":"null"}],"description":"What the data check found; null until it reports."},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The answer, in Markdown; null until the request is answered."},"answeredBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The assistant that answered it; null when Ploti's own research run did."},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When it was answered, as an ISO 8601 time; null until then."}},"required":["request","status","checkRunning","questionsTitle","questions","report","answer","answeredBy","completedAt"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"A research request's progress: its status (headline, what it needs from the user, the data requests it waits on as parts), whether its data check is still running or waits on the user's answers to its questions (needsYou), its report (what Ploti already has, with each dataset's id, what is missing, how much of the question the data covers), the data requests filed for the missing pieces and how far each has got (parts), and once it is answered, the answer, who gave it and when.","summary":"Get a research request","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","get"],"x-ploti-descriptions":{"cli":"A research request's progress: its status (headline, what it needs from the user, the data requests it waits on as parts), whether its data check is still running or waits on the user's answers to its questions (needsYou), its report (what Ploti already has, with each dataset's id, what is missing, how much of the question the data covers), the data requests filed for the missing pieces and how far each has got (parts), and once it is answered, the answer, who gave it and when.","sdk":"A research request's progress: its status (headline, what it needs from the user, the data requests it waits on as parts), whether its data check is still running or waits on the user's answers to its questions (needsYou), its report (what Ploti already has, with each dataset's id, what is missing, how much of the question the data covers), the data requests filed for the missing pieces and how far each has got (parts), and once it is answered, the answer, who gave it and when."}}},"/v1/research-requests/{requestId}/file-gaps":{"post":{"operationId":"requests_gaps_file","parameters":[{"name":"requestId","in":"path","required":true,"description":"The research request, by the id POST /v1/research-requests gave.","schema":{"type":"string","minLength":1,"maxLength":64},"x-ploti-description-cli":"The research request, by the id ploti requests create gave.","x-ploti-description-sdk":"The research request, by the id ploti.requests.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string","description":"The research request's id, which the other research request tools take."},"title":{"type":"string"},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Whether the request waits on the user: answers to its questions, or a choice on its data check's report."},"links":{"type":"object","properties":{"view":{"type":"string","description":"The request's page in Ploti."}},"required":["view"],"additionalProperties":false}},"required":["id","title","headline","needsYou","links"],"additionalProperties":false},"gaps":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"The missing piece, as the report names it."},"result":{"type":"string","enum":["filed","waiting_for_plan","over_limit","outside_coverage","no_room","failed"],"description":"filed; waiting_for_plan, accepted and filed once the workspace's plan starts; over_limit, past the request's limit until continue=true; outside_coverage; no_room, the plan has no room for it now, as detail says; or failed."},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"More on the result, such as the places outside coverage or which counties a split gap filed; null when there is nothing to add."}},"required":["title","result","detail"],"additionalProperties":false}},"links":{"type":"object","properties":{"coverage":{"type":"string"}},"required":["coverage"],"additionalProperties":false}},"required":["request","gaps","links"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"File the missing data Ploti could not file itself when the research request's data check reported, such as a place that was outside the workspace's coverage or data past the request's limit. They are filed out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. A request needing more than 20 datasets files the first 20 and stops there; continue=true files the rest. Filing again is safe: a piece already filed is not filed twice. Returns the request and what became of each missing piece.","summary":"File a research request's missing data","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"continue":{"type":"boolean","description":"Also file the gaps past the request's limit; left out, filing stops at the limit."}}}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","gaps","file"],"x-ploti-descriptions":{"cli":"File the missing data Ploti could not file itself when the research request's data check reported, such as a place that was outside the workspace's coverage or data past the request's limit. They are filed out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. A request needing more than 20 datasets files the first 20 and stops there; continue=true files the rest. Filing again is safe: a piece already filed is not filed twice. Returns the request and what became of each missing piece.","sdk":"File the missing data Ploti could not file itself when the research request's data check reported, such as a place that was outside the workspace's coverage or data past the request's limit. They are filed out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. A request needing more than 20 datasets files the first 20 and stops there; continue=true files the rest. Filing again is safe: a piece already filed is not filed twice. Returns the request and what became of each missing piece."}}},"/v1/research-requests/{requestId}/answer":{"post":{"operationId":"requests_answer","parameters":[{"name":"requestId","in":"path","required":true,"description":"The research request, by the id POST /v1/research-requests gave.","schema":{"type":"string","minLength":1,"maxLength":64},"x-ploti-description-cli":"The research request, by the id ploti requests create gave.","x-ploti-description-sdk":"The research request, by the id ploti.requests.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string","description":"The research request's id, which the other research request tools take."},"title":{"type":"string"},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Whether the request waits on the user: answers to its questions, or a choice on its data check's report."},"links":{"type":"object","properties":{"view":{"type":"string","description":"The request's page in Ploti."}},"required":["view"],"additionalProperties":false}},"required":["id","title","headline","needsYou","links"],"additionalProperties":false}},"required":["request"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Record an assistant's own answer to a research request. This closes the request: Ploti shows the answer on the request, says which assistant gave it, and does not run its own research on it. Data requests already filed for it still deliver their datasets. With a map id, the snapshots, tables and files saved on that map show on the request beside the answer. The request's owner is told in their Ploti inbox, by email when another member's assistant answered, and on their webhooks, which receive the answer. Refused while the request's data check is still running or Ploti's own research run is answering it already. Returns the request, now complete, with its Ploti link.","summary":"Record a research request's answer","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string","minLength":1,"maxLength":50000,"description":"Your answer to the question, written in Markdown for the user to read on the request in Ploti, with the figures and datasets it rests on."},"mapId":{"type":"string","description":"The map you ran the analysis on, by the id POST /v1/maps returned; its snapshots, filters and files then show on the request beside the answer. Left out, the answer is recorded on its own.","x-ploti-description-cli":"The map you ran the analysis on, by the id ploti maps create returned; its snapshots, filters and files then show on the request beside the answer. Left out, the answer is recorded on its own.","x-ploti-description-sdk":"The map you ran the analysis on, by the id ploti.maps.create() returned; its snapshots, filters and files then show on the request beside the answer. Left out, the answer is recorded on its own."}},"required":["answer"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","answer"],"x-ploti-descriptions":{"cli":"Record an assistant's own answer to a research request. This closes the request: Ploti shows the answer on the request, says which assistant gave it, and does not run its own research on it. Data requests already filed for it still deliver their datasets. With a map id, the snapshots, tables and files saved on that map show on the request beside the answer. The request's owner is told in their Ploti inbox, by email when another member's assistant answered, and on their webhooks, which receive the answer. Refused while the request's data check is still running or Ploti's own research run is answering it already. Returns the request, now complete, with its Ploti link.","sdk":"Record an assistant's own answer to a research request. This closes the request: Ploti shows the answer on the request, says which assistant gave it, and does not run its own research on it. Data requests already filed for it still deliver their datasets. With a map id, the snapshots, tables and files saved on that map show on the request beside the answer. The request's owner is told in their Ploti inbox, by email when another member's assistant answered, and on their webhooks, which receive the answer. Refused while the request's data check is still running or Ploti's own research run is answering it already. Returns the request, now complete, with its Ploti link."}}},"/v1/research-requests/{requestId}/question-answers":{"post":{"operationId":"requests_questions_answer","parameters":[{"name":"requestId","in":"path","required":true,"description":"The research request, by the id POST /v1/research-requests gave.","schema":{"type":"string","minLength":1,"maxLength":64},"x-ploti-description-cli":"The research request, by the id ploti requests create gave.","x-ploti-description-sdk":"The research request, by the id ploti.requests.create() gave."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string","description":"The research request's id, which the other research request tools take."},"title":{"type":"string"},"headline":{"$ref":"#/components/schemas/RequestStatus.Headline"},"needsYou":{"type":"boolean","description":"Whether the request waits on the user: answers to its questions, or a choice on its data check's report."},"links":{"type":"object","properties":{"view":{"type":"string","description":"The request's page in Ploti."}},"required":["view"],"additionalProperties":false}},"required":["id","title","headline","needsYou","links"],"additionalProperties":false}},"required":["request"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Send the user's answers to the questions a research request's data check asked while it needs the user; the check then goes on. Each answer is keyed by its question's id: an option by its id or its label, or the user's own words as text; a question left out is skipped, when the questions allow it. The check searches the web as it goes on, and once it reports, Ploti files the missing data itself, as it does for a new request, out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. Returns the request with its new status and link.","summary":"Answer a research request's questions","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","maxLength":2000}},{"type":"null"}]},"description":"Each question's answer by question id: an option id or label, the user's own text, a list for a question that takes several, or null to skip it."}},"required":["answers"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["requests","questions","answer"],"x-ploti-descriptions":{"cli":"Send the user's answers to the questions a research request's data check asked while it needs the user; the check then goes on. Each answer is keyed by its question's id: an option by its id or its label, or the user's own words as text; a question left out is skipped, when the questions allow it. The check searches the web as it goes on, and once it reports, Ploti files the missing data itself, as it does for a new request, out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. Returns the request with its new status and link.","sdk":"Send the user's answers to the questions a research request's data check asked while it needs the user; the check then goes on. Each answer is keyed by its question's id: an option by its id or its label, or the user's own words as text; a question left out is skipped, when the questions allow it. The check searches the web as it goes on, and once it reports, Ploti files the missing data itself, as it does for a new request, out of the workspace's existing Ploti allowance; filing never buys anything or charges the user. Returns the request with its new status and link."}}},"/v1/maps/{mapId}/snapshots":{"post":{"operationId":"maps_snapshots_create","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique value, such as a UUID. A retry with the same key within a day returns the first answer instead of creating again; the same key with a different body is refused as idempotency_conflict.","schema":{"type":"string","maxLength":255}}],"security":[{"bearer":[]}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["saved","running"],"description":"saved, or running when the worker is still at it; then jobId says where to look."},"snapshotId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The snapshot's id, for POST /v1/maps/{mapId}/outputs/show with kind 'snapshot' and for a POST /v1/maps/{mapId}/filters entry; null while running.","x-ploti-description-cli":"The snapshot's id, for ploti maps outputs show with kind 'snapshot' and for a ploti maps filters create entry; null while running.","x-ploti-description-sdk":"The snapshot's id, for Map.outputs.show() with kind 'snapshot' and for a Map.filters.create() entry; null while running."},"jobId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With running: the job GET /v1/jobs/{jobId} follows; null once saved.","x-ploti-description-cli":"With running: the job ploti jobs get follows; null once saved.","x-ploti-description-sdk":"With running: the job ploti.jobs.get() follows; null once saved."},"layer":{"anyOf":[{"type":"string"},{"type":"null"}]},"requested":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Ids or shapes given, or rows the table or conditions named."},"saved":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Features in the snapshot."},"duplicates":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Ids given more than once, saved once."},"notInDataset":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Ids dropped because the layer has no such feature."},"valueColumns":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The value columns each feature carries, for rendering."},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With conditions: the read the rows came from, as words."},"focus":{"anyOf":[{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"zoom":{"type":"number"}},"required":["latitude","longitude","zoom"],"additionalProperties":false},{"type":"null"}],"description":"Where the map centers to frame the saved features, in WGS84 degrees and web-map zoom; null when unknown."},"note":{"type":"string","description":"What happened and what to do next."}},"required":["status","snapshotId","jobId","layer","requested","saved","duplicates","notInDataset","valueColumns","scope","focus","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Save a set of one layer's features as a map and a table in Ploti, with limited values on each so rendering can color by them. Name the features one way: ids (up to 100,000), table (a table in the map's worker), or conditions (where, any_of, place, bbox; the rows they match). Ids the layer lacks are dropped and counted in the reply, and a dataset outside the workspace's coverage is refused. POST /v1/maps/{mapId}/outputs/show displays the snapshot and POST /v1/maps/{mapId}/filters maps it. Shapes the analysis made, which no layer holds (a buffer, a dissolve, a union of zones), are saved by leaving out dataset_id: pass table, a worker table with a geometry column in longitude and latitude, or shapes as GeoJSON. Up to 5,000 shapes and 250,000 vertices in all; invalid shapes are repaired. POST /v1/maps/{mapId}/outputs/show puts them on a map. Returns the snapshot's id and counts of what was saved and dropped, or, when the work outlasts the call, a job id to follow.","summary":"Save a set of features as a snapshot","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Short name the user sees, e.g. 'Parcels over 5 acres'."},"datasetId":{"type":"string","minLength":1,"description":"The layer the features belong to, by the dataset id POST /v1/datasets/search gives. Left out with table or shapes, the snapshot holds shapes the analysis made, such as a buffer or a dissolve, which no layer has.","x-ploti-description-cli":"The layer the features belong to, by the dataset id ploti datasets search gives. Left out with table or shapes, the snapshot holds shapes the analysis made, such as a buffer or a dissolve, which no layer has.","x-ploti-description-sdk":"The layer the features belong to, by the dataset id ploti.datasets.search() gives. Left out with table or shapes, the snapshot holds shapes the analysis made, such as a buffer or a dissolve, which no layer has."},"ids":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"string"}]},"description":"The layer's ids, up to 100,000. GET /v1/datasets/{datasetId} names the layer's id column.","x-ploti-description-cli":"The layer's ids, up to 100,000. ploti datasets get names the layer's id column.","x-ploti-description-sdk":"The layer's ids, up to 100,000. ploti.datasets.get() names the layer's id column."},"table":{"type":"string","pattern":"^[a-z_][a-z0-9_]{0,62}$","description":"A table in the map's worker whose rows name the features, in place of ids."},"idColumn":{"type":"string","minLength":1,"description":"With table: the column holding the layer's ids. Left out, the column named as the layer's id column."},"geometryColumn":{"type":"string","pattern":"^[a-z_][a-z0-9_]{0,62}$","description":"With table and no layer: the column holding the shapes. Left out, the table's first geometry column."},"shapes":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"maxItems":5000,"description":"Shapes no layer holds, in place of ids: GeoJSON geometries in longitude and latitude, e.g. [{\"type\": \"Polygon\", \"coordinates\": [...]}], up to 5,000 with 250,000 vertices in all. Leave out dataset_id."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"values":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1},"maxItems":20},{"type":"object","additionalProperties":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"boolean"},{"type":"null"}]}}}],"description":"Limited values to carry on each feature, so rendering can color by them: numbers and strings of up to 200 characters, in up to 20 columns. With ids or shapes, an object of columns, each a list in their order, e.g. {\"score\": [0.4, 0.9]}. With table or conditions, a list of column names, e.g. [\"score\"]."},"rendering":{"type":"object","properties":{"layers":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"MapLibre style layers that draw the snapshot's features, each with type and paint and optionally filter and layout. They color by the columns values carries, through ['get', column]."}},"required":["layers"],"description":"MapLibre layers that color the features, e.g. {\"layers\": [{\"type\": \"fill\", \"paint\": {\"fill-color\": [\"interpolate\", [\"linear\"], [\"get\", \"score\"], 0, \"#d7302f\", 1, \"#1a9850\"]}}]}. Needs legend."},"legend":{"type":"string","maxLength":2000,"description":"Markdown explaining rendering's colors with their hex values. Required with rendering."},"parent":{"type":"string","description":"The snapshot of the same layer this one refines."},"description":{"type":"string","maxLength":1000,"description":"One or two lines on what the set holds and why."}},"required":["name"]}}},"description":"May be sent with Content-Encoding: gzip, up to 4 MB as sent and 32 MB once decompressed."},"x-ploti-gzip-body":{"maxBytes":4194304,"maxInflatedBytes":33554432},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","snapshots","create"],"x-ploti-descriptions":{"cli":"Save a set of one layer's features as a map and a table in Ploti, with limited values on each so rendering can color by them. Name the features one way: ids (up to 100,000), table (a table in the map's worker), or conditions (where, any_of, place, bbox; the rows they match). Ids the layer lacks are dropped and counted in the reply, and a dataset outside the workspace's coverage is refused. ploti maps outputs show displays the snapshot and ploti maps filters create maps it. Shapes the analysis made, which no layer holds (a buffer, a dissolve, a union of zones), are saved by leaving out dataset_id: pass table, a worker table with a geometry column in longitude and latitude, or shapes as GeoJSON. Up to 5,000 shapes and 250,000 vertices in all; invalid shapes are repaired. ploti maps outputs show puts them on a map. Returns the snapshot's id and counts of what was saved and dropped, or, when the work outlasts the call, a job id to follow.","sdk":"Save a set of one layer's features as a map and a table in Ploti, with limited values on each so rendering can color by them. Name the features one way: ids (up to 100,000), table (a table in the map's worker), or conditions (where, any_of, place, bbox; the rows they match). Ids the layer lacks are dropped and counted in the reply, and a dataset outside the workspace's coverage is refused. Map.outputs.show() displays the snapshot and Map.filters.create() maps it. Shapes the analysis made, which no layer holds (a buffer, a dissolve, a union of zones), are saved by leaving out dataset_id: pass table, a worker table with a geometry column in longitude and latitude, or shapes as GeoJSON. Up to 5,000 shapes and 250,000 vertices in all; invalid shapes are repaired. Map.outputs.show() puts them on a map. Returns the snapshot's id and counts of what was saved and dropped, or, when the work outlasts the call, a job id to follow."}}},"/v1/maps/{mapId}/snapshots/{snapshotId}":{"delete":{"operationId":"maps_snapshots_delete","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."},{"name":"snapshotId","in":"path","required":true,"description":"The snapshot to delete, by the id its create call returned or GET /v1/maps/{mapId}/outputs shows.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The snapshot to delete, by the id its create call returned or ploti maps outputs list shows.","x-ploti-description-sdk":"The snapshot to delete, by the id its create call returned or Map.outputs.list() shows."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"snapshotId":{"type":"string","description":"The snapshot deleted."},"note":{"type":"string","description":"What happened."}},"required":["snapshotId","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Delete a snapshot this map created, such as one saved by mistake or superseded by a corrected copy. Only this map's snapshots can be deleted, and not while a saved filter on this map uses it. Deletion cannot be undone; confirm with the user first unless you are removing your own mistake.","summary":"Delete a snapshot","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","snapshots","delete"],"x-ploti-descriptions":{"cli":"Delete a snapshot this map created, such as one saved by mistake or superseded by a corrected copy. Only this map's snapshots can be deleted, and not while a saved filter on this map uses it. Deletion cannot be undone; confirm with the user first unless you are removing your own mistake.","sdk":"Delete a snapshot this map created, such as one saved by mistake or superseded by a corrected copy. Only this map's snapshots can be deleted, and not while a saved filter on this map uses it. Deletion cannot be undone; confirm with the user first unless you are removing your own mistake."}}},"/v1/maps/{mapId}/filters":{"post":{"operationId":"maps_filters_create","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id, for POST /v1/maps/{mapId}/outputs/show with kind 'filter' and PATCH /v1/maps/{mapId}/filters/{filterId}.","x-ploti-description-cli":"The filter's id, for ploti maps outputs show with kind 'filter' and ploti maps filters update.","x-ploti-description-sdk":"The filter's id, for Map.outputs.show() with kind 'filter' and Map.filters.update()."},"title":{"type":"string","description":"The filter's name."},"version":{"type":"number","description":"The version the update saved; the first is 1. Only updates return it."},"note":{"type":"string","description":"What to do next."}},"required":["id","title","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Save one map from snapshots and layers, in map-key order (the first draws on top). A layer entry draws the whole layer, or with conditions on its columns only the features matching them, wherever the user looks, so a county-wide condition (parcels over 20 acres owned by an LLC) is one layer entry, not a snapshot. Conditions cannot be a list of ids; save such a set with POST /v1/maps/{mapId}/snapshots. Returns the filter's id and name; POST /v1/maps/{mapId}/outputs/show displays it with kind 'filter' and gives the user's link.","summary":"Make a map of layers and snapshots","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The filter's name, shown to the user in Ploti and in GET /v1/maps/{mapId}/outputs, e.g. 'LLC-owned parcels over 20 acres'.","x-ploti-description-cli":"The filter's name, shown to the user in Ploti and in ploti maps outputs list, e.g. 'LLC-owned parcels over 20 acres'.","x-ploti-description-sdk":"The filter's name, shown to the user in Ploti and in Map.outputs.list(), e.g. 'LLC-owned parcels over 20 acres'."},"description":{"type":"string","maxLength":1000,"description":"One line on what the map shows, saved with the filter."},"layers":{"type":"array","items":{"type":"object","properties":{"snapshot_id":{"type":"string","description":"A snapshot, drawn as its features, by the snapshotId POST /v1/maps/{mapId}/snapshots returned or the id GET /v1/maps/{mapId}/outputs shows.","x-ploti-description-cli":"A snapshot, drawn as its features, by the snapshotId ploti maps snapshots create returned or the id ploti maps outputs list shows.","x-ploti-description-sdk":"A snapshot, drawn as its features, by the snapshotId Map.snapshots.create() returned or the id Map.outputs.list() shows."},"dataset_id":{"type":"string","description":"A layer, by the dataset id POST /v1/datasets/search gives, drawn wherever it has features.","x-ploti-description-cli":"A layer, by the dataset id ploti datasets search gives, drawn wherever it has features.","x-ploti-description-sdk":"A layer, by the dataset id ploti.datasets.search() gives, drawn wherever it has features."},"conditions":{"type":"array","items":{"type":"object","properties":{"property":{"type":"string","description":"The layer's column to test, by the name GET /v1/datasets/{datasetId} lists.","x-ploti-description-cli":"The layer's column to test, by the name ploti datasets get lists.","x-ploti-description-sdk":"The layer's column to test, by the name ploti.datasets.get() lists."},"operation":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","ends_with","similar_to","greater_than","less_than","between","is_not_set"],"description":"How the column is tested. similar_to matches names loosely (an owner's full name), contains a part of one; is_not_set matches features with no value and takes none. Which operations a column allows depends on its type."},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"description":"The value to test against: a plain number (5000, not '5,000'), a date as YYYY-MM-DD, or a category's stored code as GET /v1/datasets/{datasetId}/values lists it. The low end with between.","x-ploti-description-cli":"The value to test against: a plain number (5000, not '5,000'), a date as YYYY-MM-DD, or a category's stored code as ploti datasets values lists it. The low end with between.","x-ploti-description-sdk":"The value to test against: a plain number (5000, not '5,000'), a date as YYYY-MM-DD, or a category's stored code as ploti.datasets.values() lists it. The low end with between."},"secondary_value":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"With between only: the high end. between includes both ends; leave one out for an open range."}},"required":["property","operation"]},"description":"For a layer only: draw just the features matching these conditions on its columns. Same property: any positive condition holds, every negative one must; different properties are ANDed. between takes value as the low end and secondary_value the high end."},"title":{"type":"string","description":"The entry's label in the map key."},"color":{"type":"string","description":"A hex color like '#DB2777'. Left out, a layer with its own category colors (zoning, land use) keeps them."}}},"minItems":1,"maxItems":12,"description":"The map key's entries; each names a snapshot_id or a dataset."}},"required":["name","layers"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","filters","create"],"x-ploti-descriptions":{"cli":"Save one map from snapshots and layers, in map-key order (the first draws on top). A layer entry draws the whole layer, or with conditions on its columns only the features matching them, wherever the user looks, so a county-wide condition (parcels over 20 acres owned by an LLC) is one layer entry, not a snapshot. Conditions cannot be a list of ids; save such a set with ploti maps snapshots create. Returns the filter's id and name; ploti maps outputs show displays it with kind 'filter' and gives the user's link.","sdk":"Save one map from snapshots and layers, in map-key order (the first draws on top). A layer entry draws the whole layer, or with conditions on its columns only the features matching them, wherever the user looks, so a county-wide condition (parcels over 20 acres owned by an LLC) is one layer entry, not a snapshot. Conditions cannot be a list of ids; save such a set with Map.snapshots.create(). Returns the filter's id and name; Map.outputs.show() displays it with kind 'filter' and gives the user's link."}}},"/v1/maps/{mapId}/filters/{filterId}":{"patch":{"operationId":"maps_filters_update","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."},{"name":"filterId","in":"path","required":true,"description":"The filter, by the id POST /v1/maps/{mapId}/filters returned or GET /v1/maps/{mapId}/outputs shows.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The filter, by the id ploti maps filters create returned or ploti maps outputs list shows.","x-ploti-description-sdk":"The filter, by the id Map.filters.create() returned or Map.outputs.list() shows."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id, for POST /v1/maps/{mapId}/outputs/show with kind 'filter' and PATCH /v1/maps/{mapId}/filters/{filterId}.","x-ploti-description-cli":"The filter's id, for ploti maps outputs show with kind 'filter' and ploti maps filters update.","x-ploti-description-sdk":"The filter's id, for Map.outputs.show() with kind 'filter' and Map.filters.update()."},"title":{"type":"string","description":"The filter's name."},"version":{"type":"number","description":"The version the update saved; the first is 1. Only updates return it."},"note":{"type":"string","description":"What to do next."}},"required":["id","title","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Save a new version of one of this map's filters: a new name or description, or layers, which replace the map key whole, so an entry left out of layers is taken off the map. Fields left out keep their current values. The filter keeps its id, so its link and panel show the new version, and the map in Ploti redraws with it. Returns the filter's id, name and new version number.","summary":"Change a filter","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"A new name for the filter. Left out, it keeps its name."},"description":{"type":"string","maxLength":1000,"description":"A new line on what the map shows. Left out, it keeps its description."},"layers":{"type":"array","items":{"type":"object","properties":{"snapshot_id":{"type":"string","description":"A snapshot, drawn as its features, by the snapshotId POST /v1/maps/{mapId}/snapshots returned or the id GET /v1/maps/{mapId}/outputs shows.","x-ploti-description-cli":"A snapshot, drawn as its features, by the snapshotId ploti maps snapshots create returned or the id ploti maps outputs list shows.","x-ploti-description-sdk":"A snapshot, drawn as its features, by the snapshotId Map.snapshots.create() returned or the id Map.outputs.list() shows."},"dataset_id":{"type":"string","description":"A layer, by the dataset id POST /v1/datasets/search gives, drawn wherever it has features.","x-ploti-description-cli":"A layer, by the dataset id ploti datasets search gives, drawn wherever it has features.","x-ploti-description-sdk":"A layer, by the dataset id ploti.datasets.search() gives, drawn wherever it has features."},"conditions":{"type":"array","items":{"type":"object","properties":{"property":{"type":"string","description":"The layer's column to test, by the name GET /v1/datasets/{datasetId} lists.","x-ploti-description-cli":"The layer's column to test, by the name ploti datasets get lists.","x-ploti-description-sdk":"The layer's column to test, by the name ploti.datasets.get() lists."},"operation":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","ends_with","similar_to","greater_than","less_than","between","is_not_set"],"description":"How the column is tested. similar_to matches names loosely (an owner's full name), contains a part of one; is_not_set matches features with no value and takes none. Which operations a column allows depends on its type."},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"description":"The value to test against: a plain number (5000, not '5,000'), a date as YYYY-MM-DD, or a category's stored code as GET /v1/datasets/{datasetId}/values lists it. The low end with between.","x-ploti-description-cli":"The value to test against: a plain number (5000, not '5,000'), a date as YYYY-MM-DD, or a category's stored code as ploti datasets values lists it. The low end with between.","x-ploti-description-sdk":"The value to test against: a plain number (5000, not '5,000'), a date as YYYY-MM-DD, or a category's stored code as ploti.datasets.values() lists it. The low end with between."},"secondary_value":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"With between only: the high end. between includes both ends; leave one out for an open range."}},"required":["property","operation"]},"description":"For a layer only: draw just the features matching these conditions on its columns. Same property: any positive condition holds, every negative one must; different properties are ANDed. between takes value as the low end and secondary_value the high end."},"title":{"type":"string","description":"The entry's label in the map key."},"color":{"type":"string","description":"A hex color like '#DB2777'. Left out, a layer with its own category colors (zoning, land use) keeps them."}}},"minItems":1,"maxItems":12,"description":"The whole new map key, in order (the first draws on top), as POST /v1/maps/{mapId}/filters takes it: pass every entry to keep. Left out, the layers stay as they are.","x-ploti-description-cli":"The whole new map key, in order (the first draws on top), as ploti maps filters create takes it: pass every entry to keep. Left out, the layers stay as they are.","x-ploti-description-sdk":"The whole new map key, in order (the first draws on top), as Map.filters.create() takes it: pass every entry to keep. Left out, the layers stay as they are."}}}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","filters","update"],"x-ploti-descriptions":{"cli":"Save a new version of one of this map's filters: a new name or description, or layers, which replace the map key whole, so an entry left out of layers is taken off the map. Fields left out keep their current values. The filter keeps its id, so its link and panel show the new version, and the map in Ploti redraws with it. Returns the filter's id, name and new version number.","sdk":"Save a new version of one of this map's filters: a new name or description, or layers, which replace the map key whole, so an entry left out of layers is taken off the map. Fields left out keep their current values. The filter keeps its id, so its link and panel show the new version, and the map in Ploti redraws with it. Returns the filter's id, name and new version number."}}},"/v1/maps/{mapId}/saved-tables":{"post":{"operationId":"maps_saved_tables_create","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"required":["table"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Save rows as a table the user sees in the map and can sort, filter and download. Pass rows (with columns to label and format them), or snapshot_ids to table their features, or table_ids to combine tables saved before. Returns the table, with its id for GET /v1/maps/{mapId}/saved-tables/{tableId}.","summary":"Show a table in the map","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":1000},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"The rows, each an object of column to value."},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","boolean","date","datetime","json","null"]},"display":{"type":"object"},"description":{"type":"string"}},"required":["key"]},"description":"With rows: each column's key, label, type and display. Left out, they come from the rows."},"snapshotIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20,"description":"Snapshots whose features become the rows."},"snapshotColumns":{"type":"array","items":{"type":"string","minLength":1},"maxItems":100,"description":"With snapshot_ids: the columns to keep."},"tableIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20,"description":"Tables saved before, stacked into one."},"focusLatitude":{"type":"number","minimum":-90,"maximum":90},"focusLongitude":{"type":"number","minimum":-180,"maximum":180},"focusZoom":{"type":"number","description":"With the focus point, the camera the table's map opens at."}},"required":["name"]}}},"description":"May be sent with Content-Encoding: gzip, up to 4 MB as sent and 32 MB once decompressed."},"x-ploti-gzip-body":{"maxBytes":4194304,"maxInflatedBytes":33554432},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","saved-tables","create"],"x-ploti-descriptions":{"cli":"Save rows as a table the user sees in the map and can sort, filter and download. Pass rows (with columns to label and format them), or snapshot_ids to table their features, or table_ids to combine tables saved before. Returns the table, with its id for ploti maps saved-tables get.","sdk":"Save rows as a table the user sees in the map and can sort, filter and download. Pass rows (with columns to label and format them), or snapshot_ids to table their features, or table_ids to combine tables saved before. Returns the table, with its id for Map.saved_tables.get()."}},"get":{"operationId":"maps_saved_tables_list","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}},"required":["tables"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The tables POST /v1/maps/{mapId}/saved-tables saved in this map's chat, newest first, with their ids, names and row counts.","summary":"List the tables saved on the map","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","saved-tables","list"],"x-ploti-descriptions":{"cli":"The tables ploti maps saved-tables create saved in this map's chat, newest first, with their ids, names and row counts.","sdk":"The tables Map.saved_tables.create() saved in this map's chat, newest first, with their ids, names and row counts."}}},"/v1/maps/{mapId}/saved-tables/{tableId}":{"get":{"operationId":"maps_saved_tables_get","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."},{"name":"tableId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"exclusiveMinimum":0}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."}},"required":["table","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One table POST /v1/maps/{mapId}/saved-tables saved, with its columns and a page of its rows: limit and cursor page through it.","summary":"Read a table saved on the map","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","saved-tables","get"],"x-ploti-descriptions":{"cli":"One table ploti maps saved-tables create saved, with its columns and a page of its rows: limit and cursor page through it.","sdk":"One table Map.saved_tables.create() saved, with its columns and a page of its rows: limit and cursor page through it."}}},"/v1/maps/{mapId}/files/upload":{"post":{"operationId":"maps_files_upload","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"fileId":{"type":"string"},"uploadUrl":{"type":"string"},"uploadHeaders":{"type":"object","additionalProperties":{"type":"string"}},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["fileId","uploadUrl","uploadHeaders"],"additionalProperties":{}}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The first of two steps that save a file from your computer into the map, where the user sees it: returns an uploadUrl to PUT the bytes to, with uploadHeaders, and the fileId POST /v1/maps/{mapId}/files/finalize takes once the upload is done. The SDK's Map.files.upload does both.","summary":"Start saving a file to the map","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200,"description":"The file's name, with its extension."},"contentType":{"type":"string","description":"Its media type, when the extension does not say it."}},"required":["filename"]}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","files","upload"],"x-ploti-descriptions":{"cli":"The first of two steps that save a file from your computer into the map, where the user sees it: returns an uploadUrl to PUT the bytes to, with uploadHeaders, and the fileId ploti maps files finalize takes once the upload is done. The SDK's Map.files.upload does both.","sdk":"The first of two steps that save a file from your computer into the map, where the user sees it: returns an uploadUrl to PUT the bytes to, with uploadHeaders, and the fileId Map.files.finalize() takes once the upload is done. The SDK's Map.files.upload does both."}}},"/v1/maps/{mapId}/files/finalize":{"post":{"operationId":"maps_files_finalize","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"required":["file"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Files an uploaded file in the map, once its bytes are PUT to the uploadUrl POST /v1/maps/{mapId}/files/upload gave. Returns the file, with durableUrl for the user.","summary":"Finish saving a file to the map","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fileId":{"type":"string","minLength":1},"filename":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":500,"description":"One line on what the file holds, shown in Ploti."}},"required":["fileId","filename"]}}}},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","files","finalize"],"x-ploti-descriptions":{"cli":"Files an uploaded file in the map, once its bytes are PUT to the uploadUrl ploti maps files upload gave. Returns the file, with durableUrl for the user.","sdk":"Files an uploaded file in the map, once its bytes are PUT to the uploadUrl Map.files.upload() gave. Returns the file, with durableUrl for the user."}}},"/v1/maps/{mapId}/files/export":{"post":{"operationId":"maps_files_export","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map to save the file on, by the id POST /v1/maps returned. Needed: an export is a map's file.","schema":{"type":"string"},"x-ploti-description-cli":"The map to save the file on, by the id ploti maps create returned. Needed: an export is a map's file.","x-ploti-description-sdk":"The map to save the file on, by the id ploti.maps.create() returned. Needed: an export is a map's file."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","running"],"description":"done, with the files; or running, when jobId says where to look."},"jobId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"While running: the job GET /v1/jobs/{jobId} follows to the files. Null when done.","x-ploti-description-cli":"While running: the job ploti jobs get follows to the files. Null when done.","x-ploti-description-sdk":"While running: the job ploti.jobs.get() follows to the files. Null when done."},"message":{"type":"string","description":"The reply's text."},"files":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"filename":{"type":"string"},"bytes":{"type":"number"},"downloadUrl":{"type":"string","description":"Fetches the file without sign-in for 15 minutes."},"fileUrl":{"type":"string","description":"The file in Ploti, for a signed-in workspace member."}},"required":["fileId","filename","bytes","downloadUrl","fileUrl"],"additionalProperties":false},"description":"The file, or its parts in order."},"format":{"type":"string","enum":["csv","geojson","parquet"]},"rowCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Rows written."},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What place the rows came from."},"mapId":{"type":"string","description":"The map the file is on."},"progress":{"anyOf":[{"type":"object","properties":{"doing":{"type":"string","description":"The call, in a few words."},"phase":{"type":"string","description":"The step it is on, such as reading the file."},"query_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How far the query is, where DuckDB can tell."},"seconds":{"type":"number","description":"Seconds since it started."},"queued":{"type":"boolean","description":"true while it waits its turn; position says where."},"position":{"type":"integer","description":"Its place in the queue, from 1."}},"additionalProperties":{"type":"number"}},{"type":"null"}],"description":"While running: how far the worker has got, or its place in the queue. Absent when done."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Anything else worth knowing."}},"required":["status","jobId","message","files","format","rowCount","scope","mapId","note"],"additionalProperties":{}}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Save a layer's rows as a CSV, GeoJSON or Parquet file on a map. Takes the same request as POST /v1/datasets/{datasetId}/rows and writes every row that matches, cut from the layer's own file. Returns a download link valid for 15 minutes that needs no sign-in, for fetching the file onto a computer you can work on, and the file's Ploti link for the user, which needs a workspace sign-in. A file too large for one comes as several part files. A long export returns a job id for GET /v1/jobs/{jobId}, which returns the files.","summary":"Export a layer's rows to a file","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string","minLength":1,"maxLength":255,"description":"The dataset to read, by the datasetId POST /v1/datasets/search or GET /v1/datasets gives.","x-ploti-description-cli":"The dataset to read, by the datasetId ploti datasets search or ploti datasets list gives.","x-ploti-description-sdk":"The dataset to read, by the datasetId ploti.datasets.search() or ploti.datasets.list() gives."},"columns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":100,"description":"Columns to load, as the layer's description names them; every column when left out. The layer's id column always comes too."},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"A condition as CQL2-JSON, e.g. {\"op\": \">\", \"args\": [{\"property\": \"acreage\"}, 5]}. Ops: and, or, not, =, <>, <, <=, >, >=, like (any case, % and _ as wildcards), in ({\"op\": \"in\", \"args\": [{\"property\": \"zone\"}, [\"R1\", \"R2\"]]}), between ({\"op\": \"between\", \"args\": [{\"property\": \"acreage\"}, 5, 10]}), isNull. The first argument of a comparison names a column; the rest are plain values."},"anyOf":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minItems":1,"maxItems":50,"description":"Alternatives, each a condition written as in where: a row is kept when any one of them holds, alongside where and the rest of the narrowing."},"place":{"type":"string","minLength":1,"maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"bbox":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"A box in degrees: [west, south, east, north]. The place being researched, never the user's own location."},"inSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Keep only the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Keep only the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Keep only the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"notInSnapshot":{"type":"string","minLength":1,"maxLength":64,"description":"Leave out the layer's rows saved in this snapshot, by the snapshotId POST /v1/maps/{mapId}/snapshots returned.","x-ploti-description-cli":"Leave out the layer's rows saved in this snapshot, by the snapshotId ploti maps snapshots create returned.","x-ploti-description-sdk":"Leave out the layer's rows saved in this snapshot, by the snapshotId Map.snapshots.create() returned."},"geometry":{"type":"string","enum":["none","centroid","area","bbox","full"],"description":"How much of each row's shape the file holds: a centroid point, its area, its bounding box, or the full shape. full for GeoJSON when left out, none otherwise. In CSV, full comes as WKT text; in Parquet, as GeoParquet."},"orderBy":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":128,"description":"A column to sort by, as the layer's description names it."},"direction":{"type":"string","enum":["asc","desc"],"description":"asc when left out."}},"required":["column"]},"minItems":1,"maxItems":3,"description":"Sort order, e.g. [{\"column\": \"acreage\", \"direction\": \"desc\"}]. A sorted read pages through at most 50000 rows; an unsorted one has no such limit unless its reply says otherwise."},"format":{"type":"string","enum":["csv","geojson","parquet"],"description":"The file's format; csv when left out."},"filename":{"type":"string","minLength":1,"maxLength":120,"description":"A name for the file without extension, e.g. 'orange-parcels-over-5-acres'."},"description":{"type":"string","maxLength":500,"description":"One line on what the file holds, shown in Ploti."}},"required":["datasetId"]}}}},"x-ploti-interfaces":["mcp","rest"],"x-ploti-map":true,"x-ploti-command":["maps","files","export"],"x-ploti-descriptions":{"cli":"Save a layer's rows as a CSV, GeoJSON or Parquet file on a map. Takes the same request as ploti datasets rows and writes every row that matches, cut from the layer's own file. Returns a download link valid for 15 minutes that needs no sign-in, for fetching the file onto a computer you can work on, and the file's Ploti link for the user, which needs a workspace sign-in. A file too large for one comes as several part files. A long export returns a job id for ploti jobs get, which returns the files.","sdk":"Save a layer's rows as a CSV, GeoJSON or Parquet file on a map. Takes the same request as ploti.datasets.rows() and writes every row that matches, cut from the layer's own file. Returns a download link valid for 15 minutes that needs no sign-in, for fetching the file onto a computer you can work on, and the file's Ploti link for the user, which needs a workspace sign-in. A file too large for one comes as several part files. A long export returns a job id for ploti.jobs.get(), which returns the files."}}},"/v1/maps/{mapId}/image":{"post":{"operationId":"maps_image","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"styleId":{"type":"string"},"imageBase64":{"type":"string"},"contentType":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["styleId","imageBase64","contentType","width","height"],"additionalProperties":{}}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"A PNG of up to 25 GeoJSON shapes on a basemap, for a report or a reply: colors and labels by index, focus to frame on some shapes and draw the rest as context. style names a basemap; left out, the one on the user's map. Returns the image as base64; the SDK's Map.image writes it to a file.","summary":"Draw shapes on a map image","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"geometries":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-85.05113,"maximum":85.05113}],"minItems":2,"items":{"type":"number"}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-85.05113,"maximum":85.05113}],"minItems":2,"items":{"type":"number"}},"minItems":1}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","items":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-85.05113,"maximum":85.05113}],"minItems":2,"items":{"type":"number"}},"minItems":2}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-85.05113,"maximum":85.05113}],"minItems":2,"items":{"type":"number"}},"minItems":2},"minItems":1}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-85.05113,"maximum":85.05113}],"minItems":2,"items":{"type":"number"}},"minItems":4},"minItems":1}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-85.05113,"maximum":85.05113}],"minItems":2,"items":{"type":"number"}},"minItems":4},"minItems":1},"minItems":1}},"required":["type","coordinates"]}]},"minItems":1,"maxItems":25},"width":{"type":"integer","minimum":256,"maximum":1600,"default":1200},"height":{"type":"integer","minimum":256,"maximum":1600,"default":800},"zoom":{"type":"integer","minimum":5,"maximum":20},"colors":{"type":"array","items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"maxItems":25},"labels":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":25},"focus":{"type":"array","items":{"type":"integer","minimum":0,"maximum":24},"minItems":1,"maxItems":25},"style":{"type":"string","minLength":1,"maxLength":128}},"required":["geometries"]}}},"description":"May be sent with Content-Encoding: gzip, up to 4 MB as sent and 32 MB once decompressed."},"x-ploti-gzip-body":{"maxBytes":4194304,"maxInflatedBytes":33554432},"x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","image"],"x-ploti-descriptions":{"cli":"A PNG of up to 25 GeoJSON shapes on a basemap, for a report or a reply: colors and labels by index, focus to frame on some shapes and draw the rest as context. style names a basemap; left out, the one on the user's map. Returns the image as base64; the SDK's Map.image writes it to a file.","sdk":"A PNG of up to 25 GeoJSON shapes on a basemap, for a report or a reply: colors and labels by index, focus to frame on some shapes and draw the rest as context. style names a basemap; left out, the one on the user's map. Returns the image as base64; the SDK's Map.image writes it to a file."}}},"/v1/maps/{mapId}/branding":{"get":{"operationId":"maps_branding","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"branding":{"type":"object","properties":{"brand":{"type":"string"},"name":{"type":"string"},"source":{"type":"string","enum":["workspace-kit","fallback"],"description":"workspace-kit when the workspace set its own brand; fallback for Ploti's."},"isDefaultBrand":{"type":"boolean"},"colors":{"type":"object","properties":{"primary":{"type":"string"},"primary_dark":{"type":"string"},"text":{"type":"string"},"text_muted":{"type":"string"},"border":{"type":"string"}},"required":["primary","primary_dark","text","text_muted","border"],"description":"Hex colors, by the role each plays."},"brandColors":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["hex"]},"description":"The workspace's palette, in its order."},"assets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["full_logo","icon_logo","image"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filename":{"type":"string"},"width":{"anyOf":[{"type":"number"},{"type":"null"}]},"height":{"anyOf":[{"type":"number"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that downloads the workspace's image; null for Ploti's own."},"base64":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Ploti's own image, inline; null for a workspace's."}},"required":["kind","name","description","filename","width","height","url","base64"]}}},"required":["brand","name","source","isDefaultBrand","colors","brandColors","assets"]}},"required":["branding"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The workspace's colors, fonts and logos, for a report or image made in its name. Logos come as links to download.","summary":"Get the workspace's brand","x-ploti-interfaces":["rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","branding"],"x-ploti-descriptions":{"cli":"The workspace's colors, fonts and logos, for a report or image made in its name. Logos come as links to download.","sdk":"The workspace's colors, fonts and logos, for a report or image made in its name. Logos come as links to download."}}},"/v1/maps/{mapId}/outputs":{"get":{"operationId":"maps_outputs_list","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"snapshots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"itemCount":{"type":"number","description":"Features in the snapshot; 0 means it is empty."},"datasetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The dataset its features are rows of, to read them with in_snapshot; null for shapes no dataset holds."},"chatId":{"type":"string","description":"The chat that saved it: this map's, or a map agent's its chat started."}},"required":["id","name","itemCount","datasetId","chatId"],"additionalProperties":false},"description":"Saved sets of features, shown with kind \"snapshot\"."},"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"rowCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Null when not counted."},"chatId":{"type":"string","description":"The chat that saved it: this map's, or a map agent's its chat started."}},"required":["id","name","rowCount","chatId"],"additionalProperties":false},"description":"Tables saved on the map, shown with kind \"table\"."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false},"description":"Maps of layers and snapshots, by their newest version, shown with kind \"filter\"."},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The file_id GET /v1/files/{fileId} takes.","x-ploti-description-cli":"The file_id ploti files get takes.","x-ploti-description-sdk":"The file_id ploti.files.get() takes."},"filename":{"type":"string"},"size":{"type":"number","description":"Bytes."}},"required":["id","filename","size"],"additionalProperties":false},"description":"Files saved on the map, such as exports."},"url":{"type":"string","description":"The map in Ploti."}},"required":["snapshots","tables","filters","files","url"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Snapshots, tables, filters and saved files created on this map, each with its id and name and a count or size, plus one link to the map in Ploti. In a sandbox, snapshots and tables also include those the map agents its chat started saved, each with the chat that saved it. Per-output viewUrls come from POST /v1/maps/{mapId}/outputs/show. Files come from POST /v1/maps/{mapId}/files/export and POST /v1/datasets/{datasetId}/files.","summary":"List what this map produced","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","outputs","list"],"x-ploti-descriptions":{"cli":"Snapshots, tables, filters and saved files created on this map, each with its id and name and a count or size, plus one link to the map in Ploti. In a sandbox, snapshots and tables also include those the map agents its chat started saved, each with the chat that saved it. Per-output viewUrls come from ploti maps outputs show. Files come from ploti maps files export and ploti datasets download.","sdk":"Snapshots, tables, filters and saved files created on this map, each with its id and name and a count or size, plus one link to the map in Ploti. In a sandbox, snapshots and tables also include those the map agents its chat started saved, each with the chat that saved it. Per-output viewUrls come from Map.outputs.show(). Files come from Map.files.export() and ploti.datasets.download()."}}},"/v1/maps/{mapId}/outputs/show":{"post":{"operationId":"maps_outputs_show","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["snapshot","table","filter"],"description":"What the output is: a snapshot's features, a table saved on the map, or a filter's map."},"views":{"type":"array","items":{"type":"string","enum":["map","table"]},"description":"The views the panel offers; the first opens by default."},"title":{"type":"string","description":"The output's name."},"subtitle":{"type":"string","description":"The line under the title in the panel."},"columns":{"type":"array","items":{"type":"string"},"description":"The columns the row preview carries, in order."},"primaryKey":{"type":"string","description":"Column that identifies each row, for matching rows to the map."},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"The row preview, one object per row keyed by column."},"total":{"type":"number","description":"How many rows the output holds."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"viewUrl":{"type":"string","description":"User-facing Ploti link to include in the answer."},"dataUrl":{"type":"string","description":"Internal data endpoint for the interactive panel."},"embedUrl":{"type":"string","description":"Internal page that shows this output in a browser under the view's grant; maps_outputs_share makes the link to give the user."}},"required":["kind","views","title","subtitle","columns","rows","total","nextCursor","viewUrl","dataUrl","embedUrl"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Display a snapshot's features or a filter's map. Returns viewUrl, the user-facing Ploti link for it; create calls do not return one. Also returns a compact row preview as text and, in supported clients, an interactive panel that loads the full output separately. Use limit, cursor and columns to page or narrow the preview. Use this tool to hand a result to the user rather than pasting rows into your reply. An answer about places is handed over as one filter (POST /v1/maps/{mapId}/filters) holding the result and the layer it rests on, and its viewUrl goes in your reply.","summary":"Show an output to the user","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["snapshot","table","filter"],"description":"The kind of output the id names, as GET /v1/maps/{mapId}/outputs groups it: a snapshot's features, a filter's map, or a table saved on the map.","x-ploti-description-cli":"The kind of output the id names, as ploti maps outputs list groups it: a snapshot's features, a filter's map, or a table saved on the map.","x-ploti-description-sdk":"The kind of output the id names, as Map.outputs.list() groups it: a snapshot's features, a filter's map, or a table saved on the map."},"id":{"type":"string","description":"The output's id, as GET /v1/maps/{mapId}/outputs lists it: a snapshot's from POST /v1/maps/{mapId}/snapshots, a filter's from POST /v1/maps/{mapId}/filters.","x-ploti-description-cli":"The output's id, as ploti maps outputs list lists it: a snapshot's from ploti maps snapshots create, a filter's from ploti maps filters create.","x-ploti-description-sdk":"The output's id, as Map.outputs.list() lists it: a snapshot's from Map.snapshots.create(), a filter's from Map.filters.create()."},"limit":{"type":"integer","minimum":1,"maximum":25,"description":"Rows in the text preview; 10 when left out. The interactive panel loads the full output on its own."},"cursor":{"type":"string","maxLength":64,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page."},"columns":{"type":"array","items":{"type":"string","minLength":1},"maxItems":12,"description":"Columns to show in the preview, by name; left out, it shows the layer's columns."}},"required":["kind","id"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","outputs","show"],"x-ploti-descriptions":{"cli":"Display a snapshot's features or a filter's map. Returns viewUrl, the user-facing Ploti link for it; create calls do not return one. Also returns a compact row preview as text and, in supported clients, an interactive panel that loads the full output separately. Use limit, cursor and columns to page or narrow the preview. Use this tool to hand a result to the user rather than pasting rows into your reply. An answer about places is handed over as one filter (ploti maps filters create) holding the result and the layer it rests on, and its viewUrl goes in your reply.","sdk":"Display a snapshot's features or a filter's map. Returns viewUrl, the user-facing Ploti link for it; create calls do not return one. Also returns a compact row preview as text and, in supported clients, an interactive panel that loads the full output separately. Use limit, cursor and columns to page or narrow the preview. Use this tool to hand a result to the user rather than pasting rows into your reply. An answer about places is handed over as one filter (Map.filters.create()) holding the result and the layer it rests on, and its viewUrl goes in your reply."}}},"/v1/maps/{mapId}/outputs/share":{"post":{"operationId":"maps_outputs_share","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"shareUrl":{"type":"string","description":"Opens the output view-only, without signing in."},"expiresAt":{"type":"string","description":"When the link stops working, ISO 8601."}},"required":["shareUrl","expiresAt"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Make a view-only link to a snapshot or filter that anyone can open without signing in, for 7 days, so the user can share a result outside the workspace, as when they ask how to share it or for a link someone outside the workspace can open. Each call makes a new link; the viewUrl POST /v1/maps/{mapId}/outputs/show returns needs a workspace member's sign-in.","summary":"Make a link to share an output","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["snapshot","table","filter"],"description":"The kind of output the id names, as GET /v1/maps/{mapId}/outputs groups it.","x-ploti-description-cli":"The kind of output the id names, as ploti maps outputs list groups it.","x-ploti-description-sdk":"The kind of output the id names, as Map.outputs.list() groups it."},"id":{"type":"string","description":"The output's id, as GET /v1/maps/{mapId}/outputs lists it: a snapshot's from POST /v1/maps/{mapId}/snapshots, a filter's from POST /v1/maps/{mapId}/filters.","x-ploti-description-cli":"The output's id, as ploti maps outputs list lists it: a snapshot's from ploti maps snapshots create, a filter's from ploti maps filters create.","x-ploti-description-sdk":"The output's id, as Map.outputs.list() lists it: a snapshot's from Map.snapshots.create(), a filter's from Map.filters.create()."}},"required":["kind","id"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","outputs","share"],"x-ploti-descriptions":{"cli":"Make a view-only link to a snapshot or filter that anyone can open without signing in, for 7 days, so the user can share a result outside the workspace, as when they ask how to share it or for a link someone outside the workspace can open. Each call makes a new link; the viewUrl ploti maps outputs show returns needs a workspace member's sign-in.","sdk":"Make a view-only link to a snapshot or filter that anyone can open without signing in, for 7 days, so the user can share a result outside the workspace, as when they ask how to share it or for a link someone outside the workspace can open. Each call makes a new link; the viewUrl Map.outputs.show() returns needs a workspace member's sign-in."}}},"/v1/files/{fileId}":{"get":{"operationId":"files_get","parameters":[{"name":"mapId","in":"query","required":false,"description":"The map the file was saved on. Left out, any file of yours in the workspace.","schema":{"type":"string"}},{"name":"fileId","in":"path","required":true,"description":"The file to link, by the id GET /v1/maps/{mapId}/outputs shows.","schema":{"type":"string"},"x-ploti-description-cli":"The file to link, by the id ploti maps outputs list shows.","x-ploti-description-sdk":"The file to link, by the id Map.outputs.list() shows."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"fileId":{"type":"string"},"filename":{"type":"string"},"size":{"type":"number","description":"Bytes."},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The durable link, for people signed in."},"downloadUrl":{"type":"string","description":"Fetchable with no sign-in, for 15 minutes."}},"required":["fileId","filename","size","contentType","url","downloadUrl"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Recover the durable download link for a file saved earlier, such as a cut POST /v1/datasets/{datasetId}/files made: returns the file's name, size, content type and two links: url, for people signed in to Ploti, which does not expire, and downloadUrl, which needs no sign-in, lasts 15 minutes and is the one a program can fetch. POST /v1/maps/{mapId}/files/export and POST /v1/datasets/{datasetId}/files already return a downloadUrl for a file they just made.","summary":"Get a download link for a saved file","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["files","get"],"x-ploti-descriptions":{"cli":"Recover the durable download link for a file saved earlier, such as a cut ploti datasets files create made: returns the file's name, size, content type and two links: url, for people signed in to Ploti, which does not expire, and downloadUrl, which needs no sign-in, lasts 15 minutes and is the one a program can fetch. ploti maps files export and ploti datasets download already return a downloadUrl for a file they just made.","sdk":"Recover the durable download link for a file saved earlier, such as a cut ploti.datasets.files.create() made: returns the file's name, size, content type and two links: url, for people signed in to Ploti, which does not expire, and downloadUrl, which needs no sign-in, lasts 15 minutes and is the one a program can fetch. Map.files.export() and ploti.datasets.download() already return a downloadUrl for a file they just made."}}},"/v1/maps/{mapId}/storage":{"get":{"operationId":"maps_storage_get","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"done"},"jobId":{"type":"null"},"disk":{"type":"object","properties":{"totalMb":{"type":"number"},"usedMb":{"type":"number"},"freeMb":{"type":"number"},"usedPercent":{"type":"number"}},"required":["totalMb","usedMb","freeMb","usedPercent"],"additionalProperties":{}},"folders":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"From the working folder, or ~/ for the home, as POST /v1/maps/{mapId}/storage/free takes it.","x-ploti-description-cli":"From the working folder, or ~/ for the home, as ploti maps storage free takes it.","x-ploti-description-sdk":"From the working folder, or ~/ for the home, as Map.storage.free() takes it."},"mb":{"type":"number"},"modifiedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"files":{"type":"number"},"kept":{"type":"boolean","description":"Ploti's own, which POST /v1/maps/{mapId}/storage/free keeps.","x-ploti-description-cli":"Ploti's own, which ploti maps storage free keeps.","x-ploti-description-sdk":"Ploti's own, which Map.storage.free() keeps."}},"required":["path","mb","modifiedAt","files","kept"],"additionalProperties":{}},"description":"Each folder at the top of the working folder and the home, largest first."},"largestFiles":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"From the working folder, or ~/ for the home, as POST /v1/maps/{mapId}/storage/free takes it.","x-ploti-description-cli":"From the working folder, or ~/ for the home, as ploti maps storage free takes it.","x-ploti-description-sdk":"From the working folder, or ~/ for the home, as Map.storage.free() takes it."},"mb":{"type":"number"},"modifiedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["path","mb","modifiedAt"],"additionalProperties":{}}},"worker":{"type":"object","properties":{"tablesFileMb":{"type":"number"},"spillMb":{"type":"number"},"stagingMb":{"type":"number"},"tables":{"type":"array","items":{"type":"object","properties":{"table":{"type":"string"},"rows":{"type":"number"}},"required":["table","rows"],"additionalProperties":{}}}},"required":["tablesFileMb","spillMb","stagingMb","tables"],"additionalProperties":{},"description":"The worker's tables and the disk their file, spill and staging take."},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","jobId"],"additionalProperties":{},"description":"What fills the sandbox's disk; only a note when it has none."}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"How full the disk of Ploti's sandbox for this map is (not your own computer's) and what fills it: total, used and free; each folder in the home with its size and last change; the largest files; and the worker's tables. Used counts what the work wrote: files that came with the sandbox, like .cache, take no room. Answers while a job runs. Use it to choose what POST /v1/maps/{mapId}/storage/free deletes when the work moves on or a reply says the disk is filling.","summary":"Get the map's disk use","x-ploti-interfaces":["mcp","rest","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","storage","get"],"x-ploti-descriptions":{"cli":"How full the disk of Ploti's sandbox for this map is (not your own computer's) and what fills it: total, used and free; each folder in the home with its size and last change; the largest files; and the worker's tables. Used counts what the work wrote: files that came with the sandbox, like .cache, take no room. Answers while a job runs. Use it to choose what ploti maps storage free deletes when the work moves on or a reply says the disk is filling.","sdk":"How full the disk of Ploti's sandbox for this map is (not your own computer's) and what fills it: total, used and free; each folder in the home with its size and last change; the largest files; and the worker's tables. Used counts what the work wrote: files that came with the sandbox, like .cache, take no room. Answers while a job runs. Use it to choose what Map.storage.free() deletes when the work moves on or a reply says the disk is filling."}}},"/v1/maps/{mapId}/storage/free":{"post":{"operationId":"maps_storage_free","parameters":[{"name":"mapId","in":"path","required":true,"description":"The map, by the id POST /v1/maps returned. Lost it? GET /v1/maps lists the maps you made.","schema":{"type":"string"},"x-ploti-description-cli":"The map, by the id ploti maps create returned. Lost it? ploti maps list lists the maps you made.","x-ploti-description-sdk":"The map, by the id ploti.maps.create() returned. Lost it? ploti.maps.list() lists the maps you made."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","running"],"description":"done, with the step's fields beside this one; or running, when jobId says where to look."},"jobId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"While running, the id to pass to GET /v1/jobs/{jobId} for progress and the result; null once done.","x-ploti-description-cli":"While running, the id to pass to ploti jobs get for progress and the result; null once done.","x-ploti-description-sdk":"While running, the id to pass to ploti.jobs.get() for progress and the result; null once done."},"progress":{"anyOf":[{"type":"object","properties":{"doing":{"type":"string","description":"The call, in a few words."},"phase":{"type":"string","description":"The step it is on, such as reading the file."},"query_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How far the query is, where DuckDB can tell."},"seconds":{"type":"number","description":"Seconds since it started."},"queued":{"type":"boolean","description":"true while it waits its turn; position says where."},"position":{"type":"integer","description":"Its place in the queue, from 1."}},"additionalProperties":{"type":"number"}},{"type":"null"}],"description":"While running: what it is doing and its phase, the part and rows a load has reached, query_percent where DuckDB can tell, and seconds so far; or queued and position while it waits its turn."},"worker":{"anyOf":[{"type":"object","properties":{"memory":{"type":"object","properties":{"usedMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"limitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"duckdbLimitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"sandboxPeakMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"peakMb":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["usedMb","limitMb","duckdbLimitMb","sandboxPeakMb"],"additionalProperties":{}},"disk":{"type":"object","properties":{"usedMb":{"type":"number"},"freeMb":{"type":"number"},"totalMb":{"type":"number"}},"required":["usedMb","freeMb"],"additionalProperties":false},"duckdbFileMb":{"type":"number"},"spillMb":{"type":"number"},"seconds":{"type":"number"},"queuedSeconds":{"type":"number"}},"required":["memory","disk","duckdbFileMb","spillMb"],"additionalProperties":{},"description":"What the worker has and used: memory now, its limit and this call's peak (peakMb), disk, the tables' file, spill, and seconds."},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What to know or do next, including any limit it is nearing."}},"required":["status","jobId"],"additionalProperties":{},"description":"What the step returned, and what the worker used to do it."}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Delete what the work no longer needs from Ploti's sandbox for this map (not your own computer): files or folders by path, and worker tables by name, in one call. Ploti's own files are kept. Returns what was removed, how much room it freed and the disk after, as GET /v1/maps/{mapId}/storage shows it. It cannot be undone; a pull or load can fetch the data again.","summary":"Delete files and tables from the map's disk","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string","minLength":1},"maxItems":200,"description":"Files or folders to delete, relative to the sandbox's home or absolute inside it, e.g. 'data/orange-parcels.parquet' or 'map_images'."},"tables":{"type":"array","items":{"type":"string","pattern":"^[a-z_][a-z0-9_]{0,62}$"},"maxItems":100,"description":"Worker tables to drop, by the names list_tables or GET /v1/maps/{mapId}/storage shows.","x-ploti-description-cli":"Worker tables to drop, by the names ploti maps tables list or ploti maps storage get shows.","x-ploti-description-sdk":"Worker tables to drop, by the names Map.tables.list() or Map.storage.get() shows."}}}}}},"x-ploti-interfaces":["mcp","rest","sdk"],"x-ploti-map":true,"x-ploti-command":["maps","storage","free"],"x-ploti-descriptions":{"cli":"Delete what the work no longer needs from Ploti's sandbox for this map (not your own computer): files or folders by path, and worker tables by name, in one call. Ploti's own files are kept. Returns what was removed, how much room it freed and the disk after, as ploti maps storage get shows it. It cannot be undone; a pull or load can fetch the data again.","sdk":"Delete what the work no longer needs from Ploti's sandbox for this map (not your own computer): files or folders by path, and worker tables by name, in one call. Ploti's own files are kept. Returns what was removed, how much room it freed and the disk after, as Map.storage.get() shows it. It cannot be undone; a pull or load can fetch the data again."}}},"/v1/jobs/{jobId}":{"get":{"operationId":"jobs_get","parameters":[{"name":"jobId","in":"path","required":true,"description":"The jobId a worker call replied with when it returned status running. list_tables also names the job a map's worker is running.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The jobId a worker call replied with when it returned status running. ploti maps tables list also names the job a map's worker is running.","x-ploti-description-sdk":"The jobId a worker call replied with when it returned status running. Map.tables.list() also names the job a map's worker is running."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","running"],"description":"done, with the step's fields beside this one; or running, when jobId says where to look."},"jobId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"While running, the id to pass to GET /v1/jobs/{jobId} for progress and the result; null once done.","x-ploti-description-cli":"While running, the id to pass to ploti jobs get for progress and the result; null once done.","x-ploti-description-sdk":"While running, the id to pass to ploti.jobs.get() for progress and the result; null once done."},"progress":{"anyOf":[{"type":"object","properties":{"doing":{"type":"string","description":"The call, in a few words."},"phase":{"type":"string","description":"The step it is on, such as reading the file."},"query_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How far the query is, where DuckDB can tell."},"seconds":{"type":"number","description":"Seconds since it started."},"queued":{"type":"boolean","description":"true while it waits its turn; position says where."},"position":{"type":"integer","description":"Its place in the queue, from 1."}},"additionalProperties":{"type":"number"}},{"type":"null"}],"description":"While running: what it is doing and its phase, the part and rows a load has reached, query_percent where DuckDB can tell, and seconds so far; or queued and position while it waits its turn."},"worker":{"anyOf":[{"type":"object","properties":{"memory":{"type":"object","properties":{"usedMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"limitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"duckdbLimitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"sandboxPeakMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"peakMb":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["usedMb","limitMb","duckdbLimitMb","sandboxPeakMb"],"additionalProperties":{}},"disk":{"type":"object","properties":{"usedMb":{"type":"number"},"freeMb":{"type":"number"},"totalMb":{"type":"number"}},"required":["usedMb","freeMb"],"additionalProperties":false},"duckdbFileMb":{"type":"number"},"spillMb":{"type":"number"},"seconds":{"type":"number"},"queuedSeconds":{"type":"number"}},"required":["memory","disk","duckdbFileMb","spillMb"],"additionalProperties":{},"description":"What the worker has and used: memory now, its limit and this call's peak (peakMb), disk, the tables' file, spill, and seconds."},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What to know or do next, including any limit it is nearing."}},"required":["status","jobId"],"additionalProperties":{},"description":"While running, its progress and the worker's use; once done, the fields the call that started it returns, as its own tool describes them."}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The result of a worker call that returned a job id, or how far it has got: parts and rows for a load, percent of the query where DuckDB can tell, and the worker's memory and disk. Finds the job by its id, whichever of your maps or calls started it. Waits a little for it, and says if it still runs.","summary":"Get a worker job's progress or result","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["jobs","get"],"x-ploti-descriptions":{"cli":"The result of a worker call that returned a job id, or how far it has got: parts and rows for a load, percent of the query where DuckDB can tell, and the worker's memory and disk. Finds the job by its id, whichever of your maps or calls started it. Waits a little for it, and says if it still runs.","sdk":"The result of a worker call that returned a job id, or how far it has got: parts and rows for a load, percent of the query where DuckDB can tell, and the worker's memory and disk. Finds the job by its id, whichever of your maps or calls started it. Waits a little for it, and says if it still runs."}}},"/v1/jobs/{jobId}/cancel":{"post":{"operationId":"jobs_cancel","parameters":[{"name":"jobId","in":"path","required":true,"description":"The jobId a worker call replied with when it returned status running. list_tables also names the job a map's worker is running.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The jobId a worker call replied with when it returned status running. ploti maps tables list also names the job a map's worker is running.","x-ploti-description-sdk":"The jobId a worker call replied with when it returned status running. Map.tables.list() also names the job a map's worker is running."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","running"],"description":"running when the job was told to stop; done when it had already finished, with nothing to stop."},"jobId":{"type":"string","description":"The job, for GET /v1/jobs/{jobId}.","x-ploti-description-cli":"The job, for ploti jobs get.","x-ploti-description-sdk":"The job, for ploti.jobs.get()."},"worker":{"anyOf":[{"type":"object","properties":{"memory":{"type":"object","properties":{"usedMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"limitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"duckdbLimitMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"sandboxPeakMb":{"anyOf":[{"type":"number"},{"type":"null"}]},"peakMb":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["usedMb","limitMb","duckdbLimitMb","sandboxPeakMb"],"additionalProperties":{}},"disk":{"type":"object","properties":{"usedMb":{"type":"number"},"freeMb":{"type":"number"},"totalMb":{"type":"number"}},"required":["usedMb","freeMb"],"additionalProperties":false},"duckdbFileMb":{"type":"number"},"spillMb":{"type":"number"},"seconds":{"type":"number"},"queuedSeconds":{"type":"number"}},"required":["memory","disk","duckdbFileMb","spillMb"],"additionalProperties":{},"description":"What the worker has and used: memory now, its limit and this call's peak (peakMb), disk, the tables' file, spill, and seconds."},{"type":"null"}]},"note":{"type":"string","description":"What happened and what to do next."}},"required":["status","jobId","note"],"additionalProperties":{},"description":"Whether the job was told to stop."}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Stop a running or waiting worker call, found by its job id whichever of your maps or calls started it. Tables already saved stay, and a load stopped part way keeps nothing. It stops within about 20 seconds; GET /v1/jobs/{jobId} then reports it cancelled.","summary":"Stop a running worker job","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["jobs","cancel"],"x-ploti-descriptions":{"cli":"Stop a running or waiting worker call, found by its job id whichever of your maps or calls started it. Tables already saved stay, and a load stopped part way keeps nothing. It stops within about 20 seconds; ploti jobs get then reports it cancelled.","sdk":"Stop a running or waiting worker call, found by its job id whichever of your maps or calls started it. Tables already saved stay, and a load stopped part way keeps nothing. It stops within about 20 seconds; ploti.jobs.get() then reports it cancelled."}}},"/v1/documents/search":{"post":{"operationId":"documents_search","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["question","text","pattern"]},"scope":{"type":"string","description":"What was searched, as a sentence."},"documentsInScope":{"type":"number","description":"Readable documents the place, ids or view hold."},"documentsNotIndexed":{"type":"number","description":"Documents in scope that are not searchable yet: the search index does not hold their current text, usually because they were released or changed within the last hour. No result or count includes them."},"documentsMatched":{"type":"number","description":"With text or pattern: the documents in scope with a match, across all pages. Left out for a question."},"passagesMatched":{"type":"number","description":"With text or pattern: the passages in scope whose text or heading holds a match, across all pages; a heading counts for each passage under it. Left out for a question."},"returned":{"type":"number","description":"Hits on this page."},"hits":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"datasetTitle":{"type":"string"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section, for GET /v1/documents/{datasetId}/sections/{sectionId}; with memberKey, a section of that collection document, which GET /v1/collections/{datasetId}/documents/{memberKey} opens. Null for a hit in a table or a scanned map.","x-ploti-description-cli":"The section, for ploti documents read; with memberKey, a section of that collection document, which ploti collections documents read opens. Null for a hit in a table or a scanned map.","x-ploti-description-sdk":"The section, for ploti.documents.read(); with memberKey, a section of that collection document, which ploti.collections.documents.read() opens. Null for a hit in a table or a scanned map."},"memberKey":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set when the hit is in a document of a collection: pass datasetId and this member_key to GET /v1/collections/{datasetId}/documents/{memberKey}.","x-ploti-description-cli":"Set when the hit is in a document of a collection: pass datasetId and this member_key to ploti collections documents read.","x-ploti-description-sdk":"Set when the hit is in a document of a collection: pass datasetId and this member_key to ploti.collections.documents.read()."},"sectionTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The headings above the passage, outermost first, joined by ›; for a table, its title last."},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"tableId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set when the hit is in a table: pass it as table_id to GET /v1/documents/{datasetId}/tables/{tableId}, with member_key when memberKey is set. Null for a scanned map.","x-ploti-description-cli":"Set when the hit is in a table: pass it as table_id to ploti documents tables read, with member_key when memberKey is set. Null for a scanned map.","x-ploti-description-sdk":"Set when the hit is in a table: pass it as table_id to ploti.documents.tables.read(), with member_key when memberKey is set. Null for a scanned map."},"match":{"type":"string","description":"The words that matched."},"matchedIn":{"type":"string","enum":["text","heading"],"description":"With text or pattern: whether the match is in the passage's text, or in sectionTitle, the headings above it."},"snippet":{"type":"string","description":"The text around the match; for a match in a heading, the heading."},"text":{"type":"string","description":"The passage."},"foundBy":{"type":"array","items":{"type":"string","enum":["words","meaning"]},"description":"For a question: whether the passage was found by its words, its meaning, or both."},"sectionUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opens the section in Ploti. Null for a collection's document and a scanned map, which have no section to open."}},"required":["datasetId","datasetTitle","sourceUrl","sectionId","sectionTitle","pageLabel","tableId","sectionUrl"],"additionalProperties":false}},"unavailableDatasets":{"type":"array","items":{"type":"object","properties":{"datasetId":{"type":"string"},"reason":{"type":"string","enum":["not_found","outside_coverage","locked"]}},"required":["datasetId","reason"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the results leave out, and what to try next."}},"required":["mode","scope","documentsInScope","documentsNotIndexed","returned","hits","unavailableDatasets","nextCursor","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Search the text documents (zoning codes, ordinances, plans, reports), scanned maps and collections' documents Ploti holds. Pass one of: question, which finds passages by their meaning and their words together; text, which finds the exact words, ignoring case; pattern, which finds a JavaScript regular expression, case-insensitive. Text and pattern search each passage of about 1,500 characters and the headings above it, with whitespace collapsed to single spaces since PDF text spaces words at random; a table's passages are its rows run together with cells joined by \"; \". A match that runs across a passage break is found when it reaches at most 300 characters into each passage, and belongs to the passage it starts in; in a pattern ^ and $ are a passage's start and end, so an anchored pattern never runs across a break. passagesMatched counts the passages whose text or heading holds a match, across every page; a zero means no searchable passage in scope holds it, and documentsNotIndexed counts the documents in scope that are not searchable yet. Without all_matches a page shows the first match in each of up to 5 passages per document, documents in scope order; all_matches lists every match, in reading order. Searches place, datasets, a map's view, or else the whole coverage. Each hit names its document, section or table and a link that opens it in Ploti; GET /v1/documents/{datasetId}/sections/{sectionId} opens the section. To compare across documents or join them to other data, use ploti documents download.","summary":"Search ordinances and documents","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","maxLength":500,"description":"What to find, in words, e.g. 'minimum side setback in R-1'."},"text":{"type":"string","maxLength":200,"description":"Exact words to find, ignoring case, e.g. 'conditional use'."},"pattern":{"type":"string","maxLength":256,"description":"A JavaScript regular expression to find, case-insensitive, e.g. 'data cent(er|re)s?'. Lookahead, lookbehind and backreferences cannot be searched for."},"place":{"type":"string","maxLength":120,"description":"A county, city or state, e.g. 'Orange County, FL', or a place id GET /v1/places gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-cli":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti places list gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location.","x-ploti-description-sdk":"A county, city or state, e.g. 'Orange County, FL', or a place id ploti.places.list() gives (fl-county-orange, fl, fl-counties, us). The place being researched, never the user's own location."},"datasetIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":100,"description":"Documents to search, by dataset id. Wins over place."},"allMatches":{"type":"boolean","description":"With text or pattern: every match in each passage, rather than the first one."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Most hits on this page: 10 by default and at most 25, or with all_matches 25 by default and at most 100."},"cursor":{"type":"string","maxLength":1024,"description":"The nextCursor the previous page returned, to continue the same search."},"mapId":{"type":"string","description":"A map's id. Optional: it makes the map's view the default place to look and puts links in the map."}}}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["documents","search"],"x-ploti-descriptions":{"cli":"Search the text documents (zoning codes, ordinances, plans, reports), scanned maps and collections' documents Ploti holds. Pass one of: question, which finds passages by their meaning and their words together; text, which finds the exact words, ignoring case; pattern, which finds a JavaScript regular expression, case-insensitive. Text and pattern search each passage of about 1,500 characters and the headings above it, with whitespace collapsed to single spaces since PDF text spaces words at random; a table's passages are its rows run together with cells joined by \"; \". A match that runs across a passage break is found when it reaches at most 300 characters into each passage, and belongs to the passage it starts in; in a pattern ^ and $ are a passage's start and end, so an anchored pattern never runs across a break. passagesMatched counts the passages whose text or heading holds a match, across every page; a zero means no searchable passage in scope holds it, and documentsNotIndexed counts the documents in scope that are not searchable yet. Without all_matches a page shows the first match in each of up to 5 passages per document, documents in scope order; all_matches lists every match, in reading order. Searches place, datasets, a map's view, or else the whole coverage. Each hit names its document, section or table and a link that opens it in Ploti; ploti documents read opens the section. To compare across documents or join them to other data, use ploti documents download.","sdk":"Search the text documents (zoning codes, ordinances, plans, reports), scanned maps and collections' documents Ploti holds. Pass one of: question, which finds passages by their meaning and their words together; text, which finds the exact words, ignoring case; pattern, which finds a JavaScript regular expression, case-insensitive. Text and pattern search each passage of about 1,500 characters and the headings above it, with whitespace collapsed to single spaces since PDF text spaces words at random; a table's passages are its rows run together with cells joined by \"; \". A match that runs across a passage break is found when it reaches at most 300 characters into each passage, and belongs to the passage it starts in; in a pattern ^ and $ are a passage's start and end, so an anchored pattern never runs across a break. passagesMatched counts the passages whose text or heading holds a match, across every page; a zero means no searchable passage in scope holds it, and documentsNotIndexed counts the documents in scope that are not searchable yet. Without all_matches a page shows the first match in each of up to 5 passages per document, documents in scope order; all_matches lists every match, in reading order. Searches place, datasets, a map's view, or else the whole coverage. Each hit names its document, section or table and a link that opens it in Ploti; ploti.documents.read() opens the section. To compare across documents or join them to other data, use ploti.documents.download()."}}},"/v1/documents/{datasetId}/sections/{sectionId}":{"get":{"operationId":"documents_read","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The document's dataset id, as a document search or data search gives it.","schema":{"type":"string","minLength":1}},{"name":"sectionId","in":"path","required":true,"description":"The section's sectionId, as POST /v1/documents/search, GET /v1/documents/{datasetId}/outline or a read's previousSection and nextSection give it.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The section's sectionId, as ploti documents search, ploti documents outline or a read's previousSection and nextSection give it.","x-ploti-description-sdk":"The section's sectionId, as ploti.documents.search(), ploti.documents.outline() or a read's previousSection and nextSection give it."},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}},{"name":"mapId","in":"query","required":false,"description":"A map's id. Optional: it makes the map's view the default place to look and puts links in the map.","schema":{"type":"string"}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"datasetTitle":{"type":"string"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"sectionId":{"type":"string"},"title":{"type":"string"},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A short summary of the section, when extraction made one."},"citationLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How to cite the section."},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"text":{"type":"string","description":"This page of the section's text."},"offset":{"type":"number","description":"Where this page starts, in characters."},"chars":{"type":"number","description":"The whole section's length in characters."},"tables":{"type":"array","items":{"type":"object","properties":{"tableId":{"type":"string","description":"Pass as table_id to GET /v1/documents/{datasetId}/tables/{tableId}.","x-ploti-description-cli":"Pass as table_id to ploti documents tables read.","x-ploti-description-sdk":"Pass as table_id to ploti.documents.tables.read()."},"index":{"type":"number","description":"The table's position among the document's tables, from 0."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"rows":{"type":"number","description":"How many rows the table has."},"columns":{"type":"number","description":"Cells in its widest row."},"headers":{"type":"array","items":{"type":"string"},"description":"The first row's non-empty cells, up to eight: usually the column headings."},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section the table sits in; null when it is in none."},"sectionTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"hasRows":{"type":"boolean","description":"False when extraction kept the table's title but not its rows."}},"required":["tableId","index","title","pageLabel","rows","columns","headers","sectionId","sectionTitle","headingPath","hasRows"],"additionalProperties":false}},"previousSection":{"anyOf":[{"type":"object","properties":{"sectionId":{"type":"string"},"title":{"type":"string"},"headingPath":{"type":"array","items":{"type":"string"}}},"required":["sectionId","title","headingPath"],"additionalProperties":false},{"type":"null"}]},"nextSection":{"anyOf":[{"type":"object","properties":{"sectionId":{"type":"string"},"title":{"type":"string"},"headingPath":{"type":"array","items":{"type":"string"}}},"required":["sectionId","title","headingPath"],"additionalProperties":false},{"type":"null"}]},"sectionUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opens the section in Ploti."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."}},"required":["datasetId","datasetTitle","sourceUrl","sectionId","title","headingPath","summary","citationLabel","pageLabel","text","offset","chars","tables","previousSection","nextSection","sectionUrl","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One section of a text document by dataset and section_id: its text, heading path, summary, page and citation labels, and a link that opens it in Ploti. A long section comes back in pages of about 20,000 characters: pass nextCursor as cursor for the next one. The reply lists the section's tables and its neighbors; GET /v1/documents/{datasetId}/tables/{tableId} reads a table and GET /v1/documents/{datasetId}/outline lists every section.","summary":"Read a document section","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["documents","read"],"x-ploti-descriptions":{"cli":"One section of a text document by dataset and section_id: its text, heading path, summary, page and citation labels, and a link that opens it in Ploti. A long section comes back in pages of about 20,000 characters: pass nextCursor as cursor for the next one. The reply lists the section's tables and its neighbors; ploti documents tables read reads a table and ploti documents outline lists every section.","sdk":"One section of a text document by dataset and section_id: its text, heading path, summary, page and citation labels, and a link that opens it in Ploti. A long section comes back in pages of about 20,000 characters: pass nextCursor as cursor for the next one. The reply lists the section's tables and its neighbors; ploti.documents.tables.read() reads a table and ploti.documents.outline() lists every section."}}},"/v1/documents/{datasetId}/outline":{"get":{"operationId":"documents_outline","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The document's dataset id, as a document search or data search gives it.","schema":{"type":"string","minLength":1}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"datasetTitle":{"type":"string"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"sectionCount":{"type":"number","description":"Every section in the document."},"tableCount":{"type":"number","description":"Every table in the document."},"sections":{"type":"array","items":{"type":"object","properties":{"sectionId":{"type":"string","description":"Pass as section_id to GET /v1/documents/{datasetId}/sections/{sectionId}.","x-ploti-description-cli":"Pass as section_id to ploti documents read.","x-ploti-description-sdk":"Pass as section_id to ploti.documents.read()."},"title":{"type":"string"},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"chars":{"type":"number","description":"The section's length in characters."},"tables":{"type":"array","items":{"type":"object","properties":{"tableId":{"type":"string","description":"Pass as table_id to GET /v1/documents/{datasetId}/tables/{tableId}.","x-ploti-description-cli":"Pass as table_id to ploti documents tables read.","x-ploti-description-sdk":"Pass as table_id to ploti.documents.tables.read()."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"rows":{"type":"number","description":"How many rows the table has."}},"required":["tableId","title","rows"],"additionalProperties":false}}},"required":["sectionId","title","headingPath","pageLabel","chars","tables"],"additionalProperties":false}},"tablesOutsideSections":{"type":"array","items":{"type":"object","properties":{"tableId":{"type":"string","description":"Pass as table_id to GET /v1/documents/{datasetId}/tables/{tableId}.","x-ploti-description-cli":"Pass as table_id to ploti documents tables read.","x-ploti-description-sdk":"Pass as table_id to ploti.documents.tables.read()."},"index":{"type":"number","description":"The table's position among the document's tables, from 0."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"rows":{"type":"number","description":"How many rows the table has."},"columns":{"type":"number","description":"Cells in its widest row."},"headers":{"type":"array","items":{"type":"string"},"description":"The first row's non-empty cells, up to eight: usually the column headings."},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section the table sits in; null when it is in none."},"sectionTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"hasRows":{"type":"boolean","description":"False when extraction kept the table's title but not its rows."}},"required":["tableId","index","title","pageLabel","rows","columns","headers","sectionId","sectionTitle","headingPath","hasRows"],"additionalProperties":false},"description":"Tables in no section, listed on the last page only."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."}},"required":["datasetId","datasetTitle","sourceUrl","sectionCount","tableCount","sections","tablesOutsideSections","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"A document's sections and tables, in order: each section's id, title, heading path, page and length, with the tables in it, and on the last page the tables outside any section. GET /v1/documents/{datasetId}/sections/{sectionId} opens a section and GET /v1/documents/{datasetId}/tables/{tableId} a table. A very long document's outline comes back in pages of 500 sections.","summary":"A document's outline","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["documents","outline"],"x-ploti-descriptions":{"cli":"A document's sections and tables, in order: each section's id, title, heading path, page and length, with the tables in it, and on the last page the tables outside any section. ploti documents read opens a section and ploti documents tables read a table. A very long document's outline comes back in pages of 500 sections.","sdk":"A document's sections and tables, in order: each section's id, title, heading path, page and length, with the tables in it, and on the last page the tables outside any section. ploti.documents.read() opens a section and ploti.documents.tables.read() a table. A very long document's outline comes back in pages of 500 sections."}}},"/v1/documents/{datasetId}/tables":{"get":{"operationId":"documents_tables_list","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The document's dataset id, as a document search or data search gives it.","schema":{"type":"string","minLength":1}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"datasetTitle":{"type":"string"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"tableCount":{"type":"number","description":"Every table in the document."},"tables":{"type":"array","items":{"type":"object","properties":{"tableId":{"type":"string","description":"Pass as table_id to GET /v1/documents/{datasetId}/tables/{tableId}.","x-ploti-description-cli":"Pass as table_id to ploti documents tables read.","x-ploti-description-sdk":"Pass as table_id to ploti.documents.tables.read()."},"index":{"type":"number","description":"The table's position among the document's tables, from 0."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"rows":{"type":"number","description":"How many rows the table has."},"columns":{"type":"number","description":"Cells in its widest row."},"headers":{"type":"array","items":{"type":"string"},"description":"The first row's non-empty cells, up to eight: usually the column headings."},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section the table sits in; null when it is in none."},"sectionTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"hasRows":{"type":"boolean","description":"False when extraction kept the table's title but not its rows."}},"required":["tableId","index","title","pageLabel","rows","columns","headers","sectionId","sectionTitle","headingPath","hasRows"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."}},"required":["datasetId","datasetTitle","sourceUrl","tableCount","tables","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The tables found in a document, without their rows: each table's id, title, headers, page, size and section, in pages of 200. GET /v1/documents/{datasetId}/tables/{tableId} reads one.","summary":"A document's tables","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["documents","tables","list"],"x-ploti-descriptions":{"cli":"The tables found in a document, without their rows: each table's id, title, headers, page, size and section, in pages of 200. ploti documents tables read reads one.","sdk":"The tables found in a document, without their rows: each table's id, title, headers, page, size and section, in pages of 200. ploti.documents.tables.read() reads one."}}},"/v1/documents/{datasetId}/tables/{tableId}":{"get":{"operationId":"documents_tables_read","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The document's dataset id, as a document search or data search gives it.","schema":{"type":"string","minLength":1}},{"name":"tableId","in":"path","required":true,"description":"The table's tableId, as GET /v1/documents/{datasetId}/tables, GET /v1/documents/{datasetId}/outline, GET /v1/documents/{datasetId}/sections/{sectionId}, GET /v1/collections/{datasetId}/documents/{memberKey} or a POST /v1/documents/search hit gives it.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The table's tableId, as ploti documents tables list, ploti documents outline, ploti documents read, ploti collections documents read or a ploti documents search hit gives it.","x-ploti-description-sdk":"The table's tableId, as ploti.documents.tables.list(), ploti.documents.outline(), ploti.documents.read(), ploti.collections.documents.read() or a ploti.documents.search() hit gives it."},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}},{"name":"member_key","in":"query","required":false,"description":"For a table in a collection's document: the document's memberKey, as GET /v1/collections/{datasetId}/documents/{memberKey} gives it with the table. Leave it out for a single document.","schema":{"type":"string"},"x-ploti-description-cli":"For a table in a collection's document: the document's memberKey, as ploti collections documents read gives it with the table. Leave it out for a single document.","x-ploti-description-sdk":"For a table in a collection's document: the document's memberKey, as ploti.collections.documents.read() gives it with the table. Leave it out for a single document."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"datasetTitle":{"type":"string"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"table":{"type":"object","properties":{"tableId":{"type":"string","description":"Pass as table_id to GET /v1/documents/{datasetId}/tables/{tableId}.","x-ploti-description-cli":"Pass as table_id to ploti documents tables read.","x-ploti-description-sdk":"Pass as table_id to ploti.documents.tables.read()."},"index":{"type":"number","description":"The table's position among the document's tables, from 0."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"rows":{"type":"number","description":"How many rows the table has."},"columns":{"type":"number","description":"Cells in its widest row."},"headers":{"type":"array","items":{"type":"string"},"description":"The first row's non-empty cells, up to eight: usually the column headings."},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section the table sits in; null when it is in none."},"sectionTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"hasRows":{"type":"boolean","description":"False when extraction kept the table's title but not its rows."}},"required":["tableId","index","title","pageLabel","rows","columns","headers","sectionId","sectionTitle","headingPath","hasRows"],"additionalProperties":false},"offset":{"type":"number","description":"The row this page starts at."},"rows":{"type":"array","items":{"type":"array","items":{"type":"string"}},"description":"This page of rows, each a list of cell text. The table's first row is usually its headings."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set when extraction kept no rows, with where else to look."}},"required":["datasetId","datasetTitle","sourceUrl","table","offset","rows","nextCursor","note"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One table's rows, each an array of its cells' text, with the table's title, headers, page and section. Read it by the table_id GET /v1/documents/{datasetId}/tables or GET /v1/documents/{datasetId}/outline gives. A long table comes back in pages of up to 200 rows: pass nextCursor as cursor for the next one. To join a table to other data, use ploti documents download.","summary":"Read a document's table","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["documents","tables","read"],"x-ploti-descriptions":{"cli":"One table's rows, each an array of its cells' text, with the table's title, headers, page and section. Read it by the table_id ploti documents tables list or ploti documents outline gives. A long table comes back in pages of up to 200 rows: pass nextCursor as cursor for the next one. To join a table to other data, use ploti documents download.","sdk":"One table's rows, each an array of its cells' text, with the table's title, headers, page and section. Read it by the table_id ploti.documents.tables.list() or ploti.documents.outline() gives. A long table comes back in pages of up to 200 rows: pass nextCursor as cursor for the next one. To join a table to other data, use ploti.documents.download()."}}},"/v1/collections/{datasetId}/documents":{"get":{"operationId":"collections_documents_list","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The collection's dataset id, as POST /v1/datasets/search gives it for a collection.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The collection's dataset id, as ploti datasets search gives it for a collection.","x-ploti-description-sdk":"The collection's dataset id, as ploti.datasets.search() gives it for a collection."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"total":{"type":"number","description":"Every document the collection holds."},"documents":{"type":"array","items":{"type":"object","properties":{"memberKey":{"type":"string","description":"Pass as member_key to GET /v1/collections/{datasetId}/documents/{memberKey}.","x-ploti-description-cli":"Pass as member_key to ploti collections documents read.","x-ploti-description-sdk":"Pass as member_key to ploti.collections.documents.read()."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"documentDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The document's date, YYYY-MM-DD."},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"level":{"type":"string","enum":["link","parsed","codified","fields"],"description":"How far Ploti took the document, from link (the source only links to it) to parsed and beyond. hasContent says whether its text can be read."},"absenceReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the document has no stored file, when it has none."},"hasContent":{"type":"boolean","description":"True when its text was read, so a read returns sections."},"pageCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Pages in the document, when known."}},"required":["memberKey","title","documentDate","sourceUrl","level","absenceReason","hasContent","pageCount"],"additionalProperties":false},"description":"The newest 2,000 documents; POST /v1/collections/{datasetId}/documents/search reaches older ones.","x-ploti-description-cli":"The newest 2,000 documents; ploti collections documents search reaches older ones.","x-ploti-description-sdk":"The newest 2,000 documents; ploti.collections.documents.search() reaches older ones."}},"required":["datasetId","total","documents"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"The documents a collection holds (a town's minutes, a series of reports), newest first, each with its member_key, title, date and whether its text was read. A collection is one dataset of many documents: POST /v1/datasets/search marks it with its document count. POST /v1/collections/{datasetId}/documents/search finds words inside them and GET /v1/collections/{datasetId}/documents/{memberKey} opens one.","summary":"List a collection's documents","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["collections","documents","list"],"x-ploti-descriptions":{"cli":"The documents a collection holds (a town's minutes, a series of reports), newest first, each with its member_key, title, date and whether its text was read. A collection is one dataset of many documents: ploti datasets search marks it with its document count. ploti collections documents search finds words inside them and ploti collections documents read opens one.","sdk":"The documents a collection holds (a town's minutes, a series of reports), newest first, each with its member_key, title, date and whether its text was read. A collection is one dataset of many documents: ploti.datasets.search() marks it with its document count. ploti.collections.documents.search() finds words inside them and ploti.collections.documents.read() opens one."}}},"/v1/collections/{datasetId}/documents/search":{"post":{"operationId":"collections_documents_search","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The collection's dataset id, as POST /v1/datasets/search gives it for a collection.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The collection's dataset id, as ploti datasets search gives it for a collection.","x-ploti-description-sdk":"The collection's dataset id, as ploti.datasets.search() gives it for a collection."}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"memberKey":{"type":"string","description":"Pass as member_key to GET /v1/collections/{datasetId}/documents/{memberKey}.","x-ploti-description-cli":"Pass as member_key to ploti collections documents read.","x-ploti-description-sdk":"Pass as member_key to ploti.collections.documents.read()."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"documentDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section that matched; null for a match on the title or in a table."},"tableId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The table that matched: pass it as table_id to GET /v1/documents/{datasetId}/tables/{tableId} with this member_key. Null otherwise.","x-ploti-description-cli":"The table that matched: pass it as table_id to ploti documents tables read with this member_key. Null otherwise.","x-ploti-description-sdk":"The table that matched: pass it as table_id to ploti.documents.tables.read() with this member_key. Null otherwise."},"heading":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The matched section's heading."},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"snippet":{"type":"string","description":"The text around the match, or the title for a title match."}},"required":["memberKey","title","documentDate","sectionId","tableId","heading","pageLabel","snippet"],"additionalProperties":false}}},"required":["datasetId","matches"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"413":{"description":"payload_too_large: the body is over the route's limit: 256 KB, or the larger one a route that takes many ids states.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"415":{"description":"unsupported_media_type: a body was sent without Content-Type: application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"Find words inside a collection's documents, and documents by title, which also finds one with no text. Returns up to 60 matches, title matches first, each with its member_key, title, date and a snippet and, when it is in the text, its section or table, heading and page; GET /v1/collections/{datasetId}/documents/{memberKey} opens the document. A document added within about the last hour may not be found by its text yet.","summary":"Search inside a collection","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200,"description":"Words to find, as the documents would put them, e.g. 'rezoning'. The text matches them as a full-text search or as the exact phrase, and titles as the exact phrase."}},"required":["text"]}}}},"x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["collections","documents","search"],"x-ploti-descriptions":{"cli":"Find words inside a collection's documents, and documents by title, which also finds one with no text. Returns up to 60 matches, title matches first, each with its member_key, title, date and a snippet and, when it is in the text, its section or table, heading and page; ploti collections documents read opens the document. A document added within about the last hour may not be found by its text yet.","sdk":"Find words inside a collection's documents, and documents by title, which also finds one with no text. Returns up to 60 matches, title matches first, each with its member_key, title, date and a snippet and, when it is in the text, its section or table, heading and page; ploti.collections.documents.read() opens the document. A document added within about the last hour may not be found by its text yet."}}},"/v1/collections/{datasetId}/documents/{memberKey}":{"get":{"operationId":"collections_documents_read","parameters":[{"name":"datasetId","in":"path","required":true,"description":"The collection's dataset id, as POST /v1/datasets/search gives it for a collection.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The collection's dataset id, as ploti datasets search gives it for a collection.","x-ploti-description-sdk":"The collection's dataset id, as ploti.datasets.search() gives it for a collection."},{"name":"memberKey","in":"path","required":true,"description":"The document's memberKey, as GET /v1/collections/{datasetId}/documents, POST /v1/collections/{datasetId}/documents/search or a POST /v1/documents/search hit gives it.","schema":{"type":"string","minLength":1},"x-ploti-description-cli":"The document's memberKey, as ploti collections documents list, ploti collections documents search or a ploti documents search hit gives it.","x-ploti-description-sdk":"The document's memberKey, as ploti.collections.documents.list(), ploti.collections.documents.search() or a ploti.documents.search() hit gives it."},{"name":"cursor","in":"query","required":false,"description":"The nextCursor the previous page of this list returned, to continue from it. Leave it out for the first page.","schema":{"type":"string","maxLength":64}}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"datasetId":{"type":"string"},"document":{"type":"object","properties":{"memberKey":{"type":"string","description":"Pass as member_key to GET /v1/collections/{datasetId}/documents/{memberKey}.","x-ploti-description-cli":"Pass as member_key to ploti collections documents read.","x-ploti-description-sdk":"Pass as member_key to ploti.collections.documents.read()."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"documentDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The document's date, YYYY-MM-DD."},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the source publishes the document."},"level":{"type":"string","enum":["link","parsed","codified","fields"],"description":"How far Ploti took the document, from link (the source only links to it) to parsed and beyond. hasContent says whether its text can be read."},"absenceReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the document has no stored file, when it has none."},"hasContent":{"type":"boolean","description":"True when its text was read, so a read returns sections."},"pageCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Pages in the document, when known."}},"required":["memberKey","title","documentDate","sourceUrl","level","absenceReason","hasContent","pageCount"],"additionalProperties":false},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the stored file; null when there is none."},"sectionCount":{"type":"number","description":"Every section in the document."},"tableCount":{"type":"number","description":"Every table in the document."},"sections":{"type":"array","items":{"type":"object","properties":{"sectionId":{"type":"string"},"title":{"type":"string"},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A short summary of the section, when extraction made one."},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"citationLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How to cite the section."},"text":{"type":"string","description":"The section's text on this page."},"offset":{"type":"number","description":"Where this page's text starts in the section, in characters; above 0 when it continues the page before."},"chars":{"type":"number","description":"The whole section's length in characters."}},"required":["sectionId","title","headingPath","summary","pageLabel","citationLabel","text","offset","chars"],"additionalProperties":false},"description":"This page's sections; empty when the document's text was not read."},"tables":{"type":"array","items":{"type":"object","properties":{"tableId":{"type":"string","description":"Pass as table_id to GET /v1/documents/{datasetId}/tables/{tableId}, with this document's member_key.","x-ploti-description-cli":"Pass as table_id to ploti documents tables read, with this document's member_key.","x-ploti-description-sdk":"Pass as table_id to ploti.documents.tables.read(), with this document's member_key."},"index":{"type":"number","description":"The table's position among the document's tables, from 0."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"pageLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page as the document numbers it, to cite."},"rows":{"type":"number","description":"How many rows the table has."},"columns":{"type":"number","description":"Cells in its widest row."},"headers":{"type":"array","items":{"type":"string"},"description":"The first row's non-empty cells, up to eight: usually the column headings."},"sectionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The section the table sits in; null when it is in none."},"sectionTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"headingPath":{"type":"array","items":{"type":"string"},"description":"The headings above this, outermost first."},"hasRows":{"type":"boolean","description":"False when extraction kept the table's title but not its rows."}},"required":["tableId","index","title","pageLabel","rows","columns","headers","sectionId","sectionTitle","headingPath","hasRows"],"additionalProperties":false},"description":"The tables in this page's sections, and on the last page those in none."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as cursor for the next page; null on the last."}},"required":["datasetId","document","fileUrl","sectionCount","tableCount","sections","tables","nextCursor"],"additionalProperties":false}}}},"401":{"description":"The credential is missing or not valid."},"429":{"description":"rate_limited: this credential is over its rate. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}},"500":{"description":"internal: Ploti failed. Retry; if it keeps happening, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code","message","links"]}},"required":["error"]}}}},"default":{"description":"Refused: nothing was done. The code says why and the links say where the person acts on it.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"declinedPlaces":{"type":"array","items":{"type":"string"}},"retryAfterSeconds":{"type":"integer"}},"required":["code","message","links"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"ref":"Refusal"}}}}},"description":"One document of a collection by member_key: its record (title, date, level, page count), a link to the stored file, and its text in sections, each with the page label and citation to quote, a page of about 20,000 characters at a time: pass nextCursor as cursor for the next. Each page lists the tables in its sections, and the last page those in none; GET /v1/documents/{datasetId}/tables/{tableId} with the member_key reads a table's rows. A document whose text was not read has no sections. GET /v1/collections/{datasetId}/documents and POST /v1/collections/{datasetId}/documents/search give member keys.","summary":"Read a collection's document","x-ploti-interfaces":["mcp","rest","cli","sdk"],"x-ploti-map":false,"x-ploti-command":["collections","documents","read"],"x-ploti-descriptions":{"cli":"One document of a collection by member_key: its record (title, date, level, page count), a link to the stored file, and its text in sections, each with the page label and citation to quote, a page of about 20,000 characters at a time: pass nextCursor as cursor for the next. Each page lists the tables in its sections, and the last page those in none; ploti documents tables read with the member_key reads a table's rows. A document whose text was not read has no sections. ploti collections documents list and ploti collections documents search give member keys.","sdk":"One document of a collection by member_key: its record (title, date, level, page count), a link to the stored file, and its text in sections, each with the page label and citation to quote, a page of about 20,000 characters at a time: pass nextCursor as cursor for the next. Each page lists the tables in its sections, and the last page those in none; ploti.documents.tables.read() with the member_key reads a table's rows. A document whose text was not read has no sections. ploti.collections.documents.list() and ploti.collections.documents.search() give member keys."}}}}}