Authentication
Active
Authenticate requests with a Token168 API key.
Bearer token
Send the API key in the Authorization header. Do not place API keys in URLs, client-side logs, browser storage, or screenshots.
request headers
Authorization: Bearer $TOKEN168_API_KEY
Content-Type: application/json
Key management
Create, edit, enable, disable, delete, and copy keys from Console. Full key material is only exposed during explicit copy or creation flows.
Requests are scoped to the current Token168 platform user, group, token permissions, and available models.
Authentication errors
| Condition | Status | Action |
|---|---|---|
| Missing or invalid token | 401 | Create a valid API key in Console. |
| Account lacks model access | 403 | Check model and group availability in Console. |
| Unknown route | 404 | Verify the endpoint path and method. |