Guide
Deploy a call flow to 3CX v20 through the XAPI, without the console
Since version 20, 3CX exposes a configuration API, the XAPI, that can take a call flow app and compile it. IVR Canvas uses it to deploy your flows directly. It has to be set up once per server.
What you need
- A 3CX version 20 with an Enterprise licence: the XAPI is only open with that licence.
- Access to the 3CX admin console, with an administrator account.
- A 3CX reachable from the Internet, with a valid certificate: IVR Canvas does not reach a private address.
- An IVR Canvas account with the licence: the free plan does not deploy.
Without an Enterprise licence, direct deployment is not possible: export the ZIP package from IVR Canvas and upload it in the console, Advanced > Call Flow Apps.
Create the API client in the 3CX console
- In the 3CX admin console, open Integrations > API and click Add.
- Give the client a number and a name, pick the System Administrator role and tick “3CX Configuration API Access (XAPI)”.
- Save, then copy the secret key shown: 3CX shows it only once.
- If the console is filtered by IP address (Settings > Security > Console Restrictions), add the IVR Canvas address shown on the 3CX servers page: otherwise 3CX denies access.
Add the server in IVR Canvas
- In IVR Canvas, open 3CX servers and add a server.
- Type the console address with its port (for example
https://pbx.example.com:5001), the client ID and its secret key. - Test the connection: “Connection works” means IVR Canvas reads the call flow apps of this 3CX, and deployments will work.

The key is kept in the account secrets, encrypted by your browser: it is never stored in clear. With environments, each environment has its own server: test and production.
Deploy and compile
In the project, “Deploy to 3CX” asks for a version description, then runs three steps:
- Saving and creating the frozen version: that is the one deployed, and the one you can come back to.
- Preparing the package, with the values of the chosen environment.
- Deploying and compiling on the 3CX, which can take up to a minute. An app with the same extension number is replaced; otherwise it is created.

If 3CX refuses to compile, the previous version of the app stays live and IVR Canvas shows what the compiler says. A rollback deploys a frozen version again as it was.
When the deployment fails
| Message | What to check |
|---|---|
| The 3CX cannot be reached | The address and port are those of the console (for example :5001); the 3CX is reachable from the Internet; no firewall blocks IVR Canvas. |
| 3CX certificate refused | The certificate is valid and not expired; the address uses the certificate name, not an IP address. |
| Sign-in refused by the 3CX | The client ID and key are right; the client has XAPI access; the licence is Enterprise. |
| The 3CX denies access | The client has the System Administrator role; the IVR Canvas address is allowed in Console Restrictions. |
| Extension number already taken | An extension, a queue or another app already uses that number: change it in the project settings. |
| The package is over 10 MB | Remove audio files, or export the package as a ZIP for the console. |
Errors in the flow itself are stopped earlier: the project is neither exported nor deployed while any remain. They are listed in 3CX call flow compile errors.
Questions
Does direct deployment work with 3CX v18?
No: it goes through the 3CX v20 XAPI. On another version, export the package and upload it in the console.
Do I have to give the 3CX administrator password?
No. IVR Canvas uses the API client you create, with its ID and key; you can delete it at any time in Integrations > API.