Skip to content
SkanPay Docs

publishable_key_not_allowed

A publishable (pk_) key was used where a secret key is required.

HTTP statustypeRetry the same request?
403permission_errorafter a change

Why it happens

Every /v1 endpoint that reads or moves money needs the secret key.

What to do

Call the API from your server with your sk_live_ key.

Example response

403
{
  "error": {
    "type": "permission_error",
    "code": "publishable_key_not_allowed",
    "message": "A human-readable explanation. Do not parse it.",
    "doc_url": "https://docs.skanpay.website/errors/publishable_key_not_allowed",
    "request_id": "req_01J9Z3K8Q4W6XK2M7N5P0R3T8V"
  }
}

All error codes