All API endpoints require authentication using Bearer tokens in the Authorization header:

curl https://api.trillet.ai/v1/api/
  -H "x-api-key: YOUR_API_KEY"
  -H "Content-Type: application/json"
x-api-key
string
required

API key used for authenticating requests to the API. This key must be included in the header of each request.

x-workspace-id
string

Workspace identifier for the API.

Content-Type
string
required

Must be set to application/json.

Obtaining API Keys

Generate an API key under the ‘Settings’ tab for your API credentials. Each API key has specific permissions and limits associated with it.

Get your API key from Trillet Settings Dashboard

Security Best Practices

  1. Keep your API keys secure and never expose them in client-side code
  2. Rotate your API keys periodically
  3. Use different API keys for development and production environments
  4. Monitor your API key usage for any suspicious activity