API referenceAdmin
List recent admin audit events
Returns the platform audit trail — who changed what on the admin surface, including the critical events written by bootstrap and admin invites. Platform admins only.
GET
apiKeyheader
AuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
Success
application/json- response
data*array<>Example Request
curl -X GET 'https://api.snoze.dev/v1/admin/audit-events'Example Response
{ "data": [ { "id": "string", "actor": "string", "action": "string", "resource": "string", "summary": "string", "createdAt": "string", "severity": "info" } ]}Create an audience segment
Registers a named segment with its membership rules so flags and experiments can target it. Platform admins only; an invalid rule set is rejected as a validation error.
List recent platform background runs
Returns the recent background and worker runs shown on the admin console, with their status and timing. Platform admins only.