Перейти к содержимому

Ошибки

После этой страницы вы сможете найти любой код ошибки и понять, повторять ли запрос, остановиться или спросить человека. Ветвитесь по code, а не по message: код — это контракт, он никогда не переименовывается, а сообщение могут переформулировать. У HTTP-ошибки формат { "error": { "code", "message", "details" } }, и details.next говорит, что делать; по MCP то же предложение идёт после Next: в тексте и лежит в _meta.error.next. Незнакомый код считайте HTTP-статусом, с которым он пришёл.

Три правила покрывают большинство случаев. 402 и любой 409 про расчёт или запуск означают, что ничего не потрачено. 429 и 503 безопасно повторять с тем же idempotencyKey после ожидания Retry-After секунд. approval_required — не ошибка: это 202, и ничего не потрачено.

Ошибок: 72

Тексты ошибок остаются английскими: это то, что отвечает API. Коды и статусы не переводятся.

  • 401invalid_token#
    Что это значит
    The token is missing, malformed, revoked, belongs to a person who left, or a session cookie was sent beside it.
    Что делать
    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#
    Что это значит
    The wallet does not cover the reserve. Nothing was spent.
    Что делать
    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#
    Что это значит
    The person who made the token lacks the permission the write needs.
    Что делать
    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#
    Что это значит
    Only a signed-in person can do this; a key cannot.
    Что делать
    Tell the human to do it in the workspace (API access).
  • 403scope_missing#
    Что это значит
    The token lacks the scope this tool needs.
    Что делать
    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#
    Что это значит
    No working key like that.
    Что делать
    Nothing to do: the key is already revoked or never existed. Tell the human if you expected it to work.
  • 404approval_not_found#
    Что это значит
    No such spending request for this token.
    Что делать
    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#
    Что это значит
    No campaign with that slug or external reference in this brand.
    Что делать
    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#
    Что это значит
    No clip with that id in this account.
    Что делать
    Read the id again from review_queue or campaign_clips; never type one from memory. Do not retry the same id.
  • 404draft_not_found#
    Что это значит
    No such draft.
    Что делать
    Call campaigns_list with status draft and use a slug from it, or save the draft again with campaign_draft_save.
  • 404not_found#
    Что это значит
    Nothing here by that identifier.
    Что делать
    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#
    Что это значит
    No such quote for this token.
    Что делать
    Quote again with campaign_quote_issue and use the quoteId it returns; a quote belongs to the key that asked for it.
  • 404tool_unknown#
    Что это значит
    No tool has that name.
    Что делать
    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#
    Что это значит
    No delivery like that.
    Что делать
    Read the delivery log in the workspace (API access) for a valid id, and do not type one from memory.
  • 404webhook_not_found#
    Что это значит
    No webhook endpoint like that.
    Что делать
    List the endpoints in the workspace or with whoami (test space) and use an id from it.
  • 409api_token_limit#
    Что это значит
    The workspace already holds the most working keys it may.
    Что делать
    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#
    Что это значит
    The request was already answered.
    Что делать
    Read it with approval_status; nothing more to do.
  • 409approval_pending#
    Что это значит
    A person has not answered the spending request for this draft yet.
    Что делать
    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#
    Что это значит
    The campaign is not in a state this tool works on (for example pausing one that is not active).
    Что делать
    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#
    Что это значит
    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.
    Что делать
    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#
    Что это значит
    The creator appealed this clip; the appeal is answered in the workspace, not through a key.
    Что делать
    Leave it. Tell the human the clip is under appeal and waits for them in the workspace.
  • 409clip_limit#
    Что это значит
    This key has decided its day's quota of clips.
    Что делать
    Stop deciding today. Tell the human; the count restarts at the next UTC day.
  • 409conflict_retry#
    Что это значит
    Another request was working on the same thing at the same moment and this one was rolled back whole; send it again (Retry-After).
    Что делать
    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#
    Что это значит
    A draft that a person was asked about cannot be discarded.
    Что делать
    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#
    Что это значит
    The brand's company has not been verified, which publishing requires.
    Что делать
    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#
    Что это значит
    A country of the campaign cannot be served yet.
    Что делать
    Nothing was published. Country targeting cannot be served yet: save the draft with payableCountries: [] (pay for any country), quote again.
  • 409idempotency_conflict#
    Что это значит
    That idempotency key was used for a different request.
    Что делать
    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#
    Что это значит
    A request with that key is still running; ask again for its answer.
    Что делать
    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#
    Что это значит
    The campaign has been published; only a draft can be changed or discarded.
    Что делать
    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#
    Что это значит
    The clip is not awaiting the brand's decision (already decided, frozen by the platform's checks, or on its way to payment).
    Что делать
    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#
    Что это значит
    The quote was closed (its request was answered or cancelled). Nothing was spent.
    Что делать
    Nothing was spent. Read approval_status for how the request ended; quote again only if you still need the launch.
  • 409quote_expired#
    Что это значит
    The quote lapsed; quote again. Nothing was spent.
    Что делать
    Nothing was spent. Quote again with campaign_quote_issue and launch right away with the new quoteId.
  • 409quote_kind_mismatch#
    Что это значит
    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.
    Что делать
    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#
    Что это значит
    The draft changed after it was quoted; quote it again. Nothing was spent.
    Что делать
    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#
    Что это значит
    The quote was already used. Nothing further was spent.
    Что делать
    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#
    Что это значит
    The platform's own checks found the opposite of that reason.
    Что делать
    Do not insist. Read checks in clip_detail, pick the reason that is true, or approve.
  • 409rejection_unmeasured#
    Что это значит
    No measurement has flagged what that reason says, so it cannot be used yet.
    Что делать
    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#
    Что это значит
    The person who made the token no longer holds the rights it acts with.
    Что делать
    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#
    Что это значит
    The token was revoked while the request ran.
    Что делать
    The key was revoked while the call ran. Stop; tell the human. Do not retry.
  • 409too_many_open_invoices#
    Что это значит
    The account already has the most unpaid invoices it may.
    Что делать
    Read wallet_deposit_info and reuse an open invoice (tell the person to pay it), instead of asking for another.
  • 409too_many_pending_approvals#
    Что это значит
    The brand already has the most spending requests waiting that it may.
    Что делать
    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#
    Что это значит
    That endpoint already exists.
    Что делать
    Use the existing endpoint; read its state in the workspace (API access) instead of creating it again.
  • 409webhook_limit#
    Что это значит
    The account already has the most webhook endpoints it may.
    Что делать
    Tell the human to remove an endpoint they no longer use in the workspace (API access) before adding another.
  • 413payload_too_large#
    Что это значит
    The request body is larger than the API takes.
    Что делать
    Send less in one call: fewer items, shorter text. Do not retry unchanged.
  • 422budget_too_small#
    Что это значит
    The amount does not cover the minimum commission and leave anything for creators. Nothing was created or added.
    Что делать
    Nothing was created. Raise the amount above the minimum the message names and call again.
  • 422clock_ceiling#
    Что это значит
    The test space's clock cannot go further (a year in all).
    Что делать
    Call sandbox_reset with confirm: true to start the space over, or stop here.
  • 422company_incomplete#
    Что это значит
    The legal details go together.
    Что делать
    Send legalName, country and registrationNumber in one call, without confirm first to preview.
  • 422draft_incomplete#
    Что это значит
    The draft is missing something it needs before it can be priced or published.
    Что делать
    Read the missing list in the answer, set each field with campaign_draft_save (same externalRef), then quote again.
  • 422dry_run_mismatch#
    Что это значит
    The Prefer: dry-run header and the dryRun argument disagree.
    Что делать
    Send dryRun once, or the same in both the header and the argument.
  • 422dry_run_unsupported#
    Что это значит
    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).
    Что делать
    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#
    Что это значит
    The Idempotency-Key header and the idempotencyKey argument differ.
    Что делать
    Send the key once: either the header or the idempotencyKey argument, or the same value in both.
  • 422idempotency_key_required#
    Что это значит
    A write needs an idempotency key (the SDK sends one).
    Что делать
    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#
    Что это значит
    The amount is not one this API accepts (currency or bounds); the message says which.
    Что делать
    Fix the amount as the message says (whole minor units, the account's currency, within the bounds) and call again.
  • 422invalid_arguments#
    Что это значит
    The arguments do not match the tool's input schema; the message says which.
    Что делать
    Fix the field the message names (it says what is wrong and what is expected) and call again. Do not retry unchanged.
  • 422invalid_cursor#
    Что это значит
    The pagination cursor is not one this API issued.
    Что делать
    Drop cursor and read the first page again; pass only a nextCursor this API returned, unchanged.
  • 422invalid_decision#
    Что это значит
    The decision is not valid for this clip (a refusal needs a code and a note; an approval takes neither).
    Что делать
    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#
    Что это значит
    The key's limits are not consistent.
    Что делать
    Only a person sets limits, in the workspace; tell the human.
  • 422invalid_request#
    Что это значит
    The request itself is malformed (body, header or argument value).
    Что делать
    Fix what the message names (body, header or value) and call again. Do not retry unchanged.
  • 422limits_need_spend_scope#
    Что это значит
    Limits only make sense for a key with the spending scope.
    Что делать
    Only a person sets limits; tell the human.
  • 422nothing_to_change#
    Что это значит
    The call carried no term to change.
    Что делать
    Send at least one of ratePerThousandMinor, platforms, topics, payableCountries, reviewSlaHours.
  • 422over_ceiling#
    Что это значит
    The reserve is above the platform's ceiling for one launch via the API. Nothing was spent.
    Что делать
    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#
    Что это значит
    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.
    Что делать
    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#
    Что это значит
    The campaign has no rule behind that reason.
    Что делать
    Use a code from rejectableFor in clip_detail: the campaign can only refuse for a rule it set.
  • 422scope_not_in_test_space#
    Что это значит
    A test key cannot hold a scope that sets up the real company or bank.
    Что делать
    Make the key with the other scopes; the test space needs none of those.
  • 422test_wallet_full#
    Что это значит
    The test wallet is at its ceiling.
    Что делать
    You have enough test money: launch campaigns with it, or sandbox_reset (with confirm: true) to start from zero.
  • 422webhook_address_refused#
    Что это значит
    That webhook address is not one we may deliver to (not https, not on a public name, or on a port other than 443).
    Что делать
    Use a public https address on port 443 that answers on its own name; tell the human if it must be elsewhere.
  • 429approval_cooldown#
    Что это значит
    A person refused the token's last launch; it must wait before asking again (Retry-After).
    Что делать
    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#
    Что это значит
    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.
    Что делать
    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#
    Что это значит
    A fault on the server's side; nothing was changed. The message carries a reference to quote to support.
    Что делать
    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#
    Что это значит
    The API is paused; nothing is wrong with the token. Retry later.
    Что делать
    Nothing is wrong with your key or call. Wait about a minute (Retry-After, if given), then retry the same call.
  • 503sandbox_busy#
    Что это значит
    The test space is working on too many requests.
    Что делать
    Wait a few seconds and retry the same call with the same key.
  • 503sandbox_unavailable#
    Что это значит
    This deployment has no test database, so test keys do not work.
    Что делать
    Use a live key, or tell the human test keys are unavailable here.

Любая ошибка — это { error: { code, message, details? } }. Ветвитесь по коду, а не по тексту.