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

# Create webhook endpoint

`POST /webhook-endpoints`

## Request

- Base URL: `https://app.buildworkpro.com/api/v1`
- URL: `https://app.buildworkpro.com/api/v1/webhook-endpoints`
- Auth: HTTP bearer

Creates a new webhook endpoint. The url is SSRF-validated before creation. The signingSecret is returned in the response exactly once — store it now, it cannot be retrieved later.

## Headers

- `Idempotency-Key` string, uuid

## Request body

- object
  - `url` string, required
  - `eventTypes` string[], required
  - `description` string, nullable

## Response `201`

Created

- object
  - `data` WebhookEndpointWithSecret, required
    - `id` integer, required
    - `url` string, required
    - `description` string, nullable, required
    - `eventTypes` string[], required
    - `isActive` boolean, required
    - `consecutiveFailures` integer, required
    - `lastDeliveredAt` union, required
      - string, date-time
      - string
    - `disabledAt` union, required
      - string, date-time
      - string
    - `disabledReason` string, nullable, required
    - `createdAt` union, required
      - string, date-time
      - string
    - `updatedAt` union, required
      - string, date-time
      - string
    - `signingSecret` string, required
  - `meta` ResponseMeta, required
    - `request_id` string: Server-generated request identifier
    - `pagination` PaginationMeta
      - `cursor` string, nullable, required: Opaque cursor for the next page; null when no more results
      - `has_more` boolean, required: Whether more pages are available after this one
      - `count` integer, required: Items in this page

## Other responses

- `422`: Validation failed

---

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