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.
| Code | HTTP | When |
|---|---|---|
| invalid_argument | 400 | A body field, query parameter, or address is malformed, or a network is not on this webhook |
| unauthorized | 401 | The project ID or webhook key is missing, wrong, or was rotated |
| credits_exhausted | 402 | No credits are left this billing period, so new addresses cannot be added |
| plan_feature_denied | 403 | The plan does not include webhooks, or a network is not available for webhooks |
| plan_chain_denied | 403 | The chain is not on your plan |
| plan_limit_addresses | 403 | Adding the addresses would go over your plan's watched-address limit |
| forbidden | 403 | The project or account is disabled |
| not_found | 404 | No webhook exists for the project, or the address ID does not exist |
| conflict | 409 | Addresses were added before the webhook passed a test event |
| rate_limit_exceeded | 429 | Too many requests, or a test event sent within 3 seconds of the last one (retryable) |
| internal | 500 | Unexpected server error (retryable) |
json
{
"error": {
"code": "invalid_argument",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}Common fixes
conflictwhen adding addresses: send a test event and make sure your server answers with a 2xx status.invalid_argumentnaming a network: add the network to the webhook'senabledChainIdsfirst.unauthorizedafter a key rotation: update the key on every server that calls the API.