Skip to content
Docs

Overview

Errors

The error codes the Webhooks API returns and the most common fixes for each of them.

Overview

Every route can return the errors below. Branch on code; the message is for people and may change.

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

CodeHTTPWhen
invalid_argument400A body field, query parameter, or address is malformed, or a network is not on this webhook
unauthorized401The project ID or webhook key is missing, wrong, or was rotated
credits_exhausted402No credits are left this billing period, so new addresses cannot be added
plan_feature_denied403The plan does not include webhooks, or a network is not available for webhooks
plan_chain_denied403The chain is not on your plan
plan_limit_addresses403Adding the addresses would go over your plan's watched-address limit
forbidden403The project or account is disabled
not_found404No webhook exists for the project, or the address ID does not exist
conflict409Addresses were added before the webhook passed a test event
rate_limit_exceeded429Too many requests, or a test event sent within 3 seconds of the last one (retryable)
internal500Unexpected server error (retryable)
json
{
  "error": {
    "code": "invalid_argument",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}

Common fixes

  • conflict when adding addresses: send a test event and make sure your server answers with a 2xx status.
  • invalid_argument naming a network: add the network to the webhook's enabledChainIds first.
  • unauthorized after a key rotation: update the key on every server that calls the API.