---
title: "List org unit members"
method: GET
path: "/v2/org-units/{orgUnitId}/members"
tags: ["Org units"]
---

# List org unit members

`GET /v2/org-units/{orgUnitId}/members`

## Request

- Base URL: `https://api.zenzap.co`
- URL: `https://api.zenzap.co/v2/org-units/{orgUnitId}/members`
- Auth: one of:
  - HTTP bearer and API key in header `X-Signature`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.zenzap.co/oauth/token` scopes: `org_unit:read`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/org-units/:orgUnitId/members/get.ts> (a function with typed inputs; its response is checked against the schema)

List the member IDs of an org unit, paginated. For full member profiles, look the IDs up
via `GET /v2/members`.

**Org-unit restriction:** If your organization restricts communication to within org units,
your bot must be a member of the org unit; otherwise a 404 is returned. A bot that does not
belong to any org unit cannot access any of them (every org unit returns 404).

## Path parameters

- `orgUnitId` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string

## Headers

- `X-Signature` string
- `X-Timestamp` integer

## Response `200`

Members retrieved successfully

- OrgUnitMembersResponse
  - `memberIds` string[]: Member profile IDs in the org unit (bot members use the `b@<uuid>` form)
  - `nextCursor` string, nullable: Opaque cursor for the next page, or null when there are no more results
  - `hasMore` boolean: Whether more members are available

## Other responses

- `401`: Unauthorized - invalid or missing API token
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api.md) - [All operations](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/revisions/37faae2c2036?raw)
