Integrations
Connect Twilio
Paste a Twilio API key and APX picks up each recorded call within a minute or two of it ending.
APX connects to Twilio with an API key. It checks your Twilio account for new recordings every minute, so you don't set up any webhooks in Twilio. Your TwiML, Studio flows and status callbacks stay exactly as they are.
Before you start
- You can create API keys in the Twilio Console for the account that records your calls.
- Your calls are recorded in Twilio. APX only sees calls that have a recording.
Create an API key in Twilio
- In the Twilio Console, go to Account, then API keys & tokens.
- Copy your Account SID. It starts with
AC. - Create a Standard API key. Name it something you'll recognise, like "APX Intelligence".
- Copy the key's SID (it starts with
SK) and its secret. Twilio shows the secret only once.
Use an API key rather than your Auth Token. You can revoke the key on its own at any time, and it doesn't affect anything else using your account.
Create the key in the same Twilio account (or subaccount) that owns the recordings. A key from one account can't read another account's recordings.
Turn on recording
APX can only score calls Twilio records. Turn on recording for the numbers you want scored, or add recording to your TwiML or Studio flow. Only finished recordings are picked up; one that is still in progress comes through on a later check.
Connect Twilio in APX
- Go to Integrations and select Add integration.
- Pick Twilio and select Next.
- Enter a Name, like "Texas office Twilio", and select Next.
- Paste the Account SID, the API Key SID and the API Key Secret.
- Select Create integration.
APX checks the credentials with Twilio before it saves them. If they work, you see Connected and APX starts checking for recorded calls. If Twilio rejects them, the form shows Twilio's reason and nothing is saved.
Check it's working
Place a call to or from a Twilio number that records, and let it end. It shows up in Calls within a minute or two.
To check the credentials again at any time, open the integration and select Test connection. APX tells you whether it found a recording in your Twilio account today. If it found none, place a call and check again.
The Sync events tab shows whether syncing is healthy and when APX last checked your account.
Troubleshooting
The form says the Account SID or API Key SID is invalid. The Account SID starts with AC and the API Key SID with SK, each followed by 32 characters. Check you didn't paste the Auth Token or the secret into the wrong field.
"Twilio rejected the credentials". The key SID and secret don't match, or the key was deleted. Create a new key and try again.
Twilio returned 404. The Account SID doesn't match the account the API key belongs to, or the recordings live in a subaccount the key can't see. Use an Account SID and key from the same account.
The integration shows Disconnected. Twilio stopped accepting the key: it was deleted or its secret was rotated. Restore the key and select Test connection, or delete the integration and connect again with a new key.
Calls are in Twilio but not in APX. Check the call has a finished recording in Twilio, and that the integration isn't Paused, Errored or Disconnected. Calls from before you connected aren't imported.
More fixes: Troubleshooting.