# Create a group

Create a new WhatsApp group with a name, description, and initial participants.

Endpoint: POST /payless4messaging-service/WhatsApp/api/v1/groups
Version: 3.0.0
Security: apikeyAuth

## Security:

  - `apikeyAuth` (unknown)
    apiKey in header Authorization

## Request fields (application/json):

  - `id` (string)
    Example: c0d1e2f3-a4b5-6789-c0d1-e2f3a4b56789

  - `groupJID` (string)
    Example: 120363045678901234@g.us

  - `groupName` (string)
    Example: Team Chat

  - `groupTopic` (string)
    Example: Project discussions and updates

  - `number` (string)
    WhatsApp number that owns this group.
    Example: +27123456789

  - `countryCode` (string)
    Example: ZA

  - `locked` (boolean)
    Example: false

  - `announce` (boolean)
    Example: false

  - `memberAddMode` (string)
    Example: all_member_add

  - `pinned` (boolean)
    Example: false

  - `archive` (boolean)
    Example: false

  - `joinNodeId` (string | null)
    ID of the flow/node to trigger when a member joins.
    Example: null

  - `leaveNodeId` (string | null)
    ID of the flow/node to trigger when a member leaves.
    Example: null

  - `clientRef` (string)
    Client reference (set by server).
    Example: Growthpoint

  - `inviteLink` (string | null)
    Group invite link (read-only).
    Example: https://chat.whatsapp.com/AbCdEfGhIjKlMn

  - `createdBy` (string | null)
    Example: +27123456789

  - `createdAt` (string | null)
    Example: 2026-01-10T08:00:00Z

  - `updatedBy` (string | null)
    Example: +27123456789

  - `updatedAt` (string | null)
    Example: 2026-01-15T10:30:00Z

  - `resetAt` (string | null)
    Example: null

  - `resetBy` (string | null)
    Example: null

## Response 200:

  - `200` (unknown)
    The newly created WhatsApp group object

## Response 200 fields (application/json):

  - `id` (string)
    Example: c0d1e2f3-a4b5-6789-c0d1-e2f3a4b56789

  - `groupJID` (string)
    Example: 120363045678901234@g.us

  - `groupName` (string)
    Example: Team Chat

  - `groupTopic` (string)
    Example: Project discussions and updates

  - `number` (string)
    WhatsApp number that owns this group.
    Example: +27123456789

  - `countryCode` (string)
    Example: ZA

  - `locked` (boolean)
    Example: false

  - `announce` (boolean)
    Example: false

  - `memberAddMode` (string)
    Example: all_member_add

  - `pinned` (boolean)
    Example: false

  - `archive` (boolean)
    Example: false

  - `joinNodeId` (string | null)
    ID of the flow/node to trigger when a member joins.
    Example: null

  - `leaveNodeId` (string | null)
    ID of the flow/node to trigger when a member leaves.
    Example: null

  - `clientRef` (string)
    Client reference (set by server).
    Example: Growthpoint

  - `inviteLink` (string | null)
    Group invite link (read-only).
    Example: https://chat.whatsapp.com/AbCdEfGhIjKlMn

  - `createdBy` (string | null)
    Example: +27123456789

  - `createdAt` (string | null)
    Example: 2026-01-10T08:00:00Z

  - `updatedBy` (string | null)
    Example: +27123456789

  - `updatedAt` (string | null)
    Example: 2026-01-15T10:30:00Z

  - `resetAt` (string | null)
    Example: null

  - `resetBy` (string | null)
    Example: null

