The presence API lets you control the online/offline status of a session account and query the current presence state of contacts. When you subscribe to a contact’s presence, Titan firesDocumentation Index
Fetch the complete documentation index at: https://docs.usetitan.app/llms.txt
Use this file to discover all available pages before exploring further.
presence.update webhook events whenever their status changes — so you can build features like online indicators and last-seen timestamps.
Set presence
POST /api/sessions/{session}/presence
Sets the online/offline status of the session account. Use available to appear online in WhatsApp and unavailable to appear offline.
Session name.
Presence status:
available (online) or unavailable (offline).Get presence for a contact
GET /api/sessions/{session}/presence/{chatId}
Returns the current presence state for a specific contact. To receive live updates, subscribe to the contact’s presence first.
Session name.
Contact or chat JID (URL-encoded).
The JID of the contact.
Current presence state:
available, unavailable, composing, or recording.ISO 8601 timestamp of when the contact was last seen online. May be absent if the contact has hidden their last-seen.
Get presence for all subscribed contacts
GET /api/sessions/{session}/presence
Returns the last known presence state for all contacts the session is subscribed to.
Session name.
Subscribe to presence updates
POST /api/sessions/{session}/presence/{chatId}/subscribe
Subscribes the session to presence updates for a contact. After subscribing, Titan fires a presence.update webhook event whenever the contact’s presence changes.
Session name.
Contact JID (URL-encoded) to subscribe to.
Presence update webhook event
When a subscribed contact’s presence changes, Titan delivers apresence.update webhook event with this payload:
JIDRef of the contact whose presence changed.
JIDRef of the sender within a group context (if applicable).
Typing or activity state:
composing or paused.Whether the contact is currently offline.
Unix timestamp of the contact’s last seen time.
Media type being composed.
audio indicates the contact is recording a voice note.