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.
Authorization
apiKey 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 }}{ "_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}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.
Read the public manifest for a published form
Returns everything an anonymous page needs to render the form — title, copy, theme, steps, and the visible fields with their options and validation — and nothing about internal ids. No authentication; the workspace slug and form slug in the path are the only credential, and a slug pair that does not resolve to a public, enabled form is reported as not found.