Locations
Returns a paginated list of physical locations configured in the platform
Returns a paginated list of physical locations configured in the platform.
GET
https://example.thoughtindustries.com/incoming/v2/locationsExample request
curl "https://example.thoughtindustries.com/incoming/v2/locations" \
-H 'Authorization: Bearer YOUR_API_KEY'Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
page | integer | No | query | Page number to retrieve in the paginated result set. |
Example response
{
"data": {
"APILocations": {
"pageInfo": {
"perPage": 0,
"currentPage": 0,
"total": 0,
"hasMore": true
},
"locations": [
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"room": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"timeZone": "string"
}
]
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo | Pagination metadata for the result set. |
pageInfo.perPage | integer | Number of locations returned per page. |
pageInfo.currentPage | integer | The current page number in the result set. |
pageInfo.total | integer | Total number of locations across all pages. |
pageInfo.hasMore | boolean | Indicates whether additional pages of results are available. |
locations | Location[] | Array of location objects returned for the current page. |
locations.id | uuid | Unique identifier for the location. |
locations.name | string | Display name of the location. |
locations.room | string | Room or suite designation within the location. |
locations.address1 | string | Primary street address line. |
locations.address2 | string | Secondary address line (e.g., suite or floor number). |
locations.city | string | City where the location resides. |
locations.state | string | State or province where the location resides. |
locations.zipCode | string | Postal or ZIP code for the location. |
locations.country | string | Country where the location resides. |
locations.timeZone | string | IANA time zone identifier for the location (e.g., America/New_York). |