NowgateDocs

invalid_api_key

The API key is not valid.

On this page

HTTP status: 401 Unauthorized. Retrying the same request unchanged fails the same way.

Why it happens

  • It is mistyped or truncated.
  • It was revoked.

What to do

Check the key, or create a new one.

Example

The response is application/problem+json. Branch on code, never on title or detail. See errors for the format.

{
  "type": "https://docs.nowgate.io/errors/invalid_api_key",
  "title": "Unauthorized",
  "status": 401,
  "detail": "What exactly was wrong, in a sentence.",
  "instance": "/v1/payments",
  "code": "invalid_api_key",
  "request_id": "req_01jc3xb1n6f0q2w8e4r7t5y9v3"
}