SnozeDevelopers
API referenceApi keys

List recent API request log entries

Returns recent API requests recorded for the workspace — method, path, status, principal, idempotency key, duration, and error label — so key usage can be audited. Requires the `api_keys:read` permission. Pass `limit` to cap how many entries come back; a non-integer `limit` is a validation error.

GET
/v1/workspaces/{workspaceId}/api-keys/request-logs
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string

Query Parameters

limit?string|null

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/api-keys/request-logs"
{  "data": [    {      "id": "string",      "workspaceId": "string",      "apiKeyId": "string",      "principalType": "string",      "principalId": "string",      "method": "string",      "path": "string",      "status": 0,      "idempotencyKey": "string",      "error": "string",      "durationMs": 0,      "createdAt": "string"    }  ]}