budget-guard
reserve
Call BEFORE each model call, tool call or sub-agent spawn with your estimate. Returns allowed=true and deducts it, or allowed=false with the limit that tripped. When allowed is false, stop, do not retry, and return your partial result to the user. Atomic, so parallel sub-agents cannot both slip under the cap.
post/api/v1/budget-guard/reserve
Request
- Base URL: https://cloudforbots.com
- URL: https://cloudforbots.com/api/v1/budget-guard/reserve
- Auth: HTTP bearer
Headers
Idempotency-Keystring
Makes the call safe to retry; the same key returns the stored reply for 24h.
X-Request-Idstring
Request body
Response
Tool result (always includes request_id).
object required
Changes
No recorded changes to this operation across all 1 revision of this API.