Use these endpoints to retrieve a record of every API request made under your account, filter by model or time range, and pull aggregated usage statistics.Documentation Index
Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt
Use this file to discover all available pages before exploring further.
The
/api/log/self and /api/log/self/stat endpoints require User permission. The /api/log/ endpoint requires Admin permission. The /api/data/self statistics endpoint requires User permission. Authenticate with a system access token from Personal Settings → Security Settings → System Access Tokens.Endpoints
| Method | Path | Permission | Description |
|---|---|---|---|
GET | /api/log/self | User | Get your own request logs |
GET | /api/log/self/stat | User | Get your own usage statistics |
GET | /api/log/ | Admin | Get all request logs |
GET | /api/data/self | User | Get aggregated quota statistics |
Get your own logs
Query parameters
Page number (1-indexed). Defaults to
1.Number of log entries to return per page. Defaults to
10.Filter by log type. Common values:
1— chat completion2— embedding3— image generation
Filter logs from this Unix timestamp (seconds, inclusive).
Filter logs up to this Unix timestamp (seconds, inclusive).
Filter by model identifier, for example
gpt-4o or claude-3-5-sonnet.Filter by the numeric channel ID that served the request.
Example
Response fields
Whether the request succeeded.
Paginated result container.
Get your own usage statistics
Example
Response fields
Whether the request succeeded.
Aggregated statistics.
Get all logs (Admin)
Requires Admin permission. Returns logs for all users on the instance, not just the authenticated user.
Query parameters
Page number (1-indexed). Defaults to
1.Number of log entries to return per page. Defaults to
10.Filter by log type.
Filter logs from this Unix timestamp (seconds, inclusive).
Filter logs up to this Unix timestamp (seconds, inclusive).
Filter by model identifier.
Filter by the numeric channel ID.
Example
Get aggregated quota statistics
Example
Response fields
Whether the request succeeded.
Array of data points, each representing a time period.