Skip to main content
GET
/
api
/
v2
/
session
/
current
curl -X GET "http://localhost:8000/api/v2/session/current" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "customer-support",
  "session_token": "eyJhbGc...",
  "created_at": "2025-03-30T16:30:00Z",
  "expires_at": "2025-03-31T22:30:00Z",
  "time_remaining_minutes": 345
}

Overview

Inspect the currently active session token.

Authentication

  • Authorization: Bearer your_api_key
  • X-Session-Token: {session_token}
curl -X GET "http://localhost:8000/api/v2/session/current" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "customer-support",
  "session_token": "eyJhbGc...",
  "created_at": "2025-03-30T16:30:00Z",
  "expires_at": "2025-03-31T22:30:00Z",
  "time_remaining_minutes": 345
}

Response Fields

agent_id
string
Agent ID.
session_token
string
Current token.
created_at
string
Session creation time.
expires_at
string
Session expiry time.
time_remaining_minutes
integer
Remaining session time.