/ workspaces/ {workspace_id}/ placesList places
Derived from people and confirmed records. Ordered by name. A place's id is stable and opaque. coordinates come from the geocode cache only: a list never geocodes, so a place not geocoded yet has null coordinates.
| Name | In | Required | Description |
|---|---|---|---|
| workspace_id | path | yes | The workspace (project) id. |
| limit | query | no | Page size. Default 25, max 100. |
| cursor | query | no | The next_cursor of the previous page. Opaque. |
| q | query | no | Place name filter (max 200 characters). |
Responses
- 200 A page of places. (PlaceList)
- 401 Missing, malformed, unknown or revoked API key. (ErrorResponse)
- 403 The account has no paid plan. (ErrorResponse)
- 404 The workspace does not exist or is not visible to this key's owner. (ErrorResponse)
- 422 Invalid limit, cursor or q. (ErrorResponse)
- 429 Rate limit exceeded. Wait the number of seconds in Retry-After. (ErrorResponse)
- 500 Unexpected error. Retry later and quote request_id if it persists. (ErrorResponse)
200 response schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Stable, opaque id of the place. Use it with GET .../places/{place_id}."
},
"name": {
"type": "string"
},
"coordinates": {
"anyOf": [
{
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
}
},
"required": [
"lat",
"lng"
]
},
{
"type": "null"
}
],
"description": "From the geocode cache. Null when the place has not been geocoded yet or could not be found."
},
"people": {
"type": "array",
"items": {
"type": "object",
"properties": {
"person_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"context": {
"type": "string"
}
},
"required": [
"person_id",
"context"
]
}
}
},
"required": [
"id",
"name",
"coordinates",
"people"
]
}
},
"next_cursor": {
"description": "Pass as ?cursor to get the next page. Null on the last page.",
"type": [
"string",
"null"
]
}
},
"required": [
"data",
"next_cursor"
]
}