---
title: "Remove members from a topic"
method: DELETE
path: "/v2/topics/{topicId}/members"
tags: ["Topics (group chats/channels/conversations)"]
---

# Remove members from a topic

`DELETE /v2/topics/{topicId}/members`

## Request

- Base URL: `https://api.zenzap.co`
- URL: `https://api.zenzap.co/v2/topics/{topicId}/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: `channel:write`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/topics/:topicId/members/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove one or more members from an existing topic.

**Authorization:** Your API key bot must be a member of the topic (returns 404 if not).

**Behavior:** Members not currently in the topic are silently ignored. If none of the provided members are in the topic, no removal occurs and the current topic state is returned.

**Limits:** Maximum 5 members per request. Duplicate member IDs are automatically removed.

**Note:** The bot can remove itself from the topic if needed.

## Path parameters

- `topicId` string, uuid, required

## Headers

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

## Request body

- TopicMemberRemoveRequest
  - `memberIds` string[], required: Array of member IDs to remove from the topic (max 5). Members not in the topic are silently ignored. Duplicates are automatically removed.

## Response `200`

Members removed successfully

- TopicMemberUpdateResponse
  - `id` string, uuid: The topic ID
  - `memberIds` string[]: Updated array of member IDs in the topic
  - `updatedAt` integer: Unix timestamp in milliseconds when the topic was updated

## Other responses

- `400`: Bad request - invalid input
- `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)
