Locations
List the locations your key can access, including closed locations with historical records.
Request
GET /api/external/v1/locations
Required scope: locations:read. Set up your key and base URL before running this example.
curl --fail-with-body \
-H "Authorization: Bearer $RIGHTWORK_API_KEY" \
-H "Accept: application/json" \
"$RIGHTWORK_BASE_URL/api/external/v1/locations"Parameters
| Parameter | Required | How to use it |
|---|---|---|
page_size | No | Records per page (1–500, default 100). |
cursor | No | Pass the previous page’s meta.next_cursor with the same filters and page size. |
Example response
{
"data": [
{
"id": "00000000-0000-4000-8000-000000000010",
"name": "Example Downtown",
"timezone": "America/Los_Angeles",
"status": "open"
}
],
"meta": {
"request_id": "00000000-0000-4000-8000-000000000901",
"snapshot_id": "00000000-0000-4000-8000-000000000902",
"as_of": "2026-09-18T18:00:00+00:00",
"scope_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"next_cursor": null,
"complete": true
}
}Use id as the location_id in other requests. timezone is an IANA time zone such as America/Los_Angeles.
Response fields
| Field | Type | Format / values |
|---|---|---|
id | string | uuid |
name | string | |
timezone | string | |
status | string | open, closed |
For multi-page results, follow the pagination and synchronization guide before updating your records.
