You can access the Libredesk API to interact with your instance programmatically by generating API keys for any agent.
If you come across API calls that are yet to be documented, Please consider contributing to docs.
Generating API Keys
Edit agent
Go to Admin → Teammate → Agent → Edit
Generate new API key
An API Key and API Secret will be generated for the agent
Save the credentials
Keep both the API Key and API Secret secure
Key management
You can revoke / regenerate API keys at any time from the same page
Using the API
Libredesk supports two authentication schemes:
Basic Authentication
curl -X GET "https://your-libredesk-instance.com/api/endpoint" \
-H "Authorization: Basic <base64_encoded_key:secret>"
Token Authentication
curl -X GET "https://your-libredesk-instance.com/api/endpoint" \
-H "Authorization: token your_api_key:your_api_secret"
API Documentation
The complete API documentation with all endpoints is available in the API Reference section of this documentation.
View API Reference
Explore the complete interactive API documentation