POST
Add Label Association
Assign label to chat or message.
API endpoint
https://waclient.com/api/add_label_associationExample:
curl -X POST \
'https://waclient.com/api/add_label_association' \
-H 'Content-Type: application/json' \
--data '{
"label_id": "1750000000000",
"chat_id": "20100981XXXX",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"associated": true,
"label_id": "1750000000000",
"chat_id": "[email protected]",
"message_id": null,
"local_only": true
}
}| Parameter | Description |
|---|---|
| label_id | Label identifier |
| chat_id | Chat JID or phone number |
| message_id | Optional — associate a specific message (Optional) |
| instance_id | Your instance ID |
| access_token | Your access token |