Skip to content

BAD_KEY

HTTP 401 — Unrecognised key

The Authorization header was missing, was not Bearer <key>, or carried a key we did not issue.

What to do

Send Authorization: Bearer sk_live_… (or sk_test_…) with the whole key. Check for a copied space or a truncated value.

Can I retry?

Not unchanged. Something in the request has to change first — retrying as-is gets the same answer.

The body you received

json
{
  "error": {
    "code": "BAD_KEY",
    "doc": "https://docs.pamopay.co/errors/BAD_KEY",
    "request_id": "req_5f3a9c2b1d4e6f7a8b9c0d1e"
  }
}

Quote request_id when you write to us; it finds the call without anybody grepping by timestamp.

All error codes

Every code, scope and route on this site is rendered from the API's own source.