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 results to return from the start of the range.

afterstring

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

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/prod_abc",
      "id": "evt_xxxxxxxxxxxxxx_1",
      "ip_address": "87.106.27.99",
      "operation_name": "api/v1/products#create",
      "resource_id": "prod_abc",
      "status": "success",
      "status_code": 200,
      "user_agent": "node"
    }
  ]
}

Changes

Changed in 2 of the 74 revisions of this API.2

Of the 74 revisions, 1 has no diff computed.