How do I authenticate to the Code Buckets API?
Authorization: Bearer clsk_...
X-Clatter-Account: CL-XXXXXXXX
- Create a key in Console › API keys with the Code Buckets permissions you need.
- Copy your Account ID from the Console Home page.
- Send both on every request. Account ID matching is case-insensitive.
| Situation | Response |
|---|---|
No X-Clatter-Account | 401 missing_account_id |
| Account ID doesn't own the key | 401 account_mismatch |
| Key wrong or revoked | 401 invalid_api_key |
| Key expired | 401 expired_api_key |
| Key lacks the permission | 403 insufficient_scope |
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.