Skip to content

List locations

View as Markdown

GET/v1/locationsScope read

Active locations of the organization, to set contact.locationId when you open a request.

200 OK · data[]

Field Type Description
city string City.
code string Stable code. Compare against it in your code.
countryCode string ISO 3166-1 country code.
id integer Unique ID.
name string Name in the language of Accept-Language.
parentId integer Parent location, if any.
path string Full path from the top of the hierarchy.
timezone string IANA time zone.
type string Kind of location, such as office or site.
Example
{
"data": [
{
"id": 2,
"name": "Santo Domingo HQ",
"code": "SDQ-HQ",
"type": "office",
"city": "Santo Domingo",
"countryCode": "DO",
"timezone": "America/Santo_Domingo",
"parentId": 1,
"path": "Dominican Republic / Santo Domingo HQ"
}
]
}

Errors share one shape; see Errors for every key.

Terminal window
curl 'https://api.client.service-desk.goldmaster.io/v1/locations' \
-H "Authorization: Bearer $DUTY_API_KEY"