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

# Create webhook

`POST /webhooks`

## Request body

- CreateWebhookRequestBody
  - `credit_trigger_configs` CreditTriggerConfig[], nullable
    - `credit_id` string, required
  - `entitlement_trigger_configs` EntitlementTriggerConfig[], nullable
    - `feature_id` string, required
  - `name` string, required
  - `request_types` WebhookRequestType[], required
  - `url` string, required

## Response `201`

Created

- object
  - `data` WebhookResponseData, required
    - `created_at` string, date-time, required
    - `credit_trigger_configs` CreditTriggerConfig[], nullable
      - `credit_id` string, required
    - `entitlement_trigger_configs` EntitlementTriggerConfig[], nullable
      - `feature_id` string, required
    - `id` string, required
    - `name` string, required
    - `request_types` WebhookRequestType[], required
    - `secret` string, required
    - `status` 'active' | 'inactive', required
    - `updated_at` string, date-time, required
    - `url` string, required
  - `params` object, required — Input parameters

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

## Changes

- **2026-07-22** `2a86c9635dd0` — 2 warning, 2 info
  - added the new `auto.topup.success` enum value to the `data/request_types/items/` response property for the response status `201`
  - added the new `credit.purchase.success` enum value to the `data/request_types/items/` response property for the response status `201`
  - added the new `auto.topup.success` enum value to the request property `request_types/items/`
  - added the new `credit.purchase.success` enum value to the request property `request_types/items/`

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

---

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