---
title: "Create Webhook Endpoint"
method: POST
path: "/v1/webhooks/endpoints"
tags: ["webhooks", "public"]
---

# Create Webhook Endpoint

`POST /v1/webhooks/endpoints`

Create a webhook endpoint.

**Scopes**: `webhooks:write`

## Request body

- WebhookEndpointCreate — Schema to create a webhook endpoint.
  - `url` string, uri, required — The URL where the webhook events will be sent.
  - `name` string, nullable — An optional name for the webhook endpoint to help organize and identify it.
  - `format` 'raw' | 'discord' | 'slack', required
  - `events` WebhookEventType[], required — The events that will trigger the webhook.
  - `organization_id` string, uuid4, nullable — The organization ID.

## Response `201`

Webhook endpoint created.

- WebhookEndpoint — A webhook endpoint.
  - `created_at` string, date-time, required — Creation timestamp of the object.
  - `modified_at` string, date-time, nullable, required — Last modification timestamp of the object.
  - `id` string, uuid4, required — The ID of the object.
  - `url` string, required — The URL where the webhook events will be sent.
  - `name` string, nullable — An optional name for the webhook endpoint to help organize and identify it.
  - `format` 'raw' | 'discord' | 'slack', required
  - `secret` string, required — The secret used to sign the webhook events.
  - `organization_id` string, uuid4, required — The organization ID associated with the webhook endpoint.
  - `events` WebhookEventType[], required — The events that will trigger the webhook.
  - `enabled` boolean, required — Whether the webhook endpoint is enabled and will receive events.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/polar/apis/polar-api.md) · [All operations](https://skmtc.net/polar/apis/polar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polar/polar-api/revisions/f9688fd328d6/schema)
