Skip to main content
POST
/
api
/
v2
/
session
/
extend
curl -X POST "http://localhost:8000/api/v2/session/extend?extend_hours=6" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "customer-support",
  "new_expires_at": "2025-04-01T04:30:00Z",
  "hours_added": 6
}

Overview

Increase session validity duration.

Authentication

  • Authorization: Bearer your_api_key
  • X-Session-Token: {session_token}

Body Parameters

extend_hours
integer
Hours to extend (default: 6).
curl -X POST "http://localhost:8000/api/v2/session/extend?extend_hours=6" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token"
{
  "agent_id": "customer-support",
  "new_expires_at": "2025-04-01T04:30:00Z",
  "hours_added": 6
}

Response Fields

agent_id
string
Agent ID.
new_expires_at
string
Updated expiry time.
hours_added
integer
Hours added.