Skip to content
Docs menu

API reference

Workspace

The workspace behind the API key, its plan and usage.

GET/v1/me

Get the authenticated workspace

Returns the workspace (its profile and the sides it runs: creator, advertiser or both; edit the profile with PATCH /v1/workspace), plan, limits and feature flags the API key belongs to, plus the key's scopes and effective permissions: the scopes' permissions, limited to the creating member's role and to the workspace's sides. Endpoints of a side the workspace doesn't run return 403. side_required is true when the workspace runs both sides: list endpoints with a side parameter (GET /v1/placements, GET /v1/analytics) then need it, otherwise it defaults to default_side. api_key.rate_limit_per_minute is the limit this key is held to on top of the plan's, or null when only the plan's applies; a test key without its own limit shows the platform's default for test keys. Over MCP, an AI app connected by signing in (OAuth) gets api_key: null and connected_app instead: the app's name and client id, the scopes the member approved and when they connected it. hints are plain-language notes on using the API with this workspace. Use it to verify a key.

Scopeany keyMCP toolwhoami
Request
curl "https://sqa.coboost.ai/api/v1/me" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "workspace_identity",
  "workspace": {
    "id": "cmf0ws0001",
    "name": "Lumen Skincare",
    "slug": "lumen-skincare",
    "creator_enabled": false,
    "advertiser_enabled": true,
    "sides": [
      "advertiser"
    ],
    "currency": "USD",
    "timezone": "America/New_York",
    "logo_url": "https://lumen.example/logo.png",
    "website": "https://lumen.example",
    "instagram_handle": "lumen.skincare",
    "description": "Science-backed skincare without the jargon.",
    "industry": "beauty",
    "country": "US"
  },
  "plan": {
    "key": "pro",
    "name": "Pro"
  },
  "api_key": {
    "id": "cmf0key001",
    "name": "Production",
    "prefix": "cbst_live_8fQ2",
    "scopes": [
      "placements:read",
      "placements:write"
    ],
    "expires_at": null,
    "rate_limit_per_minute": null
  },
  "connected_app": null,
  "permissions": [
    "accounts.read",
    "campaigns.read",
    "placements.review"
  ],
  "features": {
    "api": true,
    "mcp": true,
    "webhooks": true
  },
  "limits": {
    "api_requests_per_minute": 300,
    "webhook_endpoints": 10,
    "active_campaigns": 50
  },
  "default_side": "advertiser",
  "side_required": false,
  "hints": [
    "`GET /v1/placements` and `GET /v1/analytics` take a `side` (`creator` or `advertiser`). It defaults to the workspace's only side; a workspace that runs both sides must pass it (422 otherwise)."
  ]
}
GET/v1/usage

Get usage and AI credits

AI credit balance and metered usage (API requests, MCP tool calls, AI generations) for the current billing period. Limits of -1 mean unlimited. During a trial of a paid plan that nothing has paid for yet, monthly_allowance is the trial's AI credit allowance until the first payment. Needs the billing:read or wallet:read scope and a role with billing access, like the app's usage page.

Scopebilling:read or wallet:readMCP toolget_usage
Request
curl "https://sqa.coboost.ai/api/v1/usage" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "usage",
  "period": "2026-10",
  "ai_credits": {
    "balance": 2840,
    "monthly_allowance": 3000
  },
  "metrics": {
    "api_requests": 1204,
    "mcp_calls": 87,
    "ai_generations": 160
  },
  "limits": {
    "api_requests_per_minute": 300
  }
}
GET/v1/workspace

Get the workspace profile

The workspace's profile: name, logo, website, Instagram username, description, industry, country and time zone, the sides it runs and whether it's a verified advertiser (advertiser_verified; details at GET /v1/workspace/verification).

Scopeany keyMCP toolget_workspace
Request
curl "https://sqa.coboost.ai/api/v1/workspace" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0ws0001",
  "object": "workspace",
  "name": "Lumen Skincare",
  "slug": "lumen-skincare",
  "logo_url": "https://lumen.example/logo.png",
  "website": "https://lumen.example",
  "instagram_handle": "lumen.skincare",
  "description": "Science-backed skincare without the jargon.",
  "industry": "beauty",
  "country": "US",
  "timezone": "America/New_York",
  "creator_enabled": false,
  "advertiser_enabled": true,
  "advertiser_verified": true,
  "sides": [
    "advertiser"
  ],
  "created_at": "2026-09-01T10:00:00.000Z"
}
PATCH/v1/workspace

Update the workspace profile

Update profile fields; omitted fields keep their values and null or "" clears one (the name and country can't be cleared). industry is an ad_category key and country a country key (see GET /v1/reference/{list}). The Instagram username is invited as collaborator on collab posts. The URL, sides and billing stay in the app. Creators see a verified advertiser's name and website next to its badge, so giving a verified workspace a new name or website puts it back in review: the response has advertiser_verified: false, and GET /v1/workspace/verification says pending until the platform team approves it again. Letter case and spacing in the name, and http or https, www. or a trailing slash on the website, don't count as a change.

Scopeworkspace:writeMCP toolupdate_workspace
Body
name
string
logo_url
string | nullhttps:// image URL or a media library path (/uploads/…)
website
string | nullhttps:// URL
instagram_handle
string | nullInstagram username, with or without @
description
string | null
industry
string | nullad_category reference key
country
stringISO country code (country reference key); required on every workspace, so it can be changed but not cleared
timezone
stringIANA time zone, e.g. Europe/Paris
Request
curl -X PATCH "https://sqa.coboost.ai/api/v1/workspace" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"website":"https://lumen.example","instagram_handle":"lumen.skincare","timezone":"America/New_York"}'
Response · 200
{
  "id": "cmf0ws0001",
  "object": "workspace",
  "name": "Lumen Skincare",
  "slug": "lumen-skincare",
  "logo_url": "https://lumen.example/logo.png",
  "website": "https://lumen.example",
  "instagram_handle": "lumen.skincare",
  "description": "Science-backed skincare without the jargon.",
  "industry": "beauty",
  "country": "US",
  "timezone": "America/New_York",
  "creator_enabled": false,
  "advertiser_enabled": true,
  "advertiser_verified": true,
  "sides": [
    "advertiser"
  ],
  "created_at": "2026-09-01T10:00:00.000Z"
}
GET/v1/workspace/verification

Get advertiser verification

Whether the workspace is a verified advertiser, and where its application stands. Creators can require verified advertisers: unverified workspaces don't match their campaigns or requests. state is not_applied, pending, info_requested (the platform team asked for more details), verified, rejected or revoked; note is the reason or request the team gave. A verified workspace that changes its name or website goes back to pending (with verified: false) until the team approves it again. Applications are made in the app under Settings → Verification.

Scopeany keyMCP toolget_advertiser_verification
Request
curl "https://sqa.coboost.ai/api/v1/workspace/verification" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "advertiser_verification",
  "state": "verified",
  "label": "Verified",
  "verified": true,
  "submitted_at": "2026-10-01T10:00:00.000Z",
  "decided_at": "2026-10-02T09:00:00.000Z",
  "note": null
}