Passer au contenu principal
POST
Créer un groupe

Créer un groupe

Créez un nouveau groupe WhatsApp et ajoutez-y immédiatement des participants.

Endpoint

/v1/whatsapp/groups

Headers

Authorization
string
requis
Bearer token avec votre Secret Key (format: Bearer sk_...)

Body Parameters

accountId
string
requis
L’identifiant du compte WhatsApp
groupName
string
requis
Le nom du groupe à créer
participants
array
requis
Liste des numéros de téléphone des participants (format international)

Exemples de requêtes

Exemple de réponse

Notes importantes

  • Les participants doivent être des numéros au format international.
  • Vous serez automatiquement ajouté comme administrateur du groupe.
  • Minimum 1 participant requis (en plus de vous).

Codes d’erreur

Autorisations

Authorization
string
header
requis

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

Corps

application/json
accountId
string
groupName
string
participants
string[]

Réponse

200

OK