BizKitHub
PUBLIC_API_KEY_SCOPE_NOT_ALLOWED

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

Z BizKitHub Docs, referencia chybových kódov API

Názvy a popisy kódov udržiavame v angličtine.

HTTP 403Verejné 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.

Ako to vyriešiť

  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.

Ukážka odpovede

API odpovie statusom HTTP 403 a telom vo formáte JSON. Porovnávajte errorCode, nie message. Správy sa môžu preformulovať, kódy zostávajú rovnaké.

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"
}