---
title: "GET /v1/insights/people/{userId}"
description: "GET /v1/insights/people/{userId} returns one person’s profile and attendance statistics, the same figures as their row in People insights."
url: https://help.officelycrew.com/developers/v1-insights-person
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/v1-insights-people
  - https://help.officelycrew.com/developers/v1-insights-attendance
  - https://help.officelycrew.com/developers/v1-users
---
# GET /v1/insights/people/{userId}

> **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 one person’s profile and attendance statistics: the same figures as a row of [People insights](https://help.officelycrew.com/developers/v1-insights-people).

Archived people can be read here by ID. A known person with no bookings gets zero statistics. `officeIds` narrows which bookings count; it doesn’t limit which person you can read. For dates by month, use [One person’s attendance](https://help.officelycrew.com/developers/v1-insights-attendance).

**Rate limit:** 5 requests a minute (standard 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/people/{userId}
```

One person:

```sh
curl "https://api.officelycrew.com/v1/insights/people/usr_alex?referenceDate=2026-10-15" \
  -H "Authorization: Bearer $OFFICELY_API_TOKEN"
```

### Path parameters

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `userId` | string | ✓ | — | The person’s `id` from `GET /v1/users`. |

### Query parameters

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `officeIds` | string[] | — | — | Only count bookings in these offices. 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. `YYYY-MM-DD`. |

## 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 result. |
| └ `user` | object | The person. |
| └ `user.id` | string | Person ID. Use it in paths and `userIds`. |
| └ `user.platform` | string | The chat platform the workspace uses. One of: `slack`, `ms_teams`. |
| └ `user.platformUserId` | string | The person’s user ID on the chat platform. Older records can differ from `id`: use `id` in paths and filters. |
| └ `user.name` | string | Display name. |
| └ `user.email` | string \| null | Email address, or `null`. |
| └ `user.avatarUrl` | string \| null | Profile picture, or `null`. |
| └ `user.homeOfficeId` | string \| null | The person’s first configured office, or `null`. |
| └ `user.teamIds` | string[] | Teams the person is in now. |
| └ `user.isOfficelyUser` | boolean | Whether the person has onboarded. |
| └ `user.state` | string | Whether the person is active, archived or deactivated. One of: `active`, `archived`, `deactivated`. |
| └ `user.invitedAt` | string (date-time) \| null | When the person was invited, or `null`. |
| └ `user.onboardedAt` | string (date-time) \| null | When the person onboarded, or `null`. |
| └ `attendanceStats` | object | Booking-based attendance, anchored to `referenceDate`. |
| └ `attendanceStats.daysInThisWeek` | integer | Office days this week, including days booked up to Sunday. |
| └ `attendanceStats.currentWeekOfficeDays` | string[] | Weekdays booked this week. Each one of: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. |
| └ `attendanceStats.fourWeekRolling` | integer | Office days in the four completed weeks before `referenceDate`. |
| └ `attendanceStats.fourWeekAverage` | number | Usual four-week total, from up to 26 completed weeks. The week someone joined counts only if they joined on its Monday. `0` with fewer than four. |
| └ `attendanceStats.fourWeekPercentageChanged` | number | `fourWeekRolling` against `fourWeekAverage`, in %. `0` when the average is 0. |
| └ `attendanceStats.regularWeekdays` | string[] | The weekdays the person is usually in. Each one of: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. |
| └ `attendanceStats.weeklyTotals[]` | object[] | This week and up to 26 weeks before it. |
| └ `attendanceStats.weeklyTotals[].weekStarting` | string (date) | Monday of the week. |
| └ `attendanceStats.weeklyTotals[].bookedDays` | integer | Days booked. A date at two offices counts once. |
| └ `attendanceStats.sixMonthTrend[]` | object[] | The last six calendar months, this month included, oldest first. |
| └ `attendanceStats.sixMonthTrend[].from` | string (date) | First day of the month. |
| └ `attendanceStats.sixMonthTrend[].to` | string (date) | Last day of the month. |
| └ `attendanceStats.sixMonthTrend[].bookedDays` | integer | Days booked. A date at two offices counts once. |
| `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. |

### Response headers

| Header | Description |
| --- | --- |
| `Cache-Control` | Always `no-store`. |
| `X-Request-Id` | ID of this request. Quote it when you contact support. |

## Example response

A synthetic example from the contract, [`/openapi.json`](https://api.officelycrew.com/openapi.json). Lists longer than 2 items are cut to their first 2 here; the contract has the full example.

```json
{
  "data": {
    "user": {
      "id": "usr_alex",
      "platform": "slack",
      "platformUserId": "usr_alex",
      "name": "Alex Morgan",
      "email": "alex@example.com",
      "avatarUrl": null,
      "homeOfficeId": "office_london",
      "teamIds": [
        "team_product"
      ],
      "isOfficelyUser": true,
      "state": "active",
      "invitedAt": "2026-09-13T10:00:00Z",
      "onboardedAt": "2026-09-14T09:00:00Z"
    },
    "attendanceStats": {
      "daysInThisWeek": 2,
      "currentWeekOfficeDays": [
        "Monday",
        "Thursday"
      ],
      "fourWeekRolling": 8,
      "fourWeekAverage": 8,
      "fourWeekPercentageChanged": 0,
      "regularWeekdays": [
        "Monday",
        "Thursday"
      ],
      "weeklyTotals": [
        {
          "weekStarting": "2026-09-14",
          "bookedDays": 2
        },
        {
          "weekStarting": "2026-09-21",
          "bookedDays": 2
        }
      ],
      "sixMonthTrend": [
        {
          "from": "2026-05-01",
          "to": "2026-05-31",
          "bookedDays": 0
        },
        {
          "from": "2026-06-01",
          "to": "2026-06-30",
          "bookedDays": 0
        }
      ]
    }
  },
  "meta": {
    "generatedAt": "2026-10-15T12:00:00Z",
    "referenceDate": "2026-10-15",
    "selection": {
      "officeIds": [],
      "teamIds": [],
      "userIds": []
    }
  }
}
```

## 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. |
| 401 | `UNAUTHORIZED` | The token is missing, invalid or revoked. |
| 403 | `FORBIDDEN` | The request isn’t allowed. |
| 404 | `NOT_FOUND` | The person, or 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. |
