Consume Credits
Atomically decrement credits. Returns 402 if insufficient balance.
Callers should send the full estimated credit cost for a turn before the turn starts. If the estimate later turns out to have been wrong (tool overage, synth was skipped, etc.) the CLI sends a corrective transaction with a negative or positive delta and reason='correction'.
post/api/workspaces/{workspace_id}/credits/consume
Request
- Base URL: https://api.crowelogic.com (the document declares no server; this is the origin it was published from)
- URL: https://api.crowelogic.com/api/workspaces/{workspace_id}/credits/consume
- Auth: none declared
Path parameters
workspace_idstring required
Headers
authorizationstring nullable
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.