Call end

Capture data when a call ends.

Create an end call

POST https://{{account_id}}.acquire.io/api/v1/voip/call-end

Create an ended call.

Request Body

NameTypeDescription

Email*

string

Email of the callee. Email is optional for an incoming call.

From*

string

Phone number of the caller

To*

string

Phone number of the callee

CallId*

string

ID of the call.

CallStatus*

string

Specify the status of the call. ['busy', 'no-answer', 'canceled', 'failed', 'completed']

RecordingUrl*

string

Specify the URL of the recording.

Duration*

string

Specify the call duration (sec).

Direction*

string

Specify the direction of the call. 'outgoing' | 'incoming'

{
  "data": {
    "success": true,
    "message": "Successfully saved"
  }
}

Body (raw)

{
  "From": "+1234567890",
  "To": "+1789451230",
  "CallId": "CA12345678904567890",
  "email": "user@example.com",
  "CallStatus": "completed",
  "RecordingUrl": "string",
  "Duration": "10",
  "Direction": "incoming"
}

Last updated