API referenceHealth
Create a Realtime session ticket (Alpha)
Issue a single-use ticket for the Alpha Realtime WebSocket at `/api/v1/workspaces/{workspace_id}/realtime`.
POST
/api/v1/realtime/sessionsIssue a single-use ticket for the Alpha Realtime WebSocket at /api/v1/workspaces/{workspace_id}/realtime.
Header Parameters
X-Workspace-ID?|
The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/realtime/sessions" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "string" }'{ "audio_input_hz": 0, "audio_output_hz": 0, "expires_in": 0, "ice_servers": [], "maturity": "alpha", "max_duration_seconds": 0, "run_id": "string", "session_id": "string", "subprotocol": "a13n.realtime.v1", "thread_id": "string", "ticket": "string", "websocket_path": "string"}