Skip to content
Docs menu

API reference

Test mode

Only for test-mode keys (cbst_test_…): add simulated money and AI credits to your sandbox. See the test mode guide.

POST/v1/test/top-up

Add simulated funds

Adds simulated money to the sandbox wallet and AI credits to its balance, so a long test run doesn't run dry. Only test-mode keys can call it: live wallets are funded in the app. Each request is capped by the platform's largest wallet top-up and by a sandbox's starting AI credits.

Scopeworkspace:writeMCP tooltest_top_up
Body
amount_cents
integerSimulated money to add, in cents
ai_credits
integerAI credits to add
Request
curl -X POST "https://sqa.coboost.ai/api/v1/test/top-up" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_cents":500000,"ai_credits":100}'
Response · 201
{
  "object": "test_top_up",
  "wallet": {
    "spendable_cents": 1500000
  },
  "ai_credits": {
    "balance": 1100
  },
  "livemode": false
}