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

# Create Webhook

`POST /api/v1/webhooks`

## Request

- Base URL: `https://subscribr.ai`
- URL: `https://subscribr.ai/api/v1/webhooks`
- Auth: HTTP bearer

## Request body

- CreateWebhookRequest
  - `events` string[]
  - `headers` object: Associative header map. Keys use letters, numbers, or hyphens; reserved transport/authentication headers are rejected case-insensitively.
  - `name` string, required
  - `timeout` integer
  - `url` string, uri, required: Must use HTTPS and resolve to a public, non-reserved host; redirects and DNS resolution are revalidated server-side.

## Response `201`

Successful response.

- CreateWebhookResponse
  - `data` object, required
    - `active` boolean, required
    - `events` string[], nullable, required
    - `id` integer, required
    - `name` string, required
    - `secret` string, required
    - `timeout` integer, required
    - `url` string, uri, required
  - `success` boolean, required

## Other responses

- `400`: The request could not be processed.
- `401`: Authentication is required.
- `403`: The token, role, entitlement, or object policy denies this action.
- `404`: The resource was not found or is not visible.
- `422`: One or more request fields are invalid.
- `429`: The request exceeded a rate limit.
- `500`: The service is temporarily unavailable.

---

[API](https://skmtc.dev/subscribr/apis/subscribr-customer-api.md) · [All operations](https://skmtc.dev/subscribr/apis/subscribr-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/subscribr/apis/subscribr-customer-api/revisions/d1f105b58bbd?raw)
