POST
/api/send-presence-update
Sends a presence update to a specific JID (e.g., 'typing...' or 'recording...') to indicate user activity. This requires an active session.
Send Presence Update
Sends a presence update to a specific JID (e.g., typing...
or recording...
)
to indicate user activity. This requires an active session.
Supported Types
composing
– Indicates the user is typing.recording
– Indicates the user is recording a voice message.available
– Marks the user as online/active.unavailable
– Marks the user as offline/inactive.
Rules
-
When using
composing
orrecording
, the presence must be sent to the contact’s JID (the person you are chatting with). -
When using
available
orunavailable
, the presence must be sent with your own number as the JID.
Parameters
Name | Type | Required | Description |
---|---|---|---|
jid | string | Yes | WhatsApp JID of the recipient (e.g., `[email protected]`). |
type | string | Yes | The presence state to send. Must be one of: composing, recording, available, or unavailable. |
delayMs | integer | No | Optional duration in milliseconds to show the presence update. |
Code Examples
curl -X POST \
"https://www.wasenderapi.com/api/send-presence-update" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jid": "[email protected]",
"type": "composing"
}'
Response Examples
{
"success": true,
"data": {
"jid": "[email protected]",
"type": "composing"
}
}