POST
/
groups
/
create
curl --request POST \
  --url https://api.crunchz.app/api/groups/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Group Name",
  "participants": [
    {
      "id": "xxx@s.whatsapp.net"
    }
  ],
  "tag_ids": [
    "tag-uuid-1",
    "tag-uuid-2"
  ]
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "restricted": true,
    "created_at": "<string>",
    "is_community": true,
    "actions": {
      "join_approval": true,
      "can_add_member": true
    },
    "participant_count": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

CreateGroupResource

The response is of type object.