Errors
An API error answers with an HTTP status and a body naming its code, a message and a docUrl that links to its page here.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request is invalid |
| 400 | bundle_mismatch | The device's bundle ID is not this app's |
| 401 | invalid_api_key | The API key is missing, unknown or revoked |
| 401 | invalid_token | The sign-in or AI tool token is not valid |
| 401 | reauth_required | Sign in again to do this |
| 402 | plan_limit_exceeded | Over your plan's limit |
| 403 | private_beta | This address hasn't been invited yet |
| 403 | forbidden | This caller can't do this |
| 403 | invalid_user_signature | The user ID's signature is not valid |
| 404 | not_found | Not found in this app |
| 409 | conflict | It conflicts with the current state |
| 409 | idempotency_conflict | The Idempotency-Key was used with a different body |
| 409 | not_cancelable | The notification can't be canceled |
| 409 | device_invalid | The device is no longer valid |
| 413 | payload_too_large | The notification is too large |
| 422 | apns_not_configured | No valid APNs key for this environment |
| 422 | broadcast_not_enabled | Broadcast is not turned on for this app |
| 429 | rate_limited | Too many requests |
| 500 | internal_error | Something went wrong on our side |
| 503 | apns_unreachable | Apple didn't answer |
| 503 | try_again | Try again in a moment |
When a push fails at Apple
A send the API accepted can still fail for one device. The delivery log names the reason; Delivery failures explains each one.