Docs menu
Guide
Test mode
A key that starts with cbst_test_ works on a sandbox copy of your workspace. Build the whole integration against it, then switch to a live key.
Test keys
Create one in Settings > Developers > API keys and choose Test as the type. Your first test key sets up the sandbox. Each workspace has one, shared by all of its test keys. Test keys work with the REST API and the MCP server, and they follow the same rules as live keys: scopes, expiry, rolling, and never more than the role of the member who created them.
curl https://sqa.coboost.ai/api/v1/me \
-H "Authorization: Bearer cbst_test_…"A test key can only reach the sandbox, and a live key can never reach it. IDs from one mode mean nothing in the other. Plan, access and suspension still come from your real workspace: if the workspace loses API access, so do its test keys.
How to tell you're in test mode
Every response to a test key carries an X-Livemode: false header. Every JSON object the REST API returns has livemode: false at the top level, errors included. Over MCP, successful tool results have the same field, a failed tool result ends with a livemode: false line, and JSON-RPC errors have it in error.data. Live responses have none of these.
{
"object": "workspace_identity",
"workspace": {
"id": "cmf0ws0002",
"name": "Lumen Skincare (test mode)"
},
"livemode": false
}Webhook events from the sandbox have the same livemode: false field beside type. Live events are unchanged and don't have it, so check for livemode === false.
What stays out of reach
livemode: false.What's in the sandbox
A new sandbox starts with $10,000 of simulated funds, 1,000 AI credits and 3 test creators. Run out? Add more with POST /v1/test/top-up.
A sandbox always runs both sides, so one key can act as the advertiser and as the creator on the same deal: launch a campaign, then approve the placement yourself. If your workspace runs one side, endpoints with a side parameter default to that side, as they do live. Because both sides are the same workspace, deal reviews and answering a proposed publish time (which need two) don't apply in test mode, and a deal event reaches your test endpoints once.
Register test webhook endpoints with a test key (Webhooks endpoints). They're separate from your live ones. Requests made with test keys appear under Test in Settings > Developers > API logs.
Rate limits
A test key can make 60 requests per minute unless you set its own limit when you create or edit it. The plan's limit applies too, counted separately from live traffic, so a test run can't slow down production. Any key, live or test, can have its own lower limit.
Test data resets
Every 30 days a sandbox is wiped: campaigns, placements, wallet history, media and logs are deleted, and the starting balance and test creators come back. Test keys and test webhook endpoints stay. Don't store IDs from test mode for longer than that.
Not available in test mode
These endpoints return 403 forbidden for a test key, because what they do can't be simulated safely.