BizKitHub
PUBLIC_API_KEY_SCOPE_NOT_ALLOWED

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

Z BizKitHub Docs, reference chybových kódů API

Názvy a popisy kódů udržujeme v angličtině.

HTTP 403Veřejné 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.

Jak to vyřešit

  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ázka odpovědi

API odpoví statusem HTTP 403 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.

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