---
title: "create group"
method: POST
path: "/instances/{id}/client/action/create-group"
tags: ["group"]
---

# create group

`POST /instances/{id}/client/action/create-group`

Creates a new group with specified name and participants

## Path parameters

- `id` integer, required

## Request body

- object
  - `groupName` string, required — Name of the group to be created
  - `groupParticipants` string[], required — Array of contact IDs to add to the group

## Response `200`

Group created successfully

- object
  - `status` 'success' | 'error'
  - `data` object
    - `gid` object — Group ID details
      - `server` string — group server identifier
      - `user` string — Unique group identifier
      - `_serialized` string — Complete group ID in serialized format
    - `missingParticipants` string[] — List of participants that could not be added to the group
  - `links` object
    - `self` string — API endpoint URL

## Other responses

- `401` — Unauthorized — invalid or missing bearer token
- `403` — Forbidden — insufficient permissions or account blocked
- `404` — Not found — instance does not exist or does not belong to you
- `409` — Conflict — instance is not ready
- `422` — Validation error — invalid or missing request parameters
- `429` — Too many requests — rate limit exceeded

---

[API](https://skmtc.net/waapi/apis/waapi-api.md) · [All operations](https://skmtc.net/waapi/apis/waapi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waapi/waapi-api/versions/1e2cc7c12090/schema)
