Reset AI usage counters for every workspace
Zeroes the current AI usage period across all workspaces and records the supplied `reason`. Platform admins only, and deliberately global — prefer the per-workspace reset unless a platform-wide correction is intended. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
application/json- body
reason*string^\S[\s\S]*\S$|^\S$|^$3 <= length <= 500Success
application/json- response
data*curl -X POST 'https://api.snoze.dev/v1/admin/workspaces/ai-usage/reset-all' \ -H 'Content-Type: application/json' \ -d '{ "reason": "string"}'{ "data": { "resetAt": "string", "affectedWorkspaces": 0 }}Reset one workspace's AI usage counters
Zeroes the current AI usage period for a single workspace and records the supplied `reason`. Platform admins only. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
List enterprise deals
Every enterprise deal with its workspace, seats and monthly value, plus pipeline metrics. Platform admins only.