> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/rest-apis/telecommunication-outsider/call-end.md).

# Call end

## Create an end call

<mark style="color:green;">`POST`</mark> `https://{{account_id}}.acquire.io/api/v1/voip/call-end`

Create an ended call.

#### Request Body

| Name                                           | Type   | Description                                                                                                      |
| ---------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- |
| Email<mark style="color:red;">\*</mark>        | string | Email of the callee. Email is optional for an incoming call.                                                     |
| From<mark style="color:red;">\*</mark>         | string | Phone number of the caller                                                                                       |
| To<mark style="color:red;">\*</mark>           | string | Phone number of the callee                                                                                       |
| CallId<mark style="color:red;">\*</mark>       | string | ID of the call.                                                                                                  |
| CallStatus<mark style="color:red;">\*</mark>   | string | <p>Specify the status of the call. <br>\['busy',<br>'no-answer',<br>'canceled',<br>'failed',<br>'completed']</p> |
| RecordingUrl<mark style="color:red;">\*</mark> | string | Specify the URL of the recording.                                                                                |
| Duration<mark style="color:red;">\*</mark>     | string | Specify the call duration (sec).                                                                                 |
| Direction<mark style="color:red;">\*</mark>    | string | Specify the direction of the call. 'outgoing' \| 'incoming'                                                      |

{% tabs %}
{% tab title="200 " %}

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

{% endtab %}
{% endtabs %}

**Body (raw)**

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.acquire.io/rest-apis/telecommunication-outsider/call-end.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
