---
title: "Create Webhook"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Create Webhook

`POST /webhooks`

Creates a webhook endpoint that receives event notifications via HTTP POST.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `api_version` 'v1' | 'v2' | 'v5' — The API version for this webhook. Defaults to `v2`.
  - `child_resource_events` boolean — Whether or not to send events for child resources. For example, if the webhook is created for a company, enabling this will only send events from the company's sub-merchants (child companies).
  - `enabled` boolean — Whether or not the webhook is enabled. Defaults to `true`.
  - `events` string[] — The events to send the webhook for, in dot form (for example `payment.succeeded`).
  - `resource_id` string, nullable — The company or app to create the webhook for. Defaults to the current company.
  - `url` string, required — The URL to send the webhook to.

## Response `200`

webhook created

- Webhook
  - `api_version` 'v1' | 'v2' | 'v5', required — The API version used to format payloads sent to this webhook endpoint.
  - `child_resource_events` boolean, required — Whether events are sent for child resources. For example, if the webhook is on a company, enabling this sends events only from the company's sub-merchants (child companies).
  - `created_at` string, required — When the webhook was created, as an ISO 8601 timestamp.
  - `enabled` boolean, required — Whether this webhook endpoint is currently active and receiving events.
  - `events` string[], required
  - `id` string, required — Webhook ID, prefixed `hook_`.
  - `resource_id` string, required — ID of the resource (company or app) this webhook is attached to.
  - `testable_events` string[], required
  - `url` string, required — Destination URL where webhook payloads are delivered via HTTP POST.
  - `webhook_secret` string, nullable, required — Secret key used to sign webhook payloads for verification. Include this in your HMAC validation logic. Returned on the create response and to interactive dashboard sessions; `null` for API-key and OAuth callers on later reads.

## Other responses

- `400` — Invalid Parameters
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource not found

## Changes

- **2026-07-26** `60bbb4a6ffbc` — 49 breaking, 8 warning, 90 info
  - request property `api_version` was restricted to a list of enum values
  - the request property `child_resource_events` became not nullable
  - the request property `enabled` became not nullable
  - the request property `events` became not nullable
  - …143 more

[Change history](https://skmtc.dev/whop/apis/whop-api/changes/webhooks/post.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) · [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whop/whop-api/revisions/60bbb4a6ffbc/schema)
