You can access the Libredesk API to interact with your instance programmatically.

Generating API Keys

1

Edit agent

Go to Admin → Teammate → Agent → Edit
2

Generate new API key

An API Key and API Secret will be generated for the agent
3

Save the credentials

Keep both the API Key and API Secret secure
4

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. The API reference includes:
  • All available endpoints organized by category
  • Request/response formats with examples
  • Authentication requirements
  • Path and query parameters
  • Request body schemas
  • Response schemas

View API Reference

Explore the complete interactive API documentation