Skip to content

Why am I getting a 401?

SymptomLikely causeFix
401 on every callaud and iss differ, carry a path (/v2, /v3), or name another environment's hostSet both to the base URL you call, with no path
401 on every calliat/exp in milliseconds, or exp already passedUse Unix seconds; mint a fresh short-lived token
401 on every callSigned with the wrong key or algorithm, or kid names a different keySign with the key issued for this environment; put its id in kid
404 on every callkid in the header does not equal the sub claimSend your key id in both
401 on /v3 only, /v2 worksv3 is not enabled for your organisationAsk us to enable v3
401 with no token checks at allAuthorization header missing or not Bearer <token>Send Authorization: Bearer <token>