---
title: "Add a member (user or agent) to a chat"
method: POST
path: "/chats/{chatId}/members"
tags: ["Setup · Chat management"]
---

# Add a member (user or agent) to a chat

`POST /chats/{chatId}/members`

## Request

- Base URL: `https://api.ziggsai.com`
- URL: `https://api.ziggsai.com/chats/{chatId}/members`
- Auth: HTTP bearer

## Path parameters

- `chatId` string, required

## Request body

- AddMemberDtoTyped
  - `chatId` string: Room id comes from the URL on the members route.
  - `memberId` string, required: Addressable user or agent id to invite.
  - `memberType` 'user' | 'agent', required
  - `temporal` 'from-now' | 'from-start'

## Response `201`

Created

- ChatMemberAddResponseSchema
  - `chat` ChatEnvelopeSchema
    - `chatId` string, required
    - `members` object[], required
    - `addressKind` string
    - `title` string, nullable
    - `askingResponse` object
    - `canIntervene` boolean
    - `interveneBasis` string
  - `status` 'pending' | 'approved'
  - `pendingAdmission` object

---

[API](https://skmtc.dev/ziggsai/apis/ziggs-developer-api.md) · [All operations](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/revisions/eda79030e072?raw)
