How to connect to Calendesk using RESTful API?
![How to connect to Calendesk using RESTful API?](https://cdn.prod.website-files.com/65d473d2b4670424466bdfef/662e5ddba8fcecc7a033d61b_how-to-connect-to-calendesk-using-restful-api.webp)
![How to connect to Calendesk using RESTful API?](https://cdn.prod.website-files.com/65a722edc8c9641642f1ab91/65e163516ab08d791fa88aea_placeholder_3.webp)
How to generate an API Key for Calendesk?
- Sign in to Calendesk Admin Panel
- Click Integrations from the main menu.
- Select Account Integrations and scroll to API.
- Select API and click Generate API Key.
- Copy the tenant name and the API key to your clipboard.
- Use the generated API Key as a parameter in all HTTP requests X-Api-Key
- Use the generated Tenant name as a parameter in all HTTP requests X-Tenant
![Integrations tab](https://cdn.prod.website-files.com/65d473d2b4670424466bdfef/65d9c4754b50dfd7fe1b3426_api_1-copy-1024x567.png)
![Account integrations](https://cdn.prod.website-files.com/65d473d2b4670424466bdfef/65d9c4754b50dfd7fe1b3429_api_2-copy-1024x558.png)
![Generate API Key](https://cdn.prod.website-files.com/65d473d2b4670424466bdfef/65d9c4754b50dfd7fe1b342c_api_3-copy-1024x563.png)
![Copy Tenant name and API key](https://cdn.prod.website-files.com/65d473d2b4670424466bdfef/65d9c4754b50dfd7fe1b3420_api_4-copy-1024x563.png)
For example:
curl --location --request GET 'https://api.calendesk.com/api/v2/categories/services' \
--header 'Content-Type: application/json' \
--header 'X-Requested-With: XMLHttpRequest' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'X-Tenant: YOUR_TENANT_NAME'
API Documentation
The complete API documentation is available here: https://api-doc.calendesk.com/.
Technical questions
If you have any additional API questions, please reach us using the contact form, chat, or our email address.