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

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

account_id, string

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

created_after, string

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

created_before, string

Only return requests served before this ISO 8601 timestamp.

operation_name, string

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_id, string

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

min_duration_ms, integer

Only return requests that took at least this many milliseconds.

max_duration_ms, integer

Only return requests that took at most this many milliseconds.

first, integer

Number of results to return from the start of the range.

after, string

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

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

api logs listed

object required
data, object[] required
page_info, object required

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