Skip to Content
WhatsApp API by Retention Stack

Presence

Online presence and typing indicators

Get all chats presence

GET
/v1/sessions/{session}/presence

Read cached presence information for your session. Subscribe to a contact first when you need updates; this response depends on presence events received by the messaging engine.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length <= 100

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/presence'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set presence

POST
/v1/sessions/{session}/presence

Set global online or offline presence. The body session is required in addition to the path session; use the same name in both. Although the enum also lists typing, recording and paused, those states need a chatId that this request schema does not accept. Use startTyping and stopTyping for typing indicators.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length <= 100

Request Body

Set presence/status in a chat

application/json
  1. body

Set presence/status in a chat

presence*string

Presence status: online, offline, typing, recording, or paused

Value in"online""offline""typing""recording""paused"
session*string

WhatsApp session name

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/presence' \  -H 'Content-Type: application/json' \  -d '{  "presence": "online",  "session": "me"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get chat presence

GET
/v1/sessions/{session}/presence/{chatId}

Read presence information for chatId within your session. Obtain chatId from a contact check, message or webhook; subscribe to presence updates when needed.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length <= 100
chatId*string

Chat ID in format: 1234567890@c.us or +1234567890@c.us

Match^\+?(\d+@[csg]\.us|\d+@s\.whatsapp\.net)$

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/presence/15551234567%40c.us'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}
POST
/v1/sessions/{session}/presence/{chatId}/subscribe

Subscribe your session to presence updates for chatId. Read current presence with the presence endpoints or receive presence.update webhook events.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length <= 100
chatId*string

Chat ID in format: 1234567890@c.us or +1234567890@c.us

Match^\+?(\d+@[csg]\.us|\d+@s\.whatsapp\.net)$

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/presence/15551234567%40c.us/subscribe'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}