SnozeDevelopers
API referenceAdmin workspaces

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.

POST
/v1/admin/workspaces/ai-usage/reset-all
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/admin/workspaces/ai-usage/reset-all" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "data": {    "resetAt": "string",    "affectedWorkspaces": 0  }}