GET
Get Presence
Read cached presence data for a contact (from presence.update events).
API endpoint
https://waclient.com/api/get_presenceExample:
curl -X GET \
'https://waclient.com/api/get_presence' \
-G \
--data-urlencode 'chat_id=20100981XXXX' \
--data-urlencode 'instance_id=6A4B02A1XXXX' \
--data-urlencode 'access_token=EMCUH3NQQK8YXXXX'Response
{
"status": "success",
"message": "Success",
"data": {
"chat_id": "[email protected]",
"lastKnownPresence": "available"
}
}| Parameter | Description |
|---|---|
| chat_id / contact_id | Contact JID or phone number |
| instance_id | Your instance ID |
| access_token | Your access token |