Skip to content

unauthorized

HTTP 401 · Unauthorized

What happened. The key was not accepted. This one answer covers every reason on purpose: a missing or mistyped key, a key that was revoked or rolled, a connection that was removed or paused, a shop that cannot use the API, a key without the scope the route needs, or a request from an address outside the connection’s allowlist. The answer never says which, so a stolen key teaches nothing.

What to do. Check that the header is Authorization: Bearer psk_live_… (or psk_test_… on a test shop) with the whole key, that the key is still listed in the portal under Settings → Integrations, and that its connection has the scope the route names. Do not retry in a loop.

Errors are Problem Details, served as application/problem+json, with "code": "unauthorized" and "type": "https://passkaar.com/developers/errors/unauthorized", which opens this page on docs.passkaar.com.