Skip to main content
https://.thoughtindustries.com

Locations

Returns a paginated list of physical locations configured in the platform

Returns a paginated list of physical locations configured in the platform.

GEThttps://example.thoughtindustries.com/incoming/v2/locations

Example request

curl "https://example.thoughtindustries.com/incoming/v2/locations" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
pageintegerNoqueryPage 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

FieldTypeDescription
pageInfoPageInfoPagination metadata for the result set.
pageInfo.perPageintegerNumber of locations returned per page.
pageInfo.currentPageintegerThe current page number in the result set.
pageInfo.totalintegerTotal number of locations across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
locationsLocation[]Array of location objects returned for the current page.
locations.iduuidUnique identifier for the location.
locations.namestringDisplay name of the location.
locations.roomstringRoom or suite designation within the location.
locations.address1stringPrimary street address line.
locations.address2stringSecondary address line (e.g., suite or floor number).
locations.citystringCity where the location resides.
locations.statestringState or province where the location resides.
locations.zipCodestringPostal or ZIP code for the location.
locations.countrystringCountry where the location resides.
locations.timeZonestringIANA time zone identifier for the location (e.g., America/New_York).