SnozeDevelopers
API referenceAdmin workspaces

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.

POST
/v1/admin/workspaces/{workspaceId}/ai-usage/reset
AuthorizationBearer <token>

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

In: header

Path Parameters

workspaceId*string

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/string/ai-usage/reset" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "data": {    "resetAt": "string",    "affectedWorkspaces": 0  }}