API
Authentication
How to authenticate with the Kit.Domains API
The Kit.Domains API uses Bearer token authentication. Every request must include your API token in the Authorization header.
Getting Your API Token
- Log in to Kit.Domains
- Go to Profile → Settings
- Find the API Token section
- Click Generate API Token
Your API token is shown only once. Store it securely — you won't be able to view it again. If you lose it, generate a new one from your dashboard (which invalidates the old token).
Using Your Token
Include the token in the Authorization header of every request:
curl https://api.kit.domains/v1/domains \
-H "Authorization: Bearer YOUR_API_TOKEN"Rotating Your Token
If your token is compromised, rotate it from your Kit.Domains dashboard — generating a new token immediately invalidates the old one. Rotation is dashboard-only by design: a leaked token can't be used to roll itself over the API.
Authentication Errors
| Status Code | Meaning |
|---|---|
401 | Missing or invalid API token |
403 | Token is valid but lacks permission for this resource |