Calls
Calls

End an active call

Forcefully terminate an ongoing call (e.g. when an automation decides the conversation should stop early). The call is marked disconnection_reason='agent_hangup'. Calls that are not currently ongoing cannot be ended this way.

post/v1/calls/{call_id}/end

Request

  • Base URL: https://api.call2me.app
  • URL: https://api.call2me.app/v1/calls/{call_id}/end
  • Auth: HTTP bearer

Path parameters

call_idstring required

Response

The updated call object with call_status='ended'.

call_idstring required

Unique call identifier

agent_idstring nullable

Agent used for this call (tercüman/köprü aramalarında yok)

call_status'pending' | 'ringing' | 'in_progress' | 'completed' | 'failed' | 'no_answer' | 'busy' | 'transferred' | 'ended' required

Current call status

call_type'inbound' | 'outbound' | 'sip_call' | 'web_call' | 'interpreter' | 'phone_call' | 'phone' required

Call direction type

direction'inbound' | 'outbound' | 'web' | 'web_bridge' required

Call direction

from_numberstring nullable

Caller phone number

to_numberstring nullable

Callee phone number

start_timestampinteger nullable

Unix timestamp in milliseconds when call started

end_timestampinteger nullable

Unix timestamp in milliseconds when call ended

duration_msinteger nullable

Call duration in milliseconds

transcriptstring nullable

Full transcript as text

recording_urlstring nullable

URL to call recording

disconnection_reasonstring nullable

Reason the call ended (sabit kod ya da ajanın açıklaması)

metadataobject nullable

Custom metadata

created_atstring date-time

Record creation time

updated_atstring date-time

Last update time

Changes

No recorded changes to this operation across all 1 revision of this API.