---
title: "GET /v1/insights/work-statuses"
description: "GET /v1/insights/work-statuses returns each person’s work status for each day in a date range of up to 366 days, and exports the Bookings CSV."
url: https://help.officelycrew.com/developers/v1-insights-work-statuses
product: developers
product_name: Developers
type: endpoint
platforms: [slack, teams]
private_beta: "The Officely Crew API is in private beta. Want in? [Contact support](/account/contact-support) to ask to join, and we'll turn on API tokens for your workspace. Once it's on, Account Admins see the API token setting under **Account & Billing**."
audience: [developer]
updated: 2026-11-30
verified: 2026-11-30
related:
  - https://help.officelycrew.com/developers/whos-in-this-week
  - https://help.officelycrew.com/developers/csv-exports
  - https://help.officelycrew.com/developers/pagination
  - https://help.officelycrew.com/developers/v1-work-statuses
---
# GET /v1/insights/work-statuses

> **Private beta.** The Officely Crew API is in private beta. Want in? [Contact support](https://help.officelycrew.com/account/contact-support) to ask to join, and we'll turn on API tokens for your workspace. Once it's on, Account Admins see the API token setting under **Account & Billing**.

Returns each person’s status for each day in a date range: office bookings with neighbourhood, extras, guests, notes and check-in, plus remote, leave and other statuses.

One row is a person’s current status on one date; days with no status are left out. Rows are sorted by date, then `user.id`, `type` and `office.id`. Office filters drop office rows at other offices but keep non-office rows, so add `types=office` for office bookings only. Add `format=csv` for the Bookings export.

**Personal data.** Rows include names, emails, notes and guest emails, as the Bookings export does. Store and share them with the same care.

**Rate limit:** 5 requests a minute (standard tier). CSV: 1 a minute (bulk tier). See [Rate limits](https://help.officelycrew.com/developers/rate-limits).

Try it with your token in the [interactive docs](https://api.officelycrew.com/docs): select **Authorize**, paste the token without `Bearer`, then **Try it out**.

## Request

```http
GET https://api.officelycrew.com/v1/insights/work-statuses
```

Office and remote days:

```sh
curl "https://api.officelycrew.com/v1/insights/work-statuses?from=2026-10-01&to=2026-10-15&types=office,remote" \
  -H "Authorization: Bearer $OFFICELY_API_TOKEN"
```

Bookings CSV for September:

```sh
curl "https://api.officelycrew.com/v1/insights/work-statuses?from=2026-09-01&to=2026-09-30&format=csv" \
  -H "Authorization: Bearer $OFFICELY_API_TOKEN"
```

### Query parameters

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `officeIds` | string[] | — | — | Drops office rows at other offices. Non-office rows (remote, leave and so on) stay: add `types=office` for office bookings only. Up to 20 IDs. Comma-separated. |
| `teamIds` | string[] | — | — | Only people currently in one of these teams. Up to 20 IDs. Comma-separated. |
| `userIds` | string[] | — | — | Only these people. Use `id` from `GET /v1/users`, not `platformUserId`. Up to 100 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`. |
| `from` | date | ✓ | — | First date, inclusive. `YYYY-MM-DD`. |
| `to` | date | ✓ | — | Last date, inclusive, on or after `from`. The range can be at most 366 days, and `to` at most 366 days after `referenceDate`. `YYYY-MM-DD`. |
| `types` | string[] | — | — | Only these statuses. `noStatus` can’t be requested. One or more of: `office`, `remote`, `nonWorkingDay`, `offSick`, `annualLeave`, `otherAbsence`, `workTravel`, `clientOffice`. Up to 8 values. Comma-separated. |
| `includeArchived` | boolean | — | `false` | Add archived people. [Slack: A daily sync archives people removed from your workspace, so changes usually show within a day.] |
| `limit` | integer | — | `100` | Rows per page. Not allowed with `format=csv`. 1 to 500. |
| `cursor` | string | — | — | `meta.page.nextCursor` from the previous page. Send it with the same other parameters. Not allowed with `format=csv`. Up to 4096 characters. |
| `format` | string | — | `json` | `csv` returns the whole filtered result as a file, up to 10,000 rows. See [CSV exports](https://help.officelycrew.com/developers/csv-exports). One of: `json`, `csv`. |

### Rules across parameters

- from and to are both required, from ≤ to, at most 366 inclusive days.
- to cannot be more than 366 days after `referenceDate`.
- CSV forbids `cursor` and `limit`. It returns all filtered rows up to 10,000; overflow is 422 `EXPORT_TOO_LARGE`.

## 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. |
| └ `date` | string (date) | Office-local date. |
| └ `weekday` | string | Day of the week of `date`. One of: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. |
| └ `user` | object | The person. |
| └ `user.id` | string | Person ID. Use it in paths and `userIds`. |
| └ `user.name` | string | Display name. |
| └ `user.email` | string \| null | Email address, or `null`. |
| └ `type` | string | Stable status key. Branch on this. One of: `office`, `remote`, `nonWorkingDay`, `offSick`, `annualLeave`, `otherAbsence`, `workTravel`, `clientOffice`. |
| └ `typeName` | string | Your workspace’s label for the status. Workspaces can rename statuses. |
| └ `office` | object \| null | The booked office. `null` unless `type` is `office`. |
| └ `office.id` | string | Stable ID in this workspace. |
| └ `office.name` | string | Display name. |
| └ `neighbourhood` | object \| null | The booked neighbourhood, or `null`. |
| └ `neighbourhood.id` | string | Stable ID in this workspace. |
| └ `neighbourhood.name` | string | Display name. |
| └ `neighbourhood.category` | string \| null | Neighbourhood category, or `null`. |
| └ `extras[]` | object[] | Extras booked for the day, such as a monitor. |
| └ `extras[].id` | string | Stable ID in this workspace. |
| └ `extras[].name` | string | Display name. |
| └ `guestEmails` | string[] | Guests invited for the day. Personal data: handle with care. |
| └ `note` | string | The person’s note for the day. Empty string when there isn’t one. |
| └ `checkIn` | string | Check-in state. `not_enabled` when the office doesn’t use check-in; `not_applicable` for non-office rows. One of: `checked_in`, `not_checked_in`, `not_enabled`, `not_applicable`. |
| `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](https://help.officelycrew.com/developers/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. |
| └ `range` | object | The dates covered, inclusive. |
| └ `range.from` | string (date) | First date of the window. |
| └ `range.to` | string (date) | Last date of the window. |
| └ `range.days` | integer | Number of calendar days, inclusive. |
| └ `types` | string[] | The `types` you sent. Empty when not sent. |
| └ `includeArchived` | boolean | Whether archived people are included. |

### Response headers

| Header | Description |
| --- | --- |
| `Cache-Control` | Always `no-store`. |
| `X-Request-Id` | ID of this request. Quote it when you contact support. |
| `Content-Disposition` | CSV only: `attachment; filename="officely_<report>_<range>.csv"`. |

## Example response

A synthetic example from the contract, [`/openapi.json`](https://api.officelycrew.com/openapi.json).

```json
{
  "data": [
    {
      "date": "2026-10-14",
      "weekday": "Wednesday",
      "user": {
        "id": "usr_alex",
        "name": "Alex Morgan",
        "email": "alex@example.com"
      },
      "type": "remote",
      "typeName": "Working remotely",
      "office": null,
      "neighbourhood": null,
      "extras": [],
      "guestEmails": [],
      "note": "",
      "checkIn": "not_applicable"
    },
    {
      "date": "2026-10-15",
      "weekday": "Thursday",
      "user": {
        "id": "usr_alex",
        "name": "Alex Morgan",
        "email": "alex@example.com"
      },
      "type": "office",
      "typeName": "Office",
      "office": {
        "id": "office_london",
        "name": "London"
      },
      "neighbourhood": {
        "id": "nbh_product",
        "name": "Product",
        "category": "Teams"
      },
      "extras": [
        {
          "id": "extra_monitor",
          "name": "Monitor"
        }
      ],
      "guestEmails": [
        "guest@example.com"
      ],
      "note": "Customer workshop",
      "checkIn": "checked_in"
    }
  ],
  "meta": {
    "generatedAt": "2026-10-15T12:00:00Z",
    "referenceDate": "2026-10-15",
    "selection": {
      "officeIds": [
        "office_london"
      ],
      "teamIds": [],
      "userIds": []
    },
    "page": {
      "limit": 100,
      "nextCursor": null,
      "totalCount": 2
    },
    "range": {
      "from": "2026-10-14",
      "to": "2026-10-15",
      "days": 2
    },
    "types": [],
    "includeArchived": false
  }
}
```

## CSV export

Add `format=csv` for the Bookings export. You get every filtered row in one file, up to 10,000 rows; leave out `cursor` and `limit`. CSV requests have their own limit of 1 a minute per token, shared with the other export. More about [CSV exports](https://help.officelycrew.com/developers/csv-exports).

Save the file under the name the API gives it:

```sh
curl -OJ "https://api.officelycrew.com/v1/insights/work-statuses?from=2026-09-01&to=2026-09-30&format=csv" \
  -H "Authorization: Bearer $OFFICELY_API_TOKEN"
```

### CSV columns

| Column | Example |
| --- | --- |
| Date | `2026-10-15` |
| Name | `Alex Morgan` |
| Email | `alex@example.com` |
| Type | `Office` |
| Office | `London` |
| Neighbourhood | `Product` |
| NeighbourhoodCategory | `Teams` |
| Extras | `Monitor` |
| Guests | `guest@example.com` |
| Notes | `Customer workshop` |
| Checked In | `Yes` |

The synthetic example file from the contract:

```csv
Date,Name,Email,Type,Office,Neighbourhood,NeighbourhoodCategory,Extras,Guests,Notes,Checked In
2026-10-14,Alex Morgan,alex@example.com,Working remotely,,,,,,,
2026-10-15,Alex Morgan,alex@example.com,Office,London,Product,Teams,Monitor,guest@example.com,Customer workshop,Yes
```

## Errors

Errors are JSON: `{ "error": { "code", "message" } }`. Branch on `code`, and see [Errors](https://help.officelycrew.com/developers/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 | `EXPORT_TOO_LARGE` | The CSV would have more than 10,000 rows. Narrow the filters or date range. |
| 422 | `DATE_RANGE_TOO_LARGE` | The date range is longer than the endpoint allows. |
| 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. |
