Api Logs

List Api Logs

Lists the requests served by Whop's API with the account's API keys, newest first — every surface (GraphQL, REST, and native /api/v1), reads and failed requests included.

get/api_logs

Query parameters

account_idstring

The account (biz_*) whose API logs to list. Defaults to the authenticated account.

created_afterstring

Only return requests served at or after this ISO 8601 timestamp. Defaults to 7 days before created_before, or 7 days ago.

created_beforestring

Only return requests served before this ISO 8601 timestamp.

operation_namestring

Only return requests for this operation, matched exactly against the operation_name shown on each log row (for example api/v1/products#create).

http_method'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'

Only return requests made with this HTTP method.

status'success' | 'error'

Only return requests that finished with this status.

api_key_idstring

Only return requests made with this API key (apik_…).

min_duration_msinteger

Only return requests that took at least this many milliseconds.

max_duration_msinteger

Only return requests that took at most this many milliseconds.

firstinteger

Number of logs to return.

afterstring

Cursor to fetch the page after (from page_info.end_cursor).

Response

api logs listed

Example response

{
  "data": [
    {
      "api_key_id": "apik_xxxxxxxxxxxxxx",
      "created_at": "2026-01-01T12:00:00.000Z",
      "duration_ms": 12,
      "http_method": "POST",
      "http_path": "/api/v1/products",
      "id": "evt_xxxxxxxxxxxxxx_1",
      "ip_address": "87.106.27.99",
      "operation_name": "api/v1/products#create",
      "status": "success",
      "status_code": 200,
      "user_agent": "node"
    }
  ]
}

Changes