# webhook_event_type_unknown (/errors/webhook_event_type_unknown)

| HTTP status | Type | Code |
| --- | --- | --- |
| 400 | `invalid_request_error` | `webhook_event_type_unknown` |

## What it means [#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 [#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 [#example-response]

```json
{
  "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](/errors) for the envelope.

## Returned by [#returned-by]

- `POST /api/v1/webhook-endpoints/` — Create a webhook endpoint
- `PATCH /api/v1/webhook-endpoints/{endpoint_id}` — Update a webhook endpoint