---
title: "Create a group"
method: POST
path: "/v1/connections/{connection}/groups"
tags: ["Groups"]
---

# Create a group

`POST /v1/connections/{connection}/groups`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/connections/{connection}/groups`
- Auth: HTTP bearer

Creates a WhatsApp group with this number as its owner. Everyone added counts against the member-add guardrail: at most 20 people per connection per hour, because adding people who did not ask to be added is how numbers get reported. Paid plans.

## Path parameters

- `connection` string, required

## Request body

- object
  - `name` string, required
  - `participants` string[], required

## Response `201`

The new group, with its members.

## Other responses

- `402`: Not on this plan.
- `429`: Over the member-add guardrail for this hour.

---

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