View as Markdown

List Request Logs

GET/v2/api-logs

The requests your API keys made in the last 15 days, newest first, one keyset page at a time: pass metadata.pagination.next_cursor as before for the next page while has_more is true. An API key reads its own rows only; in the app, a workspace admin reads every key's rows and a member the rows of their own keys. key_id narrows to one key. Free: costs no credits; counts against the per-second window of the search rate limit (0 units).

Query parameters

  • per_pageintegeroptionalmin: 1max: 500default: 100

    Rows per page, newest first.

  • beforestringoptional

    Opaque cursor: metadata.pagination.next_cursor of the previous page. Absent for the first page; the last page answers has_more: false and next_cursor: null.

  • key_idstringoptional

    Only the rows of this API key. It narrows the rows the caller may already read and never widens them: a key outside the caller's view returns no rows.

Responses

  • 200 One page of rows; [] with has_more: false when there are none.
  • 400 Invalid request (VALIDATION_ERROR; payload.code says which kind of mistake).
  • 401 Missing, unknown or inactive credentials (UNAUTHORIZED).
  • 408 The page query ran past its 5-second budget (TIMEOUT); ask again, or for a smaller per_page.
  • 429 Over the per-second window of the search rate limit (RATE_LIMIT; reading logs spends no units); wait Retry-After seconds.
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.