Authentication
All API requests require a Bearer token in the Authorization header. Each token is scoped to a single brand.
Getting your API key
- Log into your Crelio dashboard
- Go to Settings → API Keys
- Click Generate API Key
- Copy and store the key securely — it won't be shown again
Using your API key
Include the key in every request:
curl https://crelio.app/api/v1/accounts \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch("https://crelio.app/api/v1/accounts", {
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY",
}
response = requests.get("https://crelio.app/api/v1/accounts", headers=headers)Key management
- Each brand has one active API key at a time
- Generating a new key revokes the previous one
- If a key is compromised, revoke it immediately in Settings → API Keys
Error responses
| Status | Meaning |
|---|---|
401 | Missing or invalid API key |
403 | Brand is inactive or key has been revoked |
{
"error": "Unauthorized"
}