INVALID_PUBLISHABLE_KEY
The publishable key does not exist or was revoked
The pk_ key sent to the browser endpoint is unknown.
- http status
- 401
- credits
- Nothing is billed for a failed request.
What it means
The browser endpoint POST /api/v1/email/public authenticates with a publishable key in the request body, not a bearer token. Publishable keys are created on the API keys page and stay visible there; revoking one stops its lookups immediately.
What to do
Check the key on the API keys page. The form widget reads it from its data-key attribute; a stale deploy is the usual cause.
Example response
{
"success": false,
"error": {
"code": "INVALID_PUBLISHABLE_KEY",
"message": "That publishable key does not exist or was revoked.",
"request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
}
}Every error carries the request_id also sent in the X-Request-Id header; quote it when writing to support.
Related
- UNAUTHENTICATED · no valid API key was sent
- INVALID_FEEDBACK_KEY · the feedback key in the webhook URL is unknown
- All error codes
- Verdicts and the risk score
- API reference
markdown version: /docs/errors/INVALID_PUBLISHABLE_KEY.md