Passer au contenu principal
POST
Créer une étiquette WhatsApp

Endpoint

/v1/whatsapp/labels

Body Parameters

accountId
string
requis
Identifiant du compte WhatsApp.
name
string
requis
Nom de l’étiquette. Si une étiquette active porte déjà ce nom, elle est retournée au lieu d’être recréée.
color
integer
Identifiant de couleur WhatsApp. La valeur par défaut est 0.
labelId
string
Identifiant personnalisé. WaChap génère un identifiant unique lorsqu’il est omis.

Exemple

Réponse

Autorisations

Authorization
string
header
requis

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

Corps

application/json
accountId
string
requis
name
string
requis
color
integer
défaut:0
labelId
string

Réponse

Étiquette créée ou existante

success
boolean
label
object