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.
cURL
curl --request POST \ --url http://localhost:8000/api/sessions/by-room/{room_name}/end
{ "room_name": "<string>", "id": "<string>", "started_at": "2023-11-07T05:31:56Z", "ended_at": "2023-11-07T05:31:56Z", "duration": 123, "user_id": "<string>", "agent_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "session_data": {}, "agent_name": "<string>", "outbound_phone_number": "<string>", "analysis": {}, "transferred_to": "<string>", "transfer_timestamp": "2023-11-07T05:31:56Z" }
End a session by room name and calculate duration.
Successful Response
CREATED
ACTIVE
COMPLETED
FAILED
INBOUND
OUTBOUND
RINGING
ANSWERED
NO_ANSWER
WARM
COLD