---
title: "Create webhook endpoint"
method: POST
path: "/webhook_endpoints"
tags: ["WebhookEndpoints"]
---

# Create webhook endpoint

`POST /webhook_endpoints`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/webhook_endpoints`
- Auth: API key in header `Authorization`

Creates a new webhook endpoint. The secret is only returned on creation.

## Headers

- `Idempotency-Key` string

## Request body

- WebhookEndpointRequest
  - `url` string
  - `status` 'active' | 'inactive'
  - `api_version` string
  - `enabled_events` string[]

## Response `201`

Webhook endpoint created (includes secret)

- WebhookEndpointWithSecret
  - `id` string, required
  - `object` string, required
  - `url` string, required
  - `api_version` string, required
  - `status` 'active' | 'inactive', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `enabled_events` string[], required
  - `secret` string, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
