WasenderApi API

API Documentation

WasenderApi WhatsApp API

Send Presence Update

Sessions

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 or recording, the presence must be sent to the contact’s JID (the person you are chatting with).
  • When using available or unavailable, the presence must be sent with your own number as the JID.

Parameters

NameTypeRequiredDescription
jidstringYesWhatsApp JID of the recipient (e.g., `[email protected]`).
typestringYesThe presence state to send. Must be one of: composing, recording, available, or unavailable.
delayMsintegerNoOptional 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"
  }
}