Skip to content

Errors

After this page you can look up any error code and know whether to retry, stop or ask a person. Branch on code, never on message: the code is the contract and is never renamed, the message may be reworded. An HTTP error has the shape { "error": { "code", "message", "details" } } and details.next says what to do; over MCP the same sentence follows Next: in the text and sits in _meta.error.next. A code you do not know is to be treated as the HTTP status it came with.

Three rules cover most of them. A 402 and every 409 about a quote or a launch mean nothing was spent. 429 and 503 are safe to repeat with the same idempotencyKey after waiting Retry-After seconds. approval_required is not an error: it is a 202 and nothing was spent.

72 errors

  • 401invalid_token#
    What it means
    The token is missing, malformed, revoked, belongs to a person who left, or a session cookie was sent beside it.
    What to do
    Stop. The key is wrong, revoked or its maker left. Tell the human to make a new key in the workspace (API access) or sign in again. Do not retry.
  • 402insufficient_balance#
    What it means
    The wallet does not cover the reserve. Nothing was spent.
    What to do
    Nothing was spent. Tell the human the shortfall. Live key: wallet_deposit_request, pay by bank transfer, wait for credited. Test key: sandbox_fund. Then quote again.
  • 403permission_missing#
    What it means
    The person who made the token lacks the permission the write needs.
    What to do
    Do not retry. The person who made this key lacks a right the action needs; tell the human to ask a colleague with that right, or to make the key themselves.
  • 403person_only#
    What it means
    Only a signed-in person can do this; a key cannot.
    What to do
    Tell the human to do it in the workspace (API access).
  • 403scope_missing#
    What it means
    The token lacks the scope this tool needs.
    What to do
    Do not retry. Tell the human which scope the message names and that a person with API-management rights adds it to this key (or makes a new key with it). Meanwhile do the parts of the task that need no such scope.
  • 404api_token_not_found#
    What it means
    No working key like that.
    What to do
    Nothing to do: the key is already revoked or never existed. Tell the human if you expected it to work.
  • 404approval_not_found#
    What it means
    No such spending request for this token.
    What to do
    Use the approvalId that campaign_activate, campaign_budget_add or campaign_end returned to THIS key; another key's requests cannot be read.
  • 404campaign_not_found#
    What it means
    No campaign with that slug or external reference in this brand.
    What to do
    Call campaigns_list (status all) and use a slug or externalRef from it; a draft is found by its externalRef or by campaigns_list with status draft.
  • 404clip_not_found#
    What it means
    No clip with that id in this account.
    What to do
    Read the id again from review_queue or campaign_clips; never type one from memory. Do not retry the same id.
  • 404draft_not_found#
    What it means
    No such draft.
    What to do
    Call campaigns_list with status draft and use a slug from it, or save the draft again with campaign_draft_save.
  • 404not_found#
    What it means
    Nothing here by that identifier.
    What to do
    The identifier is not one this account has. Read it again from review_queue, campaigns_list or campaign_clips instead of guessing; do not retry the same value.
  • 404quote_not_found#
    What it means
    No such quote for this token.
    What to do
    Quote again with campaign_quote_issue and use the quoteId it returns; a quote belongs to the key that asked for it.
  • 404tool_unknown#
    What it means
    No tool has that name.
    What to do
    Pick a name from the tool list in the message (or tools/list). A tool the message calls a test-space or live-account tool belongs to the other kind of key.
  • 404webhook_delivery_not_found#
    What it means
    No delivery like that.
    What to do
    Read the delivery log in the workspace (API access) for a valid id, and do not type one from memory.
  • 404webhook_not_found#
    What it means
    No webhook endpoint like that.
    What to do
    List the endpoints in the workspace or with whoami (test space) and use an id from it.
  • 409api_token_limit#
    What it means
    The workspace already holds the most working keys it may.
    What to do
    Tell the human to revoke a key they no longer use in the workspace (API access); a key cannot do that for itself.
  • 409approval_closed#
    What it means
    The request was already answered.
    What to do
    Read it with approval_status; nothing more to do.
  • 409approval_pending#
    What it means
    A person has not answered the spending request for this draft yet.
    What to do
    A person has not answered the request for this draft. Do not ask again: poll approval_status with its approvalId, and tell the human it is waiting at approveAt.
  • 409campaign_state#
    What it means
    The campaign is not in a state this tool works on (for example pausing one that is not active).
    What to do
    Read the campaign's status in campaigns_list and use the tool that fits it: pause only an active campaign, resume only a paused one, end an active or paused one.
  • 409cap_exceeded#
    What it means
    The launch would pass the token's daily or monthly spending cap, or the key has already decided its day's quota of clips. A refusal, not a question for a person. Nothing was spent or decided.
    What to do
    A refusal, not a question; nothing was spent or decided. Do not retry today. Tell the human which limit was reached (whoami → limits); only a person changes it, or the count restarts at the next UTC day or month.
  • 409clip_appealed#
    What it means
    The creator appealed this clip; the appeal is answered in the workspace, not through a key.
    What to do
    Leave it. Tell the human the clip is under appeal and waits for them in the workspace.
  • 409clip_limit#
    What it means
    This key has decided its day's quota of clips.
    What to do
    Stop deciding today. Tell the human; the count restarts at the next UTC day.
  • 409conflict_retry#
    What it means
    Another request was working on the same thing at the same moment and this one was rolled back whole; send it again (Retry-After).
    What to do
    Another request touched the same thing at the same moment and this one was rolled back whole. Wait one second (Retry-After) and retry the identical call with the same key.
  • 409draft_has_approval_history#
    What it means
    A draft that a person was asked about cannot be discarded.
    What to do
    A person was already asked about this draft, so it cannot be discarded through the API. Leave it, or tell the human to remove it in the workspace.
  • 409entity_unverified#
    What it means
    The brand's company has not been verified, which publishing requires.
    What to do
    Nothing was published. The brand's company is not verified yet: read whoami → readiness; if company is missing, call company_set; if submitted, tell the human there is nothing to send and that launching waits for acceptance.
  • 409geography_unavailable#
    What it means
    A country of the campaign cannot be served yet.
    What to do
    Nothing was published. Country targeting cannot be served yet: save the draft with payableCountries: [] (pay for any country), quote again.
  • 409idempotency_conflict#
    What it means
    That idempotency key was used for a different request.
    What to do
    That key already belongs to a different request. Use a NEW key for this intent; reuse a key only to repeat the identical call.
  • 409idempotency_in_flight#
    What it means
    A request with that key is still running; ask again for its answer.
    What to do
    The first attempt with this key is still running. Wait a second and retry the identical call with the same key; do not use a new key.
  • 409not_a_draft#
    What it means
    The campaign has been published; only a draft can be changed or discarded.
    What to do
    The campaign is published, so its text can no longer be saved or discarded here. Use campaign_set_state, campaign_terms_update (improvements only), campaign_budget_add or campaign_end, or tell the human.
  • 409not_pending#
    What it means
    The clip is not awaiting the brand's decision (already decided, frozen by the platform's checks, or on its way to payment).
    What to do
    Read it with clip_detail: only a clip with decidable: true can be decided. A held clip is in the platform's hands and a decided one stays decided; tell the human if it matters.
  • 409quote_closed#
    What it means
    The quote was closed (its request was answered or cancelled). Nothing was spent.
    What to do
    Nothing was spent. Read approval_status for how the request ended; quote again only if you still need the launch.
  • 409quote_expired#
    What it means
    The quote lapsed; quote again. Nothing was spent.
    What to do
    Nothing was spent. Quote again with campaign_quote_issue and launch right away with the new quoteId.
  • 409quote_kind_mismatch#
    What it means
    The quote is for adding money to a running campaign, or for launching a draft, and was finished with the other tool. Nothing was spent.
    What to do
    Nothing was spent. A quote made with addBudget is finished with campaign_budget_add; a quote of a draft is finished with campaign_activate.
  • 409quote_stale#
    What it means
    The draft changed after it was quoted; quote it again. Nothing was spent.
    What to do
    The draft changed after it was quoted. Nothing was spent. Quote again with campaign_quote_issue, show the human the new price if it differs, then launch with the new quoteId.
  • 409quote_used#
    What it means
    The quote was already used. Nothing further was spent.
    What to do
    Nothing further was spent. Do not launch again: read approval_status or events_list (campaign.activated) to see what the first attempt did.
  • 409rejection_contradicted#
    What it means
    The platform's own checks found the opposite of that reason.
    What to do
    Do not insist. Read checks in clip_detail, pick the reason that is true, or approve.
  • 409rejection_unmeasured#
    What it means
    No measurement has flagged what that reason says, so it cannot be used yet.
    What to do
    Wait for a reading (try again later) or refuse for a reason that is true now; if none is, leave the clip for the person.
  • 409token_owner_lapsed#
    What it means
    The person who made the token no longer holds the rights it acts with.
    What to do
    The person who made the key no longer has access to this account, so every write is refused. Tell the human to make a new key.
  • 409token_revoked#
    What it means
    The token was revoked while the request ran.
    What to do
    The key was revoked while the call ran. Stop; tell the human. Do not retry.
  • 409too_many_open_invoices#
    What it means
    The account already has the most unpaid invoices it may.
    What to do
    Read wallet_deposit_info and reuse an open invoice (tell the person to pay it), instead of asking for another.
  • 409too_many_pending_approvals#
    What it means
    The brand already has the most spending requests waiting that it may.
    What to do
    Too many requests wait for a person. Do not add more: tell the human to answer or let lapse the waiting ones (approveAt of each), then retry.
  • 409webhook_exists#
    What it means
    That endpoint already exists.
    What to do
    Use the existing endpoint; read its state in the workspace (API access) instead of creating it again.
  • 409webhook_limit#
    What it means
    The account already has the most webhook endpoints it may.
    What to do
    Tell the human to remove an endpoint they no longer use in the workspace (API access) before adding another.
  • 413payload_too_large#
    What it means
    The request body is larger than the API takes.
    What to do
    Send less in one call: fewer items, shorter text. Do not retry unchanged.
  • 422budget_too_small#
    What it means
    The amount does not cover the minimum commission and leave anything for creators. Nothing was created or added.
    What to do
    Nothing was created. Raise the amount above the minimum the message names and call again.
  • 422clock_ceiling#
    What it means
    The test space's clock cannot go further (a year in all).
    What to do
    Call sandbox_reset with confirm: true to start the space over, or stop here.
  • 422company_incomplete#
    What it means
    The legal details go together.
    What to do
    Send legalName, country and registrationNumber in one call, without confirm first to preview.
  • 422draft_incomplete#
    What it means
    The draft is missing something it needs before it can be priced or published.
    What to do
    Read the missing list in the answer, set each field with campaign_draft_save (same externalRef), then quote again.
  • 422dry_run_mismatch#
    What it means
    The Prefer: dry-run header and the dryRun argument disagree.
    What to do
    Send dryRun once, or the same in both the header and the argument.
  • 422dry_run_unsupported#
    What it means
    A dry run is not available for this request (an invoice on a card or crypto rail is opened at the payment provider, which a dry run cannot take back).
    What to do
    A rehearsal is not possible for this request. Ask the human before doing it for real, or choose a rail that supports it (bank transfer).
  • 422idempotency_key_mismatch#
    What it means
    The Idempotency-Key header and the idempotencyKey argument differ.
    What to do
    Send the key once: either the header or the idempotencyKey argument, or the same value in both.
  • 422idempotency_key_required#
    What it means
    A write needs an idempotency key (the SDK sends one).
    What to do
    Add idempotencyKey (any unique string for this one intent, for example <verb>-<thing>-1) and call again. A dryRun: true call needs none.
  • 422invalid_amount#
    What it means
    The amount is not one this API accepts (currency or bounds); the message says which.
    What to do
    Fix the amount as the message says (whole minor units, the account's currency, within the bounds) and call again.
  • 422invalid_arguments#
    What it means
    The arguments do not match the tool's input schema; the message says which.
    What to do
    Fix the field the message names (it says what is wrong and what is expected) and call again. Do not retry unchanged.
  • 422invalid_cursor#
    What it means
    The pagination cursor is not one this API issued.
    What to do
    Drop cursor and read the first page again; pass only a nextCursor this API returned, unchanged.
  • 422invalid_decision#
    What it means
    The decision is not valid for this clip (a refusal needs a code and a note; an approval takes neither).
    What to do
    Approve with {clipId, decision: "approve"} only. Reject with a code from the clip's rejectableFor and a note of enough characters; then call again.
  • 422invalid_limits#
    What it means
    The key's limits are not consistent.
    What to do
    Only a person sets limits, in the workspace; tell the human.
  • 422invalid_request#
    What it means
    The request itself is malformed (body, header or argument value).
    What to do
    Fix what the message names (body, header or value) and call again. Do not retry unchanged.
  • 422limits_need_spend_scope#
    What it means
    Limits only make sense for a key with the spending scope.
    What to do
    Only a person sets limits; tell the human.
  • 422nothing_to_change#
    What it means
    The call carried no term to change.
    What to do
    Send at least one of ratePerThousandMinor, platforms, topics, payableCountries, reviewSlaHours.
  • 422over_ceiling#
    What it means
    The reserve is above the platform's ceiling for one launch via the API. Nothing was spent.
    What to do
    Nothing was spent. The reserve is above the platform's ceiling for one launch through the API. Use a smaller budget, or tell the human to publish this one in the workspace.
  • 422ref_ambiguous#
    What it means
    The campaign reference names two different campaigns (one's slug is another's externalRef). Nothing was done; name the one you mean by its slug.
    What to do
    Two campaigns match that reference. Nothing was done. Repeat the call naming the one you mean by its slug (from campaigns_list).
  • 422rejection_not_in_rules#
    What it means
    The campaign has no rule behind that reason.
    What to do
    Use a code from rejectableFor in clip_detail: the campaign can only refuse for a rule it set.
  • 422scope_not_in_test_space#
    What it means
    A test key cannot hold a scope that sets up the real company or bank.
    What to do
    Make the key with the other scopes; the test space needs none of those.
  • 422test_wallet_full#
    What it means
    The test wallet is at its ceiling.
    What to do
    You have enough test money: launch campaigns with it, or sandbox_reset (with confirm: true) to start from zero.
  • 422webhook_address_refused#
    What it means
    That webhook address is not one we may deliver to (not https, not on a public name, or on a port other than 443).
    What to do
    Use a public https address on port 443 that answers on its own name; tell the human if it must be elsewhere.
  • 429approval_cooldown#
    What it means
    A person refused the token's last launch; it must wait before asking again (Retry-After).
    What to do
    A person refused your last launch. Do not ask again until retryAfterSec has passed, and tell the human you were refused; ask them what to change first.
  • 429rate_limited#
    What it means
    Too many calls in the last minute on this token or network (or too many quotes and launches in the last hour); wait for Retry-After seconds.
    What to do
    Wait exactly retryAfterSec seconds (the Retry-After header; for reads and writes it is seconds, for quotes and launches up to an hour), then retry the same call: the refused call did nothing, so repeating it is safe. Do not send parallel calls meanwhile, and do not change the key or the arguments.
  • 500internal_error#
    What it means
    A fault on the server's side; nothing was changed. The message carries a reference to quote to support.
    What to do
    Nothing was changed. Retry once with the same key; if it fails again, tell the human and quote the reference (cid) from the message.
  • 503api_unavailable#
    What it means
    The API is paused; nothing is wrong with the token. Retry later.
    What to do
    Nothing is wrong with your key or call. Wait about a minute (Retry-After, if given), then retry the same call.
  • 503sandbox_busy#
    What it means
    The test space is working on too many requests.
    What to do
    Wait a few seconds and retry the same call with the same key.
  • 503sandbox_unavailable#
    What it means
    This deployment has no test database, so test keys do not work.
    What to do
    Use a live key, or tell the human test keys are unavailable here.

Every error is { error: { code, message, details? } }. Branch on the code, never on the message.