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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string

Request Body

application/json
  1. body
reason*string
Match^\S[\s\S]*\S$|^\S$|^$
Length3 <= length <= 500

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/admin/workspaces/string/ai-usage/reset' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{  "data": {    "resetAt": "string",    "affectedWorkspaces": 0  }}