Skip to content

end_call

POST
/v1/sessions/{session_id}/voice/{voice_connection_id}/end
curl --request POST \
--url https://app.everruns.com/api/v1/sessions/example/voice/example/end \
--header 'Content-Type: application/json' \
--data '{ "reason": "User hung up after refund confirmed." }'

End the in-flight voice call.

session_id
required
string
voice_connection_id
required
string
Media type application/json

Request body for voice end.

object
reason

Free-text reason recorded with the session-ended event. Useful for operator forensics.

string | null
Example
User hung up after refund confirmed.

Realtime voice connection ended

Media type application/json

Response body for voice end.

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"
}