GET /v1/teams
Returns teams with their current members and managers, sorted by name and then ID.
Membership is current: don’t read it as who was in a team on a past booking date. Member IDs can include people that GET /v1/users leaves out by default, such as people who haven’t onboarded.
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.
Request
Section titled “Request”GET https://api.officelycrew.com/v1/teamsOne team:
curl "https://api.officelycrew.com/v1/teams?teamIds=team_product" \ -H "Authorization: Bearer $OFFICELY_API_TOKEN"Query parameters
Section titled “Query parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
teamIds |
string[] | — | — | Only these teams. Up to 20 IDs. Comma-separated. |
referenceDate |
date | — | — | The day the report is calculated from. Defaults to today (UTC). Can’t be in the future. Repeat it on cursor requests. YYYY-MM-DD. |
limit |
integer | — | 100 |
Rows per page. 1 to 500. |
cursor |
string | — | — | meta.page.nextCursor from the previous page. Send it with the same other parameters. Up to 4096 characters. |
Response
Section titled “Response”200 with { "data": [...], "meta" }. Every listed field is always present. A value that is unavailable or doesn’t apply is null.
| Field | Type | Description |
|---|---|---|
data[] |
object[] | The results, one per row. |
└ id |
string | Stable ID in this workspace. |
└ name |
string | Display name. |
└ memberIds |
string[] | Current members. Can include people that GET /v1/users leaves out by default. |
└ managerIds |
string[] | Current team managers. |
meta |
object | How the request was read. |
└ generatedAt |
string (date-time) | When the response was generated, not how fresh every record is. |
└ referenceDate |
string (date) | The reference date used. Repeat it on cursor requests. |
└ selection |
object | The filters you sent, as IDs. An empty array means that filter wasn’t sent. |
└ selection.officeIds |
string[] | The officeIds you sent. |
└ selection.teamIds |
string[] | The teamIds you sent. |
└ selection.userIds |
string[] | The userIds you sent. |
└ page |
object | Paging. See Pagination. |
└ page.limit |
integer | Page size used. |
└ page.nextCursor |
string | null | Send as cursor to get the next page. null on the last page. |
└ page.totalCount |
integer | Rows matching the query, across all pages. |
Response headers
Section titled “Response headers”| Header | Description |
|---|---|
Cache-Control |
Always no-store. |
X-Request-Id |
ID of this request. Quote it when you contact support. |
Example response
Section titled “Example response”A synthetic example from the contract, /openapi.json.
{ "data": [ { "id": "team_product", "name": "Product", "memberIds": [ "usr_alex" ], "managerIds": [ "usr_alex" ] } ], "meta": { "generatedAt": "2026-10-15T12:00:00Z", "referenceDate": "2026-10-15", "selection": { "officeIds": [], "teamIds": [], "userIds": [] }, "page": { "limit": 100, "nextCursor": null, "totalCount": 1 } }}Errors
Section titled “Errors”Errors are JSON: { "error": { "code", "message" } }. Branch on code, and see Errors for every code.
| HTTP | Code | When |
|---|---|---|
| 400 | INVALID_QUERY |
A parameter is missing, invalid, repeated or unknown. |
| 400 | INVALID_CURSOR |
The cursor is invalid or doesn’t match the query. |
| 401 | UNAUTHORIZED |
The token is missing, invalid or revoked. |
| 403 | FORBIDDEN |
The request isn’t allowed. |
| 404 | NOT_FOUND |
An ID in a filter isn’t in this workspace. |
| 405 | METHOD_NOT_ALLOWED |
Only GET is supported. |
| 422 | — | The query is valid but can’t be fulfilled. The code says why. |
| 429 | RATE_LIMITED |
Over the rate limit. Wait for the seconds in Retry-After. |
| 500, 502, 503 | INTERNAL_ERROR, BAD_GATEWAY, SERVICE_UNAVAILABLE |
Something went wrong on our side. Retry later, and quote X-Request-Id if it keeps happening. |
Related
Still need help? Chat to our support team.
Contact support