PUBLIC_API_KEY_SCOPE_NOT_ALLOWEDAPI key does not have the required scope for this endpoint.
Aus BizKitHub Docs, der Referenz der API-Fehlercodes
Titel und Beschreibungen der Codes pflegen wir auf Englisch.
HTTP 403Öffentliche 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.
So beheben Sie es
- 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.
Beispielantwort
Die API antwortet mit HTTP 403 und einem JSON-Body. Vergleichen Sie errorCode, nicht message. Meldungen können umformuliert werden, Codes bleiben stabil.
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"
}