Skip to main content

invalid_api_key

Status
401 Unauthorized
Code
invalid_api_key
Retry?
No

The API key isn't valid. A key was sent, but Axis doesn't recognise it.

Common causes​

  • The key was revoked in the portal.
  • It was copied with a character missing, or with a space or line break.
  • It's a key for a different environment or a placeholder.

What to do​

Check the key, or make a new one in the portal under Settings > Tenant > Developer API. A revoked key never works again.

Example​

{
"type": "https://developer.zentarinetworks.com/axis/errors/invalid_api_key",
"title": "Unauthorized",
"status": 401,
"detail": "That API key isn't valid. It may have been revoked; create a new one in the portal under Settings > Tenant > Developer API.",
"code": "invalid_api_key",
"traceId": "0HN7Q2KJ1V3F4:00000002"
}

All error codes