Skip to content
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.

Request
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.

Response · test key
{
  "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

MoneyThe wallet holds simulated funds. Nothing reaches Stripe, nothing is invoiced, and payouts are refused.
InstagramAccounts are simulated. Publishing, syncs and insights all use a stand-in that never calls Instagram.
Email and notificationsNothing is sent to anyone. A sandbox has no members, and every outgoing message is dropped.
AIGenerations use an offline writer and image maker, so no AI provider is paid and your own AI key isn't used.
WebhooksEvents go only to endpoints you registered with a test key, and each one carries livemode: false.
The marketplaceYour sandbox sees only its own test creators, and nobody outside it can see them, its campaigns or its placements.
DocumentsEarnings statement and deal summary PDFs say TEST MODE on every page and don't name an issuer. A sandbox's name always ends in (test mode), even if you rename it.
Public pagesMedia kits, report links and short links don't exist for test data, and none of it is in the sitemap.

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.

POST /v1/invitationsInvitations email real people.
POST /v1/invitations/{id}/resendInvitations email real people.
DELETE /v1/invitations/{id}A sandbox has no members or invitations.
PATCH /v1/members/{id}A sandbox has no members.
DELETE /v1/members/{id}A sandbox has no members.
GET /v1/stock-photosStock photo search calls Unsplash.
POST /v1/stock-photos/{id}/addStock photo search calls Unsplash.
POST /v1/campaigns/{id}/report/linksReport links are public pages.
PATCH /v1/accounts/{id}/media-kitMedia kits are public pages.
POST /v1/payoutsPayouts move real money.
POST /v1/placements/{id}/disputesDisputes are decided by the platform team.