Models Hub
API ReferenceLogs

Get all logs

Get all request logs visible to the current user.

Edit this page
GET
/api/log/

Authorization

AuthorizationBearer <token>

Authenticate using an Authorization Bearer API Key.

In: header

Query Parameters

p?integer

Page number, starting from 1.

page_size?integer

Number of items returned per page.

start_timestamp?integer

Start time, as a Unix timestamp in seconds.

end_timestamp?integer

End time, as a Unix timestamp in seconds.

Response Body

application/json

curl -X GET "https://example.com/api/log/"
{
  "success": true,
  "message": "string",
  "data": {
    "items": [
      {
        "id": 0,
        "user_id": 0,
        "token_name": "string",
        "model_name": "string",
        "prompt_tokens": 0,
        "completion_tokens": 0,
        "quota": 0,
        "created_at": 0,
        "request_id": "string"
      }
    ],
    "total": 0
  }
}