Creates a new label with the specified name and color.
cURL
curl --request POST \ --url https://api.wappfy.io/api/instances/{instanceId}/labels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "VIP Client", "color": 1 } '
{ "id": "1", "name": "VIP Clients", "color": 1 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The WhatsApp instance UUID
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
"VIP Client"
1
Label created
Label ID
"1"
Label name
"VIP Clients"
Label color index
Was this page helpful?