Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs
Errors

Errors

Every error code the API answers with, and what to do about each.

The API answers every error with a problem document (RFC 9457), as application/problem+json:

FieldWhat it is
typeThe address of this site's page for the code, which ends /errors/<code>
titleA short summary, for people
statusThe HTTP status
codeStable: branch on this, never on title or detail
detailWhat happened this time, when there's more to say
hintThe next step, in plain words: what to change, or when to try again
sideserver when the problem is on Burn & Claim's side and retrying later is the fix; client when the request needs changing
requestIdThe same as the Request-Id header, for support
errorsvalidation_failed: each field by JSON Pointer pointer, code and detail
retryAfterSeconds to wait before retrying, also in Retry-After
missingPermissionThe permission an account needs
scopesOAuth scopes the token needs

A code never changes once it ships. New codes may appear, so treat one you don't know by its HTTP status.

Submitting transactions has its own outcomes, one per transaction, in a 200 answer: see How a cleanup works.

CodeStatusTitle
invalid_request400The request is not valid
validation_failed400The request failed validation
invalid_api_key401The API key is unknown or revoked
unauthorized401A valid access token is required
api_key_suspended403The key's org has no API access on its plan
forbidden403The access token does not allow this
fresh_sign_in_required403This needs a fresh sign-in
insufficient_permissions403A required permission is missing
insufficient_scope403A required OAuth scope is missing
plan_required403The org's plan doesn't include this
burner_not_found404No burner at this host
not_found404Not found
method_not_allowed405Method not allowed
challenge_used409The challenge was answered already: ask for a new one
conflict409The request conflicts with the current state
fees_changed409The fees changed since the quote: review the new ones
idempotency_key_in_flight409The first request is still running
quote_stale409The quote is too old to prepare a round from: quote again
round_stale409The round is too old to stamp: prepare what is left again
challenge_expired410The challenge expired: ask for a new one
length_required411The request needs a Content-Length
payload_too_large413The request body is too large
unsupported_media_type415Unsupported media type
address_not_payable422SOL sent to this address would be stuck: use a wallet address
altcha_failed422The Altcha proof of work is missing, wrong or expired: solve a new challenge
confirmation_required422Something here can't be undone, and the person hasn't confirmed it
idempotency_key_conflict422The idempotency key names another request
nothing_to_build422Nothing in the selection can be built
proof_failed422The proof does not show control of the address
wallet_needs_sol422The wallet can't pay the network fee: add SOL to it, then retry
wallet_too_large422This address holds too many accounts to clean up here
quota_exceeded429The org's monthly quota is spent: anonymous limits apply until it resets
rate_limited429Too many requests
internal_error500Something went wrong on our side
upstream_unavailable502A service the API depends on is unavailable
scan_busy503Too many large wallets are being scanned right now
service_paused503This action is temporarily paused
unavailable503The API cannot serve this request right now
upstream_timeout504A service the API depends on timed out