Fix common API problems
What each error means and how to fix it, plus what to send us if you're stuck.
| What you see | Likely cause | Fix |
|---|---|---|
| 401 missing_api_key | The header isn't being sent | Check the header is exactly Authorization: Bearer wsk_… |
| 401 invalid_api_key | Wrong, partly copied or revoked key | Copy the key again, without spaces. If it's lost, revoke it and create a new one |
| 404 not_found on an id you know exists | You're using another workspace's key | Each workspace has its own key. Check with GET /me |
| 422 with an errors list | A field is missing or in the wrong format | Read errors: it names each field |
| send_failed, outside the 24-hour window | Plain text to someone who hasn't written in 24 hours (official API) | Send a template |
| send_failed, not on WhatsApp | The number has no WhatsApp account, or is missing the country code | Check the number: country code + number, digits only |
| media_required | Media type but no file | Add media or media_url |
| The image didn't arrive | media_url isn't public, or the file is over 16 MB | Open the link in a private browser window; it should download without a login |
| flow_inactive | The flow is a draft or paused | Publish it or switch it on |
| contact_not_found when enrolling | The person isn't a contact yet | POST /contacts first |
| 429 rate_limited | Too many requests this minute | Wait Retry-After seconds. For bulk sends, use a broadcast |
| Webhook never arrives | URL not public or not https, or a firewall is blocking it | Use Test fire and read the error on the Webhooks page |
| Signature never matches | You're signing parsed JSON, or using the wrong secret | Sign the raw body; check the secret has no extra spaces |
Asking for help
If you're still stuck, contact us with:
Before you start
- The endpoint and method (e.g.
POST /messages) - The time of the request, with your timezone
- The response status and body you got
- The request body, with personal details removed