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.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
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 }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Clear a workspace's plan limit override
Removes the platform-admin override and returns the workspace to its plan defaults, recording the supplied `reason`. Platform admins only. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
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.