Skip to content

GET /v1/offices

Returns every office in the workspace that owns the token: its ID, name, emoji, time zone and country.

Use it to look up the office IDs that the other endpoints take in officeIds. It isn’t paginated: you get every office in one response, as { "data": [...] } with no meta.

Rate limit: 10 requests a minute (light tier). See Rate limits.

Try it with your token in the interactive docs: select Authorize, paste the token without Bearer, then Try it out.

GET https://api.officelycrew.com/v1/offices

All offices:

Terminal window
curl "https://api.officelycrew.com/v1/offices" \
-H "Authorization: Bearer $OFFICELY_API_TOKEN"

This endpoint takes no parameters.

200 with { "data": [...] }.

Field Type Description
data[] object[] The results, one per row.
└ id string Stable ID in this workspace.
└ name string Display name.
└ emoji string Emoji shown for the office.
└ timezone string IANA time zone, for example Europe/London.
└ country string Country of the office.
Header Description
X-Request-Id ID of this request. Quote it when you contact support.

A synthetic example from the contract, /openapi.json.

{
"data": [
{
"id": "k7Qe2vXbN9pL4tRw8sYcZ",
"name": "London HQ",
"emoji": "🏢",
"timezone": "Europe/London",
"country": "United Kingdom"
}
]
}

Errors are JSON: { "error": { "code", "message" } }. Branch on code, and see Errors for every code.

HTTP Code When
401 UNAUTHORIZED The token is missing, invalid or revoked.
429 RATE_LIMITED Over the rate limit. Wait for the seconds in Retry-After.
Other INTERNAL_ERROR, BAD_GATEWAY, SERVICE_UNAVAILABLE Something went wrong on our side. Retry later, and quote X-Request-Id if it keeps happening.
Did this answer your question?

Still need help? Chat to our support team.

Contact support