# Troubleshooting integrations

Fix rejected credentials, Disconnected or Errored integrations, calls that don't arrive and calls that arrive twice.

Start on the integration's page: its status, the **Sync events** (or **Webhook events**) tab and the **Activity** tab usually say what happened. This page covers the common cases. Provider-specific fixes are on the [Twilio](/docs/integrations/twilio#troubleshooting), [Telnyx](/docs/integrations/telnyx#troubleshooting) and [Aircall](/docs/integrations/aircall#troubleshooting) pages.

## Credentials are rejected

When you create a Twilio, Telnyx or Aircall integration, APX checks the credentials with your phone system before saving them. If they're rejected, the form shows your phone system's reason and nothing is saved.

- **Check each value went into the right field.** For Twilio, the **Account SID** starts with `AC` and the **API Key SID** with `SK`.
- **Copy the secret again.** Twilio, Telnyx and Aircall show a key's secret or token only once. If you didn't save it, create a new key.
- **Use a key from the right account.** A key can only read recordings in the account (or subaccount) it was created in.
- **Check the key's permissions.** Telnyx keys need read access to recordings. Aircall keys must be created by an Aircall admin.

You can't edit credentials after saving. To use a different key, delete the integration and connect again.

## Disconnected, Paused or Errored

All three mean APX isn't checking the integration for new calls. The difference is why.

| Status | Why | How to get it going again |
|---|---|---|
| **Paused** | Someone in your workspace selected **Pause**, or an Aircall install replaced this API-key integration. | Select **Resume**. An API-key Aircall integration replaced by the install can't be resumed: use the install. |
| **Disconnected** | Your phone system stopped accepting APX's access: a key was deleted or rotated, or APX was uninstalled in Aircall. This is a change on your side, not an APX failure. | Restore the key and select **Test connection**, or delete the integration and connect again with a new key. For an Aircall install, select **Reinstall Aircall**. |
| **Errored** | APX kept failing to reach your phone system for about 20 minutes (for example it was down, or kept asking APX to slow down), or a connection test failed. | Check the error on **Sync events**. Once the cause is fixed, select **Test connection**. |

When APX stops checking on its own (**Disconnected** or **Errored**), it emails the people who manage your workspace once and adds a **Disconnected** or **Stopped syncing** entry to the **Activity** tab.

A passing **Test connection** sets the integration back to **Verified** and APX starts checking again. A test never un-pauses a **Paused** integration: only **Resume** does.

## Nothing imported after 5 minutes

Work through these in order.

1. **Is the integration Verified?** If it's **Paused**, **Errored** or **Disconnected**, see the section above.
2. **Is syncing healthy?** Open **Sync events**. **Syncing normally** means APX checked your account in the last two minutes. **Sync delayed**, **Syncs failing** or **Syncs stopped** come with the errors APX ran into.
3. **Was the call recorded?** APX only imports calls that have a finished recording. Check the call in your phone system. In Aircall, missed calls and calls that only reached voicemail have no recording and are skipped.
4. **Did the call happen after you connected?** APX imports calls from the day you connected onward, not older ones.
5. **Run Test connection.** It tells you whether APX can see a recording from today in your account. If it finds none while your phone system shows finished recordings from today, the key probably belongs to a different account or subaccount.

For a custom webhook, open **Webhook events** instead:

- **No row for your request:** it never reached APX, or the URL is wrong. Check your system's logs for the response code (see [Responses](/docs/integrations/custom-webhook#responses)).
- **Signature shows Invalid:** the signing is wrong. See [Verify the signature](/docs/integrations/custom-webhook#verify-the-signature).
- **Status shows Failed:** the **Error** column says why. Fix it and select **Replay**, or send a corrected request. **Replay** only appears when **Signature** shows **Verified**: a request that failed the signature check has to be sent again, signed.

## Duplicate calls

APX doesn't import the same call twice into one integration: it recognises a call it already has, whether it comes from polling or from a webhook with the same `external_call_id`.

Duplicates come from two integrations bringing in the same calls:

- **Two integrations on the same phone system account.** For example, two Twilio integrations with keys from the same account each import every call. Delete one of them.
- **Aircall installed and connected with an API key.** APX prevents this: installing pauses the API-key integration, and calls it already imported aren't imported again.
- **A custom webhook sending calls that a Twilio, Telnyx or Aircall integration also imports.** Turn one of them off.
- **A custom webhook sending one call under different IDs.** Use a stable `external_call_id` per call, so a retry reuses the same ID.

## Short calls and calls without a recording

APX doesn't skip a call for being short: if it has a recording, it's imported. Calls without a recording are skipped:

- Unanswered and missed calls.
- In Aircall, calls that only reached voicemail.
- Recordings your phone system hasn't finished yet. These come through on a later check, once they're done.

If a call shows up but its recording couldn't be read (for example the file was damaged or wasn't audio), the call is marked **Failed** with the reason. A silent recording is different: the call shows **Completed** with an empty transcript, and each agent's card shows **Failed** instead of a score, so no alert goes out. For Twilio, Telnyx and Aircall, APX retries temporary problems (such as a download that timed out) on its own for a few hours before giving up. For a custom webhook, the request shows as **Failed** on **Webhook events**, and you can select **Replay** once the cause is fixed.

## Still stuck

Contact support with the integration's name and the time of a call that didn't arrive. The **Activity** and **Sync events** tabs on the integration page show us the same history you see.
