Skip to main content
GET
/
api
/
{session}
/
presence
/
{chatId}
Get presence for the conversation ID. If not subscribed - also subscribes
curl --request GET \
  --url https://{host}/api/{session}/presence/{chatId} \
  --header 'apikey: <api-key>'
{
  "chatId": "5511999999999@s.whatsapp.net",
  "status": "AVAILABLE",
  "lastSeen": 1234567890,
  "isOnline": true
}

Description

⚠️ This endpoint is not yet implemented. This endpoint will allow you to get presence information (online/offline status) of a specific contact or chat. Useful for checking if a contact is available before sending messages.

URL Parameters

session
string
required
WhatsApp unique session ID
chatId
string
required
ID of the chat/contact in format 5511999999999@s.whatsapp.net

Response

{
  "chatId": "5511999999999@s.whatsapp.net",
  "status": "AVAILABLE",
  "lastSeen": 1234567890,
  "isOnline": true
}

Status Codes

  • 200 - Information obtained successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized
  • 404 - Chat not found

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/presence/5511999999999@s.whatsapp.net

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

chatId
string
required

Conversation ID

Response

200 - application/json
id
string
required

Chat ID - either group id or contact id

Example:

"5511999999999@c.us"

presences
object[]
required
I