Skip to content
Docs

Overview

Request and response envelope

Successful responses wrap results in data, and failures return a structured error object.

Overview

Successful JSON responses wrap payloads in data:

json
{
  "data": { /* endpoint-specific */ },
  "meta": { "request_id": "req_…" }
}

Errors

json
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or missing credentials.",
    "retryable": false
  }
}

Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.

CodeHTTPWhen
unauthorized401Missing or invalid credentials
invalid_argument400Bad query, body, or chain id
plan_chain_denied403Chain not on plan
chain_disabled403Chain disabled in Console
unsupported_capability400Feature not available (e.g. testnet prices)
credits_exhausted402The organization has used its credit allowance
plan_feature_denied403Your plan does not include this feature
insufficient_funds400Transaction rejected: balance too low for the amount and fee
fee_too_low400Transaction rejected: fee too low — rebuild with a higher fee
tx_expired400Transaction expired before it was accepted — rebuild and sign again
nonce_conflict409Nonce, sequence or inputs already used — rebuild and sign again
already_broadcast409This signed transaction was already submitted
rate_limit_exceeded429Requests per minute for your plan reached (per project) — retry with backoff (retryable)
provider_unavailable503A network data service is temporarily unavailable (retryable)
json
{
  "error": {
    "code": "unauthorized",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}

Each endpoint page lists route-specific codes. See Your first API call in Get started. Log the x-request-id response header and include it when you contact support.