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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string

Query Parameters

limit?string|null

Response Body

Success

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/api-keys/request-logs'
Example Response
{  "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"    }  ]}