End call
PreviewEnd a voice call.
POST
/v1/sessions/{session_id}/voice/{voice_connection_id}/endSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
voice_connection_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Request body for ending a call.
object
reason
Free-text reason recorded with the session-ended event.
string | null
Example
User hung up after refund confirmed.Responses
200Voice call ended
Voice call ended
Media typeapplication/json
Response body for ending a call.
object
status
required
Current lifecycle status.
string
voice_connection_id
required
Prefixed public identifier of the voice connection that was ended.
string
Example generated
{ "status": "example", "voice_connection_id": "example"}