Errors
api_key_route_forbidden
This endpoint cannot be called with an API key.
| HTTP status | Type | Code |
|---|---|---|
| 403 | permission_error | api_key_route_forbidden |
What it means
Some endpoints (for example account, billing, and key management) are only available from a signed-in dashboard session. Use the dashboard for this action.
How to handle it
The key or user is valid but not allowed to do this. Check the key’s access level and resources (read-only keys can only send GET), or ask a workspace manager.
Example response
{
"detail": "This endpoint cannot be called with an API key.",
"error": {
"type": "permission_error",
"code": "api_key_route_forbidden",
"message": "This endpoint cannot be called with an API key.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/api_key_route_forbidden",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
Any endpoint can return this code.