BoxCloud Documentation
Security

Hard Prepaid Spend Caps & Anti-Lockout Export Rights

Set hard spend ceilings with 50%/80%/100% alerts and auto-stop, plus guaranteed access to billing top-up and signed data exports even during suspension.

Prerequisites

Deployment Steps

  1. Configure account or project spend caps with POST /v1/billing/spend-caps (exact NUMERIC(38,10) decimal amounts).
  2. Inspect 50%, 80%, and 100% runway threshold alerts via GET /v1/billing/spend-caps/alerts.
  3. Under the Developer Bill of Rights, POST /v1/compute/vms/{id}/backups/{backupId}/export-url, POST /v1/compute/vms/{id}/snapshots/{snapId}/export-url, POST /v1/databases/{id}/export-url, and /v1/billing/* remain accessible even during debt suspension or quarantine.

Sample Config (spend-cap.json)

{"scope_type":"account","period":"hourly","cap_amount_decimal":"25.0000","auto_stop_enabled":true}

Deploy with bxctl CLI

bxctl billing cap set --amount 25.0000 --auto-stop=true

Ready-to-Paste Cursor / Claude MCP Prompt

Set a $25.0000 hard prepaid spend cap on my BoxCloud account with auto-stop enabled and list current alerts.

REST API Example

curl -sS -X POST https://api.boxcloud.io/v1/billing/spend-caps \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"scope_type":"account","period":"hourly","cap_amount_decimal":"25.0000","auto_stop_enabled":true}'

Hourly-only $/hr billing starting from $5.00 USD prepaid entry with Hard Spend Caps.

Estimate Hourly Runway ($/hr)

Back to OpenAPI /v1 Reference (517 endpoints)