Before you start
Only company administrators can create tokens. If the Integrations menu does not show up
in the settings, ask whoever manages the account for the token.
https://api.connectadesk.com/api/v1. If your company uses its own installation,
replace it with that domain and keep the /api/v1 at the end.
1
Create the token in the panel
Go to Settings → Integrations → API and click New token. Fill in the fields:
- Name: how you will recognize the token in the list. Use the name of the system that will use the API, not something like “token 1”.
- Permissions: check only the modules and methods the integration needs. An external
report, for example, only needs
GET. - Expiry: set an expiry date whenever the integration is temporary.
- Allowed IPs: if the system that will call the API has a fixed IP, restrict access to it. If left blank, the API accepts calls from any origin.
2
Keep the key outside the code
3
Make the call
List the company’s contacts. Since it is a
GET, nothing is changed, and the call confirms
that the token, the host and the permission are correct.4
Read the response
data. On lists, meta tells you the current page and whether there
are more records. The response does not include total. To go through everything,
advance page while hasMore is true.If the response was not 200
403 ERR_API_FORBIDDEN_SCOPE
403 ERR_API_FORBIDDEN_SCOPE
The token is valid, but it does not have permission for that method on that module. The error
message tells you which combination was missing. Edit the token’s permissions in the panel.
See Permissions.
403 ERR_API_NOT_ENABLED
403 ERR_API_NOT_ENABLED
The company’s plan does not include the public API. Talk to the sales team, because there is
nothing to fix in the integration.
404 on everything
404 on everything
The cause is almost always the base URL without
/api/v1 or the wrong host. The API returns
the 404 in the same error envelope as the other responses (ERR_API_ROUTE_NOT_FOUND). If the
body of the 404 came back as HTML, your call did not reach the API.Next steps
Send a message
The full asynchronous flow, from the
202 to the confirmation that the message was sent.Errors
The error envelope and what each code means.
Idempotency
How to repeat a call without duplicating the effect.
Reference
Every endpoint, with a playground to test in the browser.

