# `PolarExpress.Schemas.WebhookEndpointCreate`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/schemas/webhook_endpoint_create.ex#L2)

WebhookEndpointCreate

Schema to create a webhook endpoint.

# `t`

```elixir
@type t() :: %PolarExpress.Schemas.WebhookEndpointCreate{
  events: [PolarExpress.Schemas.WebhookEventType.t()] | nil,
  format: PolarExpress.Schemas.WebhookFormat.t() | nil,
  organization_id: String.t() | nil,
  secret: String.t() | nil,
  url: String.t() | nil
}
```

* `events` - The events that will trigger the webhook.
* `format` - The format of the webhook payload.
* `organization_id` - The organization ID associated with the webhook endpoint. **Required unless you use an organization token.** Nullable.
* `secret` - Nullable. **Deprecated.**
* `url` - The URL where the webhook events will be sent. Format: uri. Max length: 2083.

# `schema_name`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
