---
title: "Create a webhook"
method: POST
path: "/v2/webhooks/"
tags: ["webhooks"]
---

# Create a webhook

`POST /v2/webhooks/`

Create a webhook

## Request body

- object
  - `metadata` WebhookResourceMetadata
    - `webhook_url` string, required — Valid HTTPS endpoint to be notified upon event(s) occurring
    - `events` WebhookEvent[], required — Subscribed events that trigger a notification
    - `name` string, required — Display name for webhook subscription
    - `description` string — Description for the webhook subscription
    - `site_ids` ResourceId[], required — List of site IDs corresponding to the webhook Each site ID is the unique identifier for each property. You can specify any number of site IDs in this array.

## Response `201`

Resource successfully created

- WebhookResourceReadCreate — Resource for managing the individual webhooks of an account
  - `schema` string
  - `id` string — Unique identifier for a resource
  - `created` string — Date and time at which the resource was created
  - `last_modified` string — Date and time at which the resource was most recently modified
  - `type` string — Name of the type of resource.
  - `relationships` object — Ancilliary resources associated to the primary resource being read
  - `metadata` WebhookResourceMetadata
    - `webhook_url` string, required — Valid HTTPS endpoint to be notified upon event(s) occurring
    - `events` WebhookEvent[], required — Subscribed events that trigger a notification
    - `name` string, required — Display name for webhook subscription
    - `description` string — Description for the webhook subscription
    - `site_ids` ResourceId[], required — List of site IDs corresponding to the webhook Each site ID is the unique identifier for each property. You can specify any number of site IDs in this array.
  - `secret` string — Shared secret used for verifying authenticity of webhook

## Other responses

- `400` — Bad Request The request either lacks certain attributes or contains malformed/invalid attributes.
- `409` — Request conflicts with state of target resource

---

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