Audit
AuthorizationBearer <token>API Key access
organizationId*stringOrganization ID
page?integerPage number of the results
1 <= value1limit?integerNumber of results per page
1 <= value <= 200100from?stringDeprecatedDeprecated alias for createdAt[gte]. From date (ISO 8601 format).
date-timeto?stringDeprecatedDeprecated alias for createdAt[lte]. To date (ISO 8601 format).
date-timenextToken?stringToken for cursor-based pagination. When provided, takes precedence over page parameter.
id?Filter by audit log ID.
actorId?Filter by actor user ID.
actorEmail?Filter by actor email.
actorApiKeyPrefix?Filter by actor API key prefix.
actorApiKeySuffix?Filter by actor API key suffix.
action?Filter by action.
targetType?Filter by target type.
targetId?Filter by target ID.
statusCode?Filter by HTTP status code.
createdAt?Filter by creation timestamp.
Paginated list of organization audit logs
application/json- response
items*array<>total*integerpage*integertotalPages*integernextToken?stringToken for next page in cursor-based pagination
curl -X GET 'http://localhost:3000/audit/organizations/string'{ "total": 6, "nextToken": "nextToken", "totalPages": 5, "page": 1, "items": [ { "actorApiKeyPrefix": "actorApiKeyPrefix", "metadata": { "key": "" }, "targetId": "targetId", "errorMessage": "errorMessage", "ipAddress": "ipAddress", "actorEmail": "actorEmail", "targetType": "targetType", "userAgent": "userAgent", "source": "source", "organizationId": "organizationId", "createdAt": "2000-01-23T04:56:07.000+00:00", "actorId": "actorId", "action": "action", "id": "id", "actorApiKeySuffix": "actorApiKeySuffix", "statusCode": 0.8008281904610115 }, { "actorApiKeyPrefix": "actorApiKeyPrefix", "metadata": { "key": "" }, "targetId": "targetId", "errorMessage": "errorMessage", "ipAddress": "ipAddress", "actorEmail": "actorEmail", "targetType": "targetType", "userAgent": "userAgent", "source": "source", "organizationId": "organizationId", "createdAt": "2000-01-23T04:56:07.000+00:00", "actorId": "actorId", "action": "action", "id": "id", "actorApiKeySuffix": "actorApiKeySuffix", "statusCode": 0.8008281904610115 } ]}Returns the supported audit log actions grouped by target type. The list is derived at runtime from the audited routes and system events, so it always reflects what can actually appear in the audit log.
Supported audit log scenarios grouped by target type
application/json- response
targets*array<>Supported audit log scenarios grouped by target type. Derived at runtime from the audited routes and system events, sorted by target type.
curl -X GET 'http://localhost:3000/audit/scenarios'{ "targets": [ { "targetType": "api_key", "actions": [ "create", "create" ] }, { "targetType": "api_key", "actions": [ "create", "create" ] } ]}