Troubleshooting: API and webhooks
What 401, 402, 403 and 429 answers from the API mean, and how to fix webhook deliveries that fail.
هذه الصفحة لم تُترجم بعد، لذلك تُعرض بالإنجليزية.
- من يمكنه استخدام هذه الميزة
- مالك الحساب، المدير، المطوّر
What 401, 402, 403 and 429 answers from the API mean, and how to fix webhook deliveries that fail.
هذه الصفحة لم تُترجم بعد، لذلك تُعرض بالإنجليزية.
The answers the Scratchboard API gives when a request is refused, and what to do when event webhooks do not reach your endpoint.
| Message or symptom | Why | What to do |
|---|---|---|
401 "No authentication provided" | The request has no Authorization header | Send Authorization: Bearer <your key> |
401 "Invalid authentication token" | The value is not an API key (keys start with ak_) | Check that you copied the whole key, without extra spaces |
401 "Invalid API key" | The key is wrong, deleted, disabled or expired, or was rotated | Check the key under Admin → API Keys; enable it, or create or rotate one |
402 "API access isn't included in your current plan. Upgrade to enable it." | Your plan does not include API access | Check your plan under Admin → Subscription |
403 "API key lacks required permission for this endpoint (no scope match)…" | The key's permissions do not cover this request | Edit the key and add the permission, or give it Full access (all endpoints) |
403 on one module only | The key, or the person who created it, has no permission for that module | Add the module under Records by entity, and check the creator's role |
429 "API rate limit exceeded. Retry after …s." | You made more calls in a minute than your plan allows | Wait the number of seconds in Retry-After, then try again; spread calls out. See Rate limits |
429 "Too many failed API key attempts from this address. Try again later." | Many requests from your address used a wrong key | Fix the key in your code and wait a minute |
| A key stopped working by itself | It expired, or the person who created it was deactivated or left | Create a new key as an active user |
| Message or symptom | Why | What to do |
|---|---|---|
| Deliveries show Failed or Retrying | Your endpoint answered with an error, or did not answer within 30 seconds | Check your endpoint's logs. It must answer with a 2xx status quickly; do slow work after answering |
| "Deliveries are failing" on the endpoint | One or more deliveries failed after all retries. The banner says how many in a row | Fix your endpoint, then click Test |
| You got Webhook endpoint "<name>" was disabled | No delivery succeeded for 72 hours and 10 or more in a row failed | Fix your endpoint, then open it and click Re-enable & replay within 7 days (Re-enable when no events are held) |
| Your endpoint refuses the signature | Wrong or old secret, or the body was parsed and re-encoded before checking | Use the current secret (Reveal) and the raw body. See Check the signature |
| The same event arrives twice | A retry after your endpoint answered too late | Ignore requests whose X-Webhook-Id you have already handled |
| No events arrive | The endpoint is switched off, or it is not subscribed to that event or module | Check Endpoint enabled and Subscribed Events on the Details tab |
| "This delivery was already retried 10 times by hand — fix the receiver, then send a test event" | The manual retry limit is used up | Fix your endpoint and click Test |
Write to support@libromi.com with the time of the request, the endpoint or module and the full message. Never send your API key or signing secret.