You can access the libredesk API to interact with your instance programmatically by generating API keys for any agent.
Note: Some endpoints are not documented yet. Pull requests to the docs are welcome.
Authentication
The API supports two authentication methods:
Basic authentication
curl -X GET "https://your-instance.com/api/v1/endpoint" \
-H "Authorization: Basic <base64_encoded_api_key:api_secret>"
Token authentication
curl -X GET "https://your-instance.com/api/v1/endpoint" \
-H "Authorization: token api_key:api_secret"
Getting API keys
- Go to Admin → Teammate → Agent → Edit
- Generate a new API key
- Save both the API Key and API Secret
Base URL
https://your-instance.com/api/v1
Response format
Every response is JSON.
