PUBLIC_API_KEY_SCOPE_NOT_ALLOWEDAPI key does not have the required scope for this endpoint.
Z BizKitHub Docs, dokumentacja kodów błędów API
Nazwy i opisy kodów prowadzimy po angielsku.
HTTP 403Publiczne 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 rozwiązać
- 1
Check the scopes assigned to your API key in the organisation settings.
- 2
Add the required scope for this endpoint to your API key.
- 3
Use an API key with no scope restrictions (full access) if you need access to all endpoints.
Przykładowa odpowiedź
API odpowiada statusem HTTP 403 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.
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"
}