Groups

Create a community

Creates a WhatsApp community (a parent group). The linked announcement group is created automatically by the server. Participants are optional, so a community can be created solo.

POST
/communities

Creates a WhatsApp community (a parent group). The linked announcement group is created automatically by the server. Participants are optional, so a community can be created solo.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Payload for creating a WhatsApp community (parent group).

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/communities" \  -H "Content-Type: application/json" \  -d '{    "name": "Comunidade WUTS",    "participants": []  }'
{  "success": true,  "community": {}}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}