Skip to main content
GET
/
api
/
users
/
me
/
usage
/
logs
Get request logs
curl --request GET \
  --url http://localhost:8000/api/users/me/usage/logs \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "log_xyz789",
    "timestamp": "2025-01-17T14:32:10Z",
    "method": "GET",
    "path": "/api/events",
    "status_code": 200,
    "response_time_ms": 45,
    "api_key_id": "key_abc123"
  },
  {
    "id": "log_xyz788",
    "timestamp": "2025-01-17T14:31:55Z",
    "method": "GET",
    "path": "/api/markets",
    "status_code": 200,
    "response_time_ms": 62,
    "api_key_id": "key_abc123"
  }
]

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. Example: Authorization: Bearer mk_live_...

Query Parameters

limit
integer
default:20

Maximum number of log entries to return.

Required range: 1 <= x <= 100
api_key_id
string

Filter logs to a specific API key ID.

Example:

"key_abc123"

Response

A list of recent request log entries.

id
string

Unique log entry identifier.

timestamp
string<date-time>

When the request was made.

method
string

HTTP method used.

path
string

Request path.

status_code
integer

HTTP response status code.

response_time_ms
integer

Response time in milliseconds.

api_key_id
string

The API key ID used for this request.