BizKitHub
PUBLIC_API_KEY_SCOPE_NOT_ALLOWED

API key does not have the required scope for this endpoint.

HTTP 403Public API
The API key is valid but has scope restrictions that do not include access to this endpoint. Each API key can be limited to specific scopes (e.g. "carddav", "feed.product"). If the key has any scopes assigned, only those endpoints are accessible.

How to resolve

  1. 1

    Check the scopes assigned to your API key in the organisation settings.

  2. 2

    Add the required scope for this endpoint to your API key.

  3. 3

    Use an API key with no scope restrictions (full access) if you need access to all endpoints.

Example response

The API answers with HTTP 403 and a JSON body. Match on errorCode, not on message: messages may be reworded, codes are stable.

application/json
{
  "state": "error",
  "code": 403,
  "message": "API key does not have the required scope for this endpoint.",
  "errorCode": "PUBLIC_API_KEY_SCOPE_NOT_ALLOWED",
  "hint": "The API key is valid but has scope restrictions that do not include access to this endpoint. Each API key can be limited to specific scopes (e.g. \"carddav\", \"feed.product\"). If the key has any scopes assigned, only those endpoints are accessible.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_API_KEY_SCOPE_NOT_ALLOWED"
}