Errors
webhook_workspace_required
Webhooks are managed inside a workspace.
| HTTP status | Type | Code |
|---|---|---|
| 403 | permission_error | webhook_workspace_required |
What it means
Webhook settings belong to one workspace. Sign in as a member of that workspace, or use an API key created in it.
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": "Webhooks are managed inside a workspace.",
"error": {
"type": "permission_error",
"code": "webhook_workspace_required",
"message": "Webhooks are managed inside a workspace.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/webhook_workspace_required",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/webhook-endpoints/— Create a webhook endpointPOST /api/v1/webhook-endpoints/{endpoint_id}/test— Send a test event