Outbound calls

Hang up a call

End a call that's in progress. POST /v1/calls/{sessionId}/hangup · scope calls:write

curl -X POST https://platform.eurekatechlabs.com/v1/calls/ses_xxxxxxxxxxxxxxxxxx/hangup \
  -H "Authorization: Bearer ek_live_..."

Returns 204 with no body — the hangup was accepted.


Good to know

  • You can only hang up your own product's calls. Someone else's → 404.
  • The hangup is sent to the phone provider in the background, so the call may stay in_progress for a second or two.
  • Already ended → 409.

Errors

Status Meaning
403 Key lacks calls:write.
404 Call not found, or another product's.
409 Call isn't in progress (already ended, or not connected yet).
502 Provider rejected the hangup — retry in a moment.