API tokens (starting withDocumentation Index
Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt
Use this file to discover all available pages before exploring further.
sk-) are the credentials your applications use to call the AI Model API. Use these endpoints to create, inspect, update, and delete tokens programmatically.
All token management endpoints require User permission. Authenticate with a system access token from Personal Settings → Security Settings → System Access Tokens — not an
sk- key. Pass it as Authorization: Bearer {access-token} in every request.Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/token/ | List all tokens |
POST | /api/token/ | Create a token |
GET | /api/token/{id} | Get a single token |
PUT | /api/token/ | Update a token |
DELETE | /api/token/{id} | Delete a token |
List all tokens
Query parameters
Page number (1-indexed). Defaults to
1.Number of tokens to return per page. Defaults to
10.Example
Create a token
Request body
A human-readable name for the token. Used to identify it in the console.
The quota (in units) to allocate to this token. Ignored if
unlimited_quota is true.Unix timestamp (seconds) when the token expires. Set to
-1 for no expiry.When
true, the token has no quota limit. Defaults to false.When
true, the token is restricted to the models listed in models. Defaults to false.List of model identifiers the token is allowed to use. Only effective when
model_limits_enabled is true.Example
Get a single token
Path parameters
The numeric ID of the token to retrieve.
Example
Update a token
id field and any fields you want to change. The request body accepts the same fields as create a token, plus:
The numeric ID of the token to update.
Updated display name for the token.
Updated quota allocation. Ignored if
unlimited_quota is true.Updated expiry timestamp (Unix seconds). Set to
-1 for no expiry.When
true, removes the quota limit.Enables or disables model restrictions for this token.
Updated list of permitted models. Only effective when
model_limits_enabled is true.Example
Delete a token
Path parameters
The numeric ID of the token to delete.