Skip to main content
GET
get session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Session ID

Response

Successfully retrieved session

A single connection between a client and a persona. Contains metadata but not the transcript or recording — those are fetched separately.

id
string<uuid>

Unique identifier for the session.

personaId
string<uuid> | null

ID of the persona the client connected to, or null if the session was issued with an ephemeral persona config.

clientLabel
string | null

Label supplied by the caller when minting the session token.

startTime
string<date-time>

Timestamp when the session started.

endTime
string<date-time> | null

Timestamp when the session ended, or null if still active.

sessionLengthMs
integer | null

Duration of the session in milliseconds, or null if still active.

exitStatus
string | null

How the session ended, or null if still active. Treat this as an open string set — new values may be added over time, so clients should handle unrecognised values gracefully rather than exhaustively matching. Known values: CLOSED_BY_ENGINE, CLOSED_DANGLING_SESSION, HOST_FAILED_HEALTH_CHECK, HOST_UNREGISTERED, FAILED_TO_START, FAILED_PENDING_TIMEOUT, ORPHANED_NO_END_SIGNAL, CLOSED_CLIENT_CONFIG_ERROR, CLOSED_MAX_DURATION, CLOSED_IDLE_TIMEOUT, CLOSED_NEVER_JOINED, CLOSED_NO_INPUT_AUDIO, CLOSED_PROVIDER_ERROR.

engineHost
string | null

Where the session ran: the regional engine gateway's host and the engine pod's path. A session start that returns an address for the client returns one on the edge-connect host instead.

engineProtocol
string | null

Protocol used to stream the session (e.g. https).

engineVersion
string | null

Version of the engine pod that served the session.

region
enum<string> | null

Region where the session ran, eu or us: the region of the engine cluster that served it. It is not where the session's data, such as its recording, is stored. null when no region Anam recognises was reported, as for older sessions.

Available options:
eu,
us,
null
clientMetadata
object | null

Arbitrary metadata collected from the client during the session. Null for a Zero Data Retention session, until the session ends and may add its userAgent.

personaConfig
object

Snapshot of the persona configuration taken at the moment the session started. It never includes an LLM key, encrypted or not, or the value of a webhook tool header (each value reads [REDACTED]), and llmConfig has the LLM's endpoint urls, deploymentName, apiVersion and OpenRouter providerRouting only for an LLM the session's organization created. For a Zero Data Retention session it keeps only structural fields (ids, flags, numbers and enum values such as zeroDataRetention, avatarId and the voice IDs, llmConfig.id and llmConfig.format, and an SDK-style metadata.client), so it has no name, prompts, greeting, filler phrases, style prompts, tools, TTS provider options, avatarEngineKey or other llmConfig fields. An older Zero Data Retention session can still return its full snapshot or avatarEngineKey, because stored rows were not rewritten.

apiKeyId
string<uuid> | null

ID of the API key that minted the session token.

organizationId
string

ID of the organization that owns the session. IDs may be either UUIDs or nanoid-style strings depending on when the organization was created.

createdAt
string<date-time>

Timestamp when the session record was created.

updatedAt
string<date-time> | null

Timestamp when the session record was last updated.

recording
object

Whether GET /v1/sessions/{id}/recording can return a recording, from the session record and recording storage. Check it before asking for one.

transcript
object

Whether GET /v1/sessions/{id}/transcript has a transcript, from the session record. Check it before asking for one.

toolCalls
object[]

Tool calls made during the session, in conversational order. Empty until the session has ended and its report has been delivered.