Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python
import requests url = "https://x.kupe.in/v1/sessions" payload = { "org_id": "<string>", "project_id": "<string>", "llm_id": "<string>", "stt_id": "<string>", "tts_id": "<string>", "agent_id": "<string>", "post_call_analysis_ids": ["<string>"], "variables": {}, "channel": "web", "record": True } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ org_id: '<string>', project_id: '<string>', llm_id: '<string>', stt_id: '<string>', tts_id: '<string>', agent_id: '<string>', post_call_analysis_ids: ['<string>'], variables: {}, channel: 'web', record: true }) }; fetch('https://x.kupe.in/v1/sessions', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
curl --request POST \ --url https://x.kupe.in/v1/sessions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "org_id": "<string>", "project_id": "<string>", "llm_id": "<string>", "stt_id": "<string>", "tts_id": "<string>", "agent_id": "<string>", "post_call_analysis_ids": [ "<string>" ], "variables": {}, "channel": "web", "record": true } '
{ "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "org_id": "<string>", "project_id": "<string>", "channel": "<string>", "direction": "web", "transport": "<string>", "status": "<string>", "llm_id": "<string>", "stt_id": "<string>", "tts_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "provider": "<string>", "room_name": "<string>", "started_at": "2023-11-07T05:31:56Z", "ended_at": "2023-11-07T05:31:56Z", "user_identifier": "<string>", "ended_by": "<string>", "failure_reason": "<string>", "hangup_reason": "<string>", "language": "<string>", "message_count": 0, "duration_seconds": 123, "agent_duration_seconds": 123, "transfer_duration_seconds": 123, "avg_agent_latency_ms": 123, "avg_user_latency_ms": 123, "attempt_number": 1, "goal_status": "<string>", "agent_id": "<string>", "ws_url": "<string>", "token": "<string>", "media_ws_url": "<string>", "ws_ticket": "<string>" }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Project API key (sk-kupe-...) or a Supabase user JWT.
sk-kupe-...
Show child attributes
web
telephony
twilio
plivo
exotel
Successful Response
inbound
outbound
Short-TTL LiveKit participant JWT. Never logged.
Provider media WebSocket URL for telephony sessions.
Single-use telephony media-stream connect ticket. Never logged.