Connect data / Integrations
3CX
Connect your 3CX PBX to report on calls, queues and agents. Resplendent reads 3CX through its XAPI with a client-credentials API client, and never changes anything on the PBX.
Before you start
Section titled “Before you start”You need:
- Administrator access to the 3CX Admin Console.
- A 3CX Enterprise license. XAPI access requires it.
- Your 3CX URL, such as
https://yourcompany.3cx.eu.
Create an API client in 3CX
Section titled “Create an API client in 3CX”- Sign in to the 3CX Admin Console.
- Go to Integrations > API and click New.
- Name the client, for example
Resplendent Data, and set Authentication to Client Credentials. - Choose a role with enough permissions, such as System Owner.
- Check XAPI Access Enabled.
- Click Save, then copy the Client ID and the API Key. The API Key is the client secret.
Connect 3CX in Resplendent
Section titled “Connect 3CX in Resplendent”- Open Settings → Integrations.
- Find 3CX and click Connect.
- Enter the Client ID, the Client Secret (the 3CX API Key) and the 3CX URL, including
https://. - Enter a Connection Title.
- Click Save & Test.
- When the test passes, click Sync Dataset and choose what to sync.
Datasets
Section titled “Datasets”| Dataset | What it holds | Sync | Default interval |
|---|---|---|---|
| CallHistory | Every call with duration, outcome and participants | Incremental | 5 minutes |
| InboundCalls | Inbound calls with trunk and DID details | Incremental | 5 minutes |
| OutboundCalls | Outbound calls with trunk and cost details | Incremental | 5 minutes |
| SlaBreaches | Calls that waited past the queue’s SLA time | Incremental | 5 minutes |
| AbandonedQueueCalls | Queue calls abandoned before an answer | Incremental | 15 minutes |
| AgentLoginHistory | Agent login and logout sessions per queue | Incremental | 15 minutes |
| QueuePerformance | Queue and extension performance over the last 30 days | Snapshot | 60 minutes |
| AgentQueueStatistics | Agent statistics per queue over the last 30 days | Snapshot | 60 minutes |
| RingGroupStatistics | Ring group call counts over the last 30 days | Snapshot | 60 minutes |
| QueueSlaStatistics | Queue SLA breach counts over the last 30 days | Snapshot | 60 minutes |
| QueueCallbacks | Queue callback statistics over the last 30 days | Snapshot | 60 minutes |
| Users | Extensions and users on the PBX | Snapshot | Daily |
| Queues | Call queues with routing strategy and SLA settings | Snapshot | Daily |
| Trunks | SIP trunks with status and configuration | Snapshot | Daily |
Incremental Datasets pull only new records after the first sync. AbandonedQueueCalls and AgentLoginHistory start with the last 90 days, because 3CX times out on longer ranges. Snapshot Datasets are replaced in full each time they sync, and the statistics snapshots always cover a rolling 30-day window. Your plan’s refresh limits also apply.
Troubleshooting
Section titled “Troubleshooting”| Error | What to check |
|---|---|
| 401 Unauthorized | Copy the Client ID and API Key again from the 3CX Admin Console. |
| 403 Forbidden | The credentials work but XAPI access is denied. Check XAPI Access Enabled, the client’s role, and that the PBX has an Enterprise license. |
| Connection timeout | Check that the 3CX URL is correct, starts with https://, and is reachable from the internet. |