> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/aircall.md).

# Aircall

Aircall is a cloud phone system for support and sales teams. OctoXLabs reads its users through the Public API.

## Use cases

* Find Aircall accounts that have no match in your directory.

```
Adapters = aircall AND NOT Adapters = active-directory
```

* Check what one Aircall connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                   | Port | Protocol                                 |
| ------------------- | --------------------------------------------- | ---- | ---------------------------------------- |
| OctoXLabs connector | api.aircall.io (default, configurable Domain) | 443  | HTTPS, or HTTP when Is Secure is cleared |

### Required permissions

Roles are not documented. Not verified.

## Create credentials in Aircall

{% stepper %}
{% step %}

### Open Settings

Go to your Company **Settings** page and find the **API Keys** section.
{% endstep %}

{% step %}

### Add a key

Click **Add a new API key** to show the API ID and API Token.
{% endstep %}

{% step %}

### Copy the token now

Copy and store the API Token immediately. Aircall does not store it in plain text, so it cannot be shown again.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default        | Description                                                           |
| --------- | -------- | ------- | -------------- | --------------------------------------------------------------------- |
| Domain    | Yes      | String  | api.aircall.io | Domain of the Aircall instance.                                       |
| API ID    | Yes      | String  | None           | API ID.                                                               |
| API Token | Yes      | String  | None           | API Token.                                                            |
| Proxy     | No       | String  | None           | Proxy address. The connector sends requests through `http://<value>`. |
| Is Secure | No       | Boolean | True           | Use HTTPS. Clear it to use HTTP.                                      |
| Timeout   | No       | Integer | 30             | Time in seconds to wait for API responses.                            |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 5.4.1.
{% endhint %}
