Skip to main content
POST
/
sessions
/
get_by_id
Get session detail
curl --request POST \
  --url https://api.svantic.com/sessions/get_by_id \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "string",
  "include": [
    "history"
  ]
}
'
{
  "ok": true,
  "session": {
    "session_id": "string",
    "tenant_id": "string",
    "user_id": "string",
    "status": "string",
    "total_turns": 0,
    "total_tokens": 0,
    "created_at": "2026-03-31T12:00:00.000Z",
    "ended_at": "2026-03-31T12:00:00.000Z"
  },
  "turns": [
    {}
  ],
  "last_activity": "2026-03-31T12:00:00.000Z",
  "agents": [
    {
      "agent_type": "string",
      "instance_id": "string",
      "join_reason": "string",
      "joined_at": "2026-03-31T12:00:00.000Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.svantic.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
session_id
string
required
include
enum<string>[]

Optional related data to include in the response.

Available options:
history,
agents

Response

Session detail with optional includes.

ok
boolean
required
session
object
required
turns
object[]

Present when include contains "history".

last_activity
string<date-time> | null

Present when include contains "history".

agents
object[]

Present when include contains "agents".