The API Request Log object
A logged API request made with an API key.
Attributes
idstringInteger identifier for the log entry.
apiKeyIdstringID of the API key that authenticated the request.
keyPreviewstringMasked key showing prefix and last 4 characters (e.g. sk_live_...Ab3x), or null if key was deleted.
keyNamestringHuman-readable name of the API key, or null.
methodstringHTTP method: GET, POST, PUT, PATCH, or DELETE.
pathstringRequest path (e.g. /v1/invoices).
statusCodestringHTTP response status code.
responseTimeMsstringServer-side response time in milliseconds.
ipAddressstringClient IP address.
userAgentstringClient User-Agent header value.
requestHeadersstringRequest headers (detail endpoint only). The Authorization, cookie, and API-key headers are redacted.
requestBodystringParsed 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.
responseBodystringParsed response body (detail endpoint only). Credential fields and credential-shaped values are redacted, and the body is truncated to roughly 4KB.
createdAtstringISO 8601 timestamp of the request.