Sessions are the core resource in Titan. A session represents a WhatsApp account linked to your application. You create a session, start it to initiate the pairing process, and then keep it running to send and receive messages. Each session runs on a managed runner and reconnects automatically after disconnects.Documentation Index
Fetch the complete documentation index at: https://docs.usetitan.app/llms.txt
Use this file to discover all available pages before exploring further.
Session object
Session identifier. Alphanumeric with dots, hyphens, and underscores (1–64 characters).
Current status:
CONNECTING, CONNECTED, or DISCONNECTED.Reason for the current status. Possible values:
SCAN_QR, AUTO_RECONNECT, FAILED, MANUAL_STOP, QR_TIMEOUT, LOGGED_OUT, TEMPORARY_BAN, STREAM_ERROR.Phone number of the linked WhatsApp account in E.164 format. Present after pairing.
Display name set by the WhatsApp user. Present after pairing.
Business name for WhatsApp Business accounts. Present after pairing.
Platform type.
smba for Business accounts, consumer for standard accounts.Linked Device ID of the authenticated account.
HTTP/HTTPS proxy URL configured for this session.
ISO 8601 timestamp when the session was created.
ISO 8601 timestamp when the session was last updated.
Create a session
POST /api/sessions
Creates a new session. Pass "start": true to automatically start the session immediately after creation.
Session identifier. Must match
^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$.Whether to automatically start the session after creation.
HTTP/HTTPS or SOCKS5 proxy URL to route WhatsApp traffic through.
Custom session configuration as a JSON object.
List sessions
GET /api/sessions
Returns all sessions for your account.
Get a session
GET /api/sessions/{session}
Returns current status and account info for a single session.
Session name.
Start a session
POST /api/sessions/{session}/start
Starts a stopped session and begins the connection process. If the session is not yet paired, it enters CONNECTING state and waits for a QR scan or pairing code.
Session name.
Stop a session
POST /api/sessions/{session}/stop
Gracefully stops a running session. The session transitions to DISCONNECTED with reason MANUAL_STOP. Credentials are preserved and the session can be restarted.
Session name.
Restart a session
POST /api/sessions/{session}/restart
Stops and immediately restarts a session. Useful when a session is stuck or experiencing connection issues.
Session name.
Delete a session
DELETE /api/sessions/{session}
Permanently deletes a session and removes all associated data. This does not log out the WhatsApp account — use the logout endpoint if you want to unlink the device.
Session name.
Log out a session
POST /api/sessions/{session}/logout
Logs the WhatsApp account out of this linked device. This unlinks the session from the account on WhatsApp’s servers and clears the stored credentials. After logout, you need to re-pair the session with a QR code or pairing code to reconnect.
Session name.