API error
forbidden_origin
HTTP 403 · no credit is used for a request that ends in an error.
The key is restricted to a list of browser origins and the request came from another Origin.
What to do
Call the API from an allowed origin, or update the allowed origins of the key.
Retry
No: fix the request. When and how often to retry any error: retrying safely.
The answer
{
"error": {
"code": "forbidden_origin",
"message": "This API key is not allowed from this origin.",
"request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
}
}Branch on code, which is stable; message is for people and may change. Keep request_id in your logs.
Headers that come with it:
X-Request-Id: Our ID for the request (same asrequest_idin bodies).
Endpoints that can answer it
GET /v1/validate(403)POST /v1/validate(403)GET /v1/credits(403)GET /v1/usage(403)POST /v1/bulk(403)GET /v1/bulk/{id}(403)DELETE /v1/bulk/{id}(403)POST /v1/bulk/{id}/start(403)GET /v1/bulk/{id}/results(403)