Labels
Label Chat
POST
/api/v1/labels/chatAdd a label to a chat, or remove it.
Parameters
- ChatstringRequired
The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us).
- LabelIDstringRequired
The label id (a whole number as text). You choose the ids.
- LabeledbooleanRequired
true adds the label, false removes it.
| Name | Type | Required | Description |
|---|---|---|---|
| Chat | string | Yes | The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us). |
| LabelID | string | Yes | The label id (a whole number as text). You choose the ids. |
| Labeled | boolean | Yes | true adds the label, false removes it. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/labels/chat" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Chat": "[email protected]",
"LabelID": "7",
"Labeled": true
}'