POST
Subscribe to Presence
Subscribe to live presence updates for a contact.
API endpoint
https://waclient.com/api/subscribe_presenceExample:
curl -X POST \
'https://waclient.com/api/subscribe_presence' \
-H 'Content-Type: application/json' \
--data '{
"chat_id": "[email protected]",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"chat_id": "[email protected]",
"subscribed": true
}
}| Parameter | Description |
|---|---|
| chat_id / contact_id | Contact JID or phone number |
| instance_id | Your instance ID |
| access_token | Your access token |