Retrieve detailed information about a specific session, including all associated calls and their current states. Sessions represent the complete interaction lifecycle and can contain multiple related calls.
- Endpoint which enables consuming the Voice API globally - Redirected by Sinch to the closest region.https://voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}
- North America 1 - Easthttps://us1.voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}
- South America 1 - Easthttps://br1.voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}
- Europe 1 - Centralhttps://eu1.voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}
- Asia Pacific 1 - Southeasthttps://sg1.voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}
- https://au1.voice.api.sinch.comhttps://au1.voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}
curl -i -X GET \
-u '<username>:<password>' \
'https://voice.api.sinch.com/v2/projects/{projectId}/sessions/{sessionId}'A session object
Timestamp (RFC 3339) indicating when the session was created.
The state of the current session. Sessions can either be in a "transitional" or "final" state. Sessions in a transitional state are ongoing. Sessions in a final state have will not send any more events.
| Enum Value | Description |
|---|---|
| QUEUED | The session is queued, no calls have been initiated for this session. This is a transitional state. |
| IN_PROGRESS | At least one call has been initiated or received for this session. This is a transitional state. |
| COMPLETED | The session was completed. This is a final state. |
| EXPIRED | The call session was not initiated before the batch time-to-live (TTL) elapsed. This is a final state. |
Timestamp (RFC 3339) indicating when the session was last updated.
Omitted if no updates were performed on this session.
{ "sessionId": "01BX5ZZKBKACTAV9WEVGEMMVRB", "projectId": "5c5bf2b1-35ae-4825-ab89-457e07bb60e6", "serviceId": "6e124178-c29d-46a5-943c-5c2ae544aade", "state": "COMPLETED", "createTime": "2025-02-10T09:00:00Z", "updateTime": "2025-02-10T09:00:47Z", "endTime": "2025-02-10T09:00:47Z", "calls": [ { … } ] }