auth.invalid_key
HTTP 401 Invalid API credentials
When it happens
Section titled “When it happens”The secret, key ID, OAuth client or access token is not one we know, or it is malformed. The token endpoint also answers this (with error: invalid_client) for a wrong client ID or secret.
What to do
Section titled “What to do”Copy the secret again from where you stored it when the key was created (it is shown only once). If it is lost, rotate the key in the portal. Test keys start with zd_test_, live keys with zd_live_.
Sending the same request again gives the same answer until the cause is fixed.
Details
Section titled “Details”- HTTP status: 401 Unauthorized
- Where you can meet it: Customer API (
/v1) - Code:
auth.invalid_key(stable: match on the code, not on the title or detail text)
Example response
Section titled “Example response”{ "type": "https://docs.zemodata.com/errors/auth.invalid_key", "title": "Invalid API credentials", "status": 401, "code": "auth.invalid_key", "detail": "…", "request_id": "req_01JD3K8ZQ4V6W9XG2M5N7P0R1S", "errors": []}See Errors for how problem responses work, and all error codes.