---
title: "Add members to an org unit"
method: POST
path: "/v2/org-units/{orgUnitId}/members"
tags: ["Org units"]
---

# Add members to an org unit

`POST /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:write`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/org-units/:orgUnitId/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Add one or more members to an org unit.

**Validation:**
- All members must exist and be in your organization (returns 400 "Invalid member" otherwise)
- Maximum 5 members per request; duplicates are removed

**Behavior:** Idempotent — members already in the unit are ignored.

**Rate limit:** 1 request per minute per bot, shared with the remove-members endpoint
(returns 429 if exceeded).

**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

## Headers

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

## Request body

- OrgUnitMemberAddRequest
  - `memberIds` string[], required: Member IDs to add (max 5). Must be in your organization. Duplicates are removed.

## Response `200`

Members added successfully

- OrgUnitMemberUpdateResponse
  - `id` string, uuid: The org unit ID
  - `memberIds` string[]: Updated member profile IDs in the org unit (bot members use the `b@<uuid>` form)

## Other responses

- `400`: Bad request - invalid input
- `401`: Unauthorized - invalid or missing API token
- `404`: Resource not found
- `429`: Rate limit exceeded (1 request per minute per bot, shared with remove members)
- `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)
