Skip to content
Docs menu

API reference

Wallet

Balances and the transaction ledger.

GET/v1/wallet

Get wallet balances

Balances in the platform currency (cents). Advertisers: spendable_cents funds new placements (available_cents less earnings still clearing or under dispute), reserved is held for approved placements and open-campaign escrow (marketplace fee included). Creators: pending_earnings settle when placements complete; withdrawable_cents (settled earnings not yet paid out or spent) can be paid out; clearing_cents is settled money that can't be yet because its advertiser had a recent card deposit, and next_clears_at is when the next part of it can. Deposits are never withdrawable. Each side's figures need that side's access, as in the app: the advertiser's (spendable_cents, reserved_cents and the lifetime spend, deposits and fees) billing.read or wallet.manage, the creator's (withdrawable, clearing, pending and lifetime earnings, pending payouts) earnings.read or payouts.manage. A key whose creator's role has neither side's tools sees only the workspace balance with billing.read, as the app's Wallet page shows it to them: available_cents and spendable_cents, and every other figure null. A side the key can't see, or the workspace doesn't run, comes back null (hidden, not zero); a key with neither gets 403.

Scopewallet:readMCP toolget_wallet
Request
curl "https://sqa.coboost.ai/api/v1/wallet" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "wallet",
  "currency": "USD",
  "available_cents": 1250000,
  "spendable_cents": 1250000,
  "withdrawable_cents": 0,
  "clearing_cents": 0,
  "next_clears_at": null,
  "reserved_cents": 90000,
  "pending_payouts_cents": 0,
  "pending_earnings_cents": 0,
  "lifetime_earnings_cents": 0,
  "lifetime_spend_cents": 310000,
  "lifetime_deposits_cents": 1650000
}
GET/v1/wallet/transactions

List wallet transactions

The wallet ledger, newest first. Amounts are signed cents: holds and charges are negative, deposits and earnings positive. Like the app's Wallet page it lists the movements of the sides the key can see: the advertiser's (deposits, escrow, holds, charges, marketplace fees, refunds and corrections) with billing.read or wallet.manage, the creator's (earnings, adjustments and payouts) with earnings.read or payouts.manage, and every side's with billing.read for a key whose creator's role has neither side's tools. A type of a side the key can't see matches nothing.

Scopewallet:readMCP toollist_wallet_transactions
Query parameters
limit
integerPage size, 1–100 (default 25)
cursor
stringnext_cursor from the previous page
type
"deposit" | "reserve" | "hold" | "release" | "charge" | "earning" | "platform_fee" | "payout" | "refund" | "adjustment" | "correction"[] | stringComma-separated transaction types
status
"pending" | "settled" | "failed" | "reversed"[] | stringComma-separated statuses
campaign_id
string
placement_id
string
Request
curl "https://sqa.coboost.ai/api/v1/wallet/transactions" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "cmf0txn001",
      "object": "wallet_transaction",
      "type": "hold",
      "amount_cents": -45000,
      "currency": "USD",
      "status": "pending",
      "campaign_id": "cmf0cmp001",
      "placement_id": "cmf0plc001",
      "payout_id": null,
      "description": "Hold for @maya.creates",
      "created_at": "2026-10-28T11:00:00.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "cmf0txn001"
}
POST/v1/wallet/statements/{period}/pdf

Create an earnings statement PDF

Starts a PDF of one earnings statement, for a month (2026-11) or a year (2026). status is queued until it has rendered: poll GET /v1/wallet/statements/{period}/pdf/{export_id} until it's ready (or failed), then fetch download_url with the same API key. Asking again while one is being prepared returns that one. Workspaces have a daily limit, which every PDF started counts toward, so this needs payouts:write as well as wallet:read. The legal name and tax ID on file are printed only when the key's owner has payouts.manage. Files expire after a few days; create a new one any time.

Scopepayouts:write and wallet:readMCP toolcreate_statement_pdf
Path parameters
periodrequired
stringA month (YYYY-MM) or a year (YYYY), in the workspace's time zone
Request
curl -X POST "https://sqa.coboost.ai/api/v1/wallet/statements/period/pdf" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 201
{
  "id": "cmf0stm001",
  "object": "statement_pdf",
  "period": "2026-10",
  "status": "queued",
  "size_bytes": null,
  "error": null,
  "created_at": "2026-11-02T09:00:00.000Z",
  "completed_at": null,
  "expires_at": null,
  "download_url": null,
  "download_url_expires_at": null
}
GET/v1/wallet/statements/{period}/pdf/{export_id}

Get an earnings statement PDF

Where a statement PDF stands. download_url is set once it's ready and until it expires; it needs the same API key, and download_url_expires_at is null. Over MCP, download_url is a signed link that needs no API key or header and stops working at download_url_expires_at: get the statement PDF again for a new one.

Scopewallet:readMCP toolget_statement_pdf
Path parameters
periodrequired
stringA month (YYYY-MM) or a year (YYYY), in the workspace's time zone
export_idrequired
stringStatement PDF ID
Request
curl "https://sqa.coboost.ai/api/v1/wallet/statements/period/pdf/export_id" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0stm001",
  "object": "statement_pdf",
  "period": "2026-10",
  "status": "ready",
  "size_bytes": 48210,
  "error": null,
  "created_at": "2026-11-02T09:00:00.000Z",
  "completed_at": "2026-11-02T09:00:06.000Z",
  "expires_at": "2026-11-09T09:00:06.000Z",
  "download_url": "https://coboost.ai/api/v1/wallet/statements/2026-10/pdf/cmf0stm001/download",
  "download_url_expires_at": null
}
GET/v1/wallet/statements/{period}/pdf/{export_id}/download

Download an earnings statement PDF

The PDF file itself (application/pdf), while it's ready and hasn't expired. 409 while it's still being prepared, 404 once it has expired.

Scopewallet:read
Path parameters
periodrequired
stringA month (YYYY-MM) or a year (YYYY), in the workspace's time zone
export_idrequired
stringStatement PDF ID
Request
curl "https://sqa.coboost.ai/api/v1/wallet/statements/period/pdf/export_id/download" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
%PDF-1.7 (the file's bytes)