Holds the estimated spend of a billable effect against every enforcing budget that scopes the request, and against the named actor's spend limits, under one handle.
const url = 'https://example.com/v1/m/finops/admission/reserve';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"actor_ref":"example","dims":{"agent_group_refs":["example"],"agent_ref":"example","api_key_ref":"example","context_window":"example","cost_center_ref":"example","cost_type":"example","gateway":"example","identity_ref":"example","inference_geo":"example","model_ref":"example","project":"example","provider_ref":"example","routine_ref":"example","service_tier":"example","session_ref":"example","team":"example","user_group_refs":["example"],"workspace_ref":"example"},"estimate_micro_usd":1,"groups":["example"],"idempotency_key":"example","scope":"session_launch","unreachable":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/m/finops/admission/reserve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "actor_ref": "example", "dims": { "agent_group_refs": [ "example" ], "agent_ref": "example", "api_key_ref": "example", "context_window": "example", "cost_center_ref": "example", "cost_type": "example", "gateway": "example", "identity_ref": "example", "inference_geo": "example", "model_ref": "example", "project": "example", "provider_ref": "example", "routine_ref": "example", "service_tier": "example", "session_ref": "example", "team": "example", "user_group_refs": [ "example" ], "workspace_ref": "example" }, "estimate_micro_usd": 1, "groups": [ "example" ], "idempotency_key": "example", "scope": "session_launch", "unreachable": "" }'Holds the estimated spend of a billable effect against every enforcing budget that scopes the request, and against the named actor’s spend limits, under one handle.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
When set, the spend limits of that actor are held as well as the budgets.
object
The amount to hold. Zero holds nothing and returns no handle, but a cap already past its limit still refuses it.
Directory group ids used to resolve the actor’s spend limits.
Bound to the tenant, the scope and the payload. A retry with the same key and payload inside the replay window is answered with the hold the first call took; the same key with another payload is refused with 409.
What a request answers when its admission cannot be established. Omitted, empty and unknown values mean deny. Allow admits with no hold.
Responses
Section titled “ Responses ”OK
object
Example generated
{}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Rate limited
object
Example generated
{}