ApiRequest
The API request log: every write and every failed request made with your keys and sessions (successful reads aren't logged), newest first.
page = noclick.ApiRequest.list_page(method="POST", status="4xx", key="nk_live_ab12")class ApiRequestOne logged API request.
| id | string | |
| actor | string | null |
|
| keyId | string | null | |
| userId | string | null | |
| sessionId | string | null | |
| method | string | |
| route | string | The route template, e.g. |
| pathParams | JsonObject | |
| status | number | null | |
| errorType | string | null | |
| durationMs | number | null | |
| idempotencyReplayed | boolean | |
| operationId | string | null | The operation the request started, if any. |
| requestId | string | null | |
| createdAt | Date | null | |
| raw | JsonObject | The response JSON exactly as the API sent it. |
liststatic
static list(
options?: ApiRequestFilters & { limit?: number },
): Promise<ApiRequest[]>Every matching request (or the first limit).
A class (2xx, 4xx, 5xx) or one code.
An error type such as spend_cap_exceeded.
A key id or prefix.
A route template such as /v1/.
Return at most this many.
Which users the read covers (user_id query), instead of acting as one (user).
undefined = the ambient user (asUser), null = the account itself.
The client to send with; defaults to the module client built from NOCLICK_API_KEY.
Every matching request, newest first, fetched page by page.
listPagestatic
static listPage(
options?: ApiRequestFilters & PageOptions,
): Promise<Page<ApiRequest>>One page of matching requests; pass nextCursor back as cursor.
The next_cursor of the page before; omit it for the first page.
Return at most this many.
A class (2xx, 4xx, 5xx) or one code.
An error type such as spend_cap_exceeded.
A key id or prefix.
A route template such as /v1/.
Which users the read covers (user_id query), instead of acting as one (user).
undefined = the ambient user (asUser), null = the account itself.
The client to send with; defaults to the module client built from NOCLICK_API_KEY.
A page whose data holds up to limit requests (at most 200) and whose next_cursor
is None on the last page.