Docs menu
Developer docs · API v1
Build on Coboost. REST, webhooks and MCP.
Automate Coboost, the creator ads marketplace for Instagram: review ad requests, launch campaigns, track placements and balances, over REST, signed webhooks, or the Model Context Protocol for AI agents.
Introduction
The API is organized around resources with predictable URLs, JSON bodies and standard HTTP verbs. Every request is scoped to the workspace that owns the API key. Amounts are integer cents, timestamps are ISO 8601 in UTC, and IDs are opaque strings.
A placement is one creative on one creator account for one campaign. Creators approve, reject or request changes on placements; advertisers launch campaigns, which request placements from every matching account. Requests the creators' approval rules accept are booked in the background a moment after the launch returns, which counts them in bookings_pending. Every placement has an origin: matched (campaign targeting), open (a creator accepted an open campaign) or direct (the advertiser hand-picked the creator).
Creator data. Marketplace endpoints return only what creators agreed to share with API clients: aggregate stats, categories, description, rates and formats, not their posts and captions, follower history, bio, top hashtags and audience breakdowns. Use it only to evaluate and book creators on Coboost. Don't store it longer than that needs, and don't resell or share it. The same applies to AI agents connected over MCP (see Terms §9).
Authentication
Create a key in Settings > Developers > API keys (on Starter and above). Send it as a Bearer token on every request. Keys start with cbst_live_, are shown once, and can be rolled with a grace period. To build without touching real money or accounts, create a test mode key (cbst_test_) instead.
curl https://sqa.coboost.ai/api/v1/me \
-H "Authorization: Bearer cbst_live_…"Keys are scoped. A key never exceeds the role of the member who created it, and stops working if that member leaves. A write scope includes the matching read scope; full-access keys use *.
A key keeps working after its creator signs out or changes their password, so creating or rolling one asks for your password (an account without one, such as a Google sign-in, gets an emailed link that makes the key instead), and every owner of the workspace is emailed about a new live key. Each person sees the keys they created, in every workspace, under Account > Security, where they can revoke them.
Errors
Errors return a non-2xx status and a consistent body. Branch on error.code, show error.message to people.
{
"error": {
"code": "forbidden",
"message": "This API key is missing the required scope: placements:write.",
"details": {
"required_scopes": [
"placements:write"
]
}
}
}Allow header lists the ones it does.details lists each field and message.details.upgrade_url is the page where a person changes plan.details.upgrade_url links to plans.details.upgrade_url links to plans.Retry-After seconds.Retry-After seconds.Every response includes an X-Request-Id header; include it when contacting support.
Rate limits
Limits apply per workspace across all keys and both transports, in one-minute windows. A key can also have a lower limit of its own, and the headers report whichever is closer to running out. Every response reports the current window; when you exceed it you get 429 rate_limited with a Retry-After header.
A key that keeps being refused (revoked, expired, over its limit, or on a plan without API access) is turned away for the rest of the minute after 30 refusals, with 429 rate_limited and a Retry-After header. Only the first refusal in a minute and that last one appear in the workspace's API log. Stop retrying a key that answers 401 or 402.
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 287
X-RateLimit-Reset: 1793180460
Retry-After: 14 # only on 429Idempotency
Send an Idempotency-Key header (any unique string up to 255 characters, e.g. a UUID) on POST, PATCH, PUT and DELETE requests to retry safely. The first response is stored for 24 hours; retries with the same key and the same request return it with Idempotent-Replayed: true. Reusing a key for a different request returns 422 invalid_input; a retry while the original is still running returns 409 conflict. Server errors (5xx), 429 rate_limited responses and any response with a Retry-After header are not stored, so they can be retried with the same key. A key belongs to the workspace: the same value sent with another API key counts as a different request and returns 422.
If the original request never finished on our side, for example because a server stopped while it ran, we can't tell whether it took effect. Retries with its key then return 409 conflict with details.idempotency_key set to unfinished for the rest of the 24 hours, and the request is never run a second time under that key. Read the resource to see whether the first request took effect, and if it didn't, send it again with a new key.
curl -X POST https://sqa.coboost.ai/api/v1/campaigns/cmf0cmp001/launch \
-H "Authorization: Bearer $COBOOST_API_KEY" \
-H "Idempotency-Key: 6f1c2a5e-launch-summer"Pagination
List endpoints return newest first with cursor pagination. Pass limit (1–100, default 25) and, for the next page, the previous response's next_cursor as cursor. Stop when has_more is false.
{
"object": "list",
"data": [
"…"
],
"has_more": true,
"next_cursor": "cmf0plc001"
}