# create_webhook_endpoint (/reference/webhooks/create-webhook-endpoint)



## POST https://api.finic.ai/v1/webhook_endpoints

Adds an address to send events to (an admin's key). `url` is public and `https`. `event_types` lists types, groups (`screening.*`) or `*`. The response has the signing `secret`, shown only this once. An organization has at most 20 endpoints.

Authorization: `Bearer <API key>` (see [Authentication](/authentication)).

### Request body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes |  |
| `event_types` | array of string | yes |  |
| `description` | string |  |  |

Example:

```json
{
  "url": "https://example.com/webhooks/finic",
  "event_types": [
    "screening.*",
    "verification.completed",
    "business.status_changed"
  ]
}
```

### Responses

- **201**: The endpoint, with its secret.

- **400**: `invalid_request`: the request breaks a rule of the endpoint. `param` names the field at fault.

- **401**: `authentication_error`: the API key is missing, unknown, revoked or expired.

- **403**: `permission_denied`: this needs an API key an admin of the organization created.
