The API Request Log object

A logged API request made with an API key.

Attributes

idstring
Integer identifier for the log entry.
apiKeyIdstring
ID of the API key that authenticated the request.
keyPreviewstring
Masked key showing prefix and last 4 characters (e.g. sk_live_...Ab3x), or null if key was deleted.
keyNamestring
Human-readable name of the API key, or null.
methodstring
HTTP method: GET, POST, PUT, PATCH, or DELETE.
pathstring
Request path (e.g. /v1/invoices).
statusCodestring
HTTP response status code.
responseTimeMsstring
Server-side response time in milliseconds.
ipAddressstring
Client IP address.
userAgentstring
Client User-Agent header value.
requestHeadersstring
Request headers (detail endpoint only). The Authorization, cookie, and API-key headers are redacted.
requestBodystring
Parsed request body (detail endpoint only), or null for GET requests. Credential fields and credential-shaped values are redacted, and the body is truncated to roughly 4KB.
responseBodystring
Parsed response body (detail endpoint only). Credential fields and credential-shaped values are redacted, and the body is truncated to roughly 4KB.
createdAtstring
ISO 8601 timestamp of the request.