Overview
The Distylia API uses API key authentication. Each request must include your API key in thex-api-key header.
Getting Your API Key
- Log in to your dashboard
- Navigate to Settings > API Keys
- Click Create New API Key
- Copy and save your API key securely (it won’t be shown again)
Using Your API Key
Include the API key in thex-api-key header of every request:
Security Best Practices
- Store API keys in environment variables
- Use different keys for development and production
- Rotate keys regularly
- Revoke compromised keys immediately
Managing API Keys
Create New Key
Generate additional API keys for different applications or environments.Revoke Key
If a key is compromised or no longer needed:- Go to Settings > API Keys
- Find the key in the list
- Click Revoke
Key Limits
- Maximum 10 active API keys per account
- Keys do not expire but can be manually revoked
- Each key has the same permissions as your account
Example Usage in Code
JavaScript/Node.js
Python
PHP
Error Responses
Invalid API Key
Missing API Key
Rate Limits
API keys are subject to rate limits based on your account plan:
Exceeding rate limits will result in
429 Too Many Requests responses.