---
title: "Add members to a group chat"
method: POST
path: "/chat/groups/{chatId}/members"
tags: ["Chat"]
---

# Add members to a group chat

`POST /chat/groups/{chatId}/members`

## Request

- Base URL: `https://viral.app/api/v1`
- URL: `https://viral.app/api/v1/chat/groups/{chatId}/members`
- Auth: API key in header `x-api-key`

Adds creators to a `manual` group (`orgCreatorIds`, up to 500). Every id must be an active creator of your organization, or nothing is added (404). Creators who already are members are skipped. Creators not yet invited to the platform join the roster but see the group only once invited (`POST /creators/{id}/invite`); `pendingOrgCreatorIds` names them. The members of `campaign` and `all` groups follow their roster: editing them returns 400 `MANUAL_ONLY`.

## Path parameters

- `chatId` string, required

## Request body

- object
  - `orgCreatorIds` string[], required: Org creator ids (the `id` of `GET /creators` rows), at most 500

## Response `200`

OK

- object
  - `chatId` string, required
  - `memberCount` integer, required: Creators who can read the group: they joined, or hold a pending invitation
  - `pendingMemberCount` integer, required: Creators on the roster who have not been invited to the platform yet
  - `addedOrgCreatorIds` string[], required: The ids this call added; creators who already were members are left out
  - `pendingOrgCreatorIds` string[], required: Added creators not invited to the platform yet: on the roster, but they see the group only once invited

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `404`: 404
- `408`: 408
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/viral/apis/viral-app-api.md) · [All operations](https://skmtc.dev/viral/apis/viral-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/viral/apis/viral-app-api/revisions/31e97fa79ef1?raw)
