Skip to main content
Version: Latest

Get Session Detail

Returns detailed information for a specific sessionId.

Note: Even if the session exists, you will receive 404 if it belongs to a different appId.

GET/api/v2/sessions/{sessionId}

Headers

HeaderValue
STUDIO-API-KEY{userKey}

Examples

curl https://ai-streamer.deepbrain.io/api/v2/sessions/${SESSION_ID} \
-H "Content-Type: application/json" \
-H "STUDIO-API-KEY: ${userKey}" \
-X GET

Success (code: 1000)

{
"code": 1000,
"data": {
"sessionId": "${SESSION_ID}",
"created_at": "2026-04-07T02:37:50.000Z",
"updated_at": "2026-04-07T05:38:26.000Z",
"duration": 123,
"source": "API",
"credits_consumed": 123.45,
"end_at": "2026-04-07T05:38:26.000Z",
"end_reason": "USER_CLOSED"
},
"message": null
}

Next step

Use the Stop Session API to end the session.