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

# Create webhook

`POST /webhooks`

## Request body

- object
  - `url` string, uri, required — HTTPS URL
  - `eventTypes` EventType[], required — Array of event types to subscribe to.

## Response `201`

Webhook created

- object
  - `id` string, required
  - `url` string, uri, required
  - `secret` string, required
  - `eventTypes` EventType[], required — Array of event types to subscribe to.
  - `createdAt` string, date-time, required

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `402` — Payment required. Returns a WWW-Authenticate header with an MPP challenge for pay-per-use endpoints, or indicates a subscription/credit issue for identity-authenticated endpoints.

## Changes

- **2026-04-25** `2adc33156b4b` — 2 breaking, 4 warning, 9 info
  - removed the enum value `follower.gained` of the request property `eventTypes/items/`
  - removed the enum value `follower.lost` of the request property `eventTypes/items/`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `400`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `401`
  - …11 more

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

---

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