Sessions
Get Session Info
Get detailed information about a specific session.
Endpoint
Get detailed information about a specific session.
Request
GET /sessions/{sessionId}Authentication
Every request must include a Bearer token in the Authorization header. Missing or invalid API keys return 401 Unauthorized.
Header
Authorization: Bearer YOUR_API_KEYPath Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| sessionId | string | Yes | Session unique identifier |
Response: SessionInfo
| Field | Type | Description |
|---|---|---|
| uniqueSessionId | string | Session unique identifier |
| sessionName | string | Human-readable session name |
| phoneNumber | string | Associated phone number |
| status | string | Current status: STARTING, CONNECTED, STOPPED, QR_REQUIRED, or ERROR |
| createdAt | string | ISO 8601 creation timestamp |
| updatedAt | string | ISO 8601 last-update timestamp |
| config | SessionConfig | Session configuration |
Examples
cURL
curl -X GET "https://api.example.com/sessions/{sessionId}" \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"uniqueSessionId": "a1b2c3d4-...",
"sessionName": "Sales Primary",
"phoneNumber": "+6281224560101",
"status": "CONNECTED",
"createdAt": "2026-04-10T12:00:00.000Z",
"updatedAt": "2026-04-15T08:30:00.000Z",
"config": {
"enableAccountProtection": true,
"enableMessageLogging": true,
"enableWebhook": false,
"webhookUrl": ""
}
}