logoAccess

forbidden

The API key does not have permission to perform this action.

Type: authentication_error
HTTP status: 403 Forbidden

Cause

The API key is valid but isn't allowed to do this:

  • It tried to create or roll a key with permissions it doesn't hold itself (the message lists them).
  • It lacks the permission the operation needs.
  • The key has been disabled.

Response

{
  "error": {
    "type": "authentication_error",
    "code": "forbidden",
    "message": "Your API key does not have permission to perform this request.",
    "doc_url": "https://docs.tryaccess.xyz/docs/errors/forbidden"
  }
}

Resolution

  • Check the key's permissions in your dashboard under API Keys.
  • Permissions can't be changed after a key is made: create a new key with the permissions you need.
  • Sensitive permissions (refunds, payouts, API keys, owner account) are never granted by wildcards; name them explicitly.
  • If the key is disabled, re-enable it or create a replacement.

See API key permissions for details.

How is this guide?