API referenceAdmin
List the platform permission policies
Returns the platform-level policy switches, such as whether admin invites are restricted to the owner. 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/policies'Example Response
{ "data": [ { "id": "string", "name": "string", "description": "string", "enabled": true, "appliesTo": "string" } ]}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.
Enable or disable a platform permission policy
Toggles one platform policy and records an audit event. Platform admins only; an unknown `policyId` is reported as not found.