Skip to Content
CallMitraDocs
Errors

webhook_event_type_unknown

One or more event types are not recognised.

HTTP statusTypeCode
400invalid_request_errorwebhook_event_type_unknown

What it means

Every entry in events must be an event type from GET /webhook-event-types. Send an empty list to receive every event type.

How to handle it

Fix the request before sending it again; retrying the same request returns the same error. error.param names the offending field when there is one.

Example response

{
  "detail": "One or more event types are not recognised.",
  "error": {
    "type": "invalid_request_error",
    "code": "webhook_event_type_unknown",
    "message": "One or more event types are not recognised.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/webhook_event_type_unknown",
    "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 endpoint
  • PATCH /api/v1/webhook-endpoints/{endpoint_id} — Update a webhook endpoint

On this page