---
title: "Register a webhook"
method: POST
path: "/v1/webhooks"
tags: ["Webhooks"]
---

# Register a webhook

`POST /v1/webhooks`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/webhooks`
- Auth: HTTP bearer

## Request body

- CreateWebhookRequest
  - `url` string, uri, required: HTTPS URL to deliver webhook events to
  - `events` string[], required: Event types to subscribe to
  - `description` string

## Response `201`

Webhook registered

- WebhookCreatedResponse
  - `id` string, uuid, required
  - `url` string, uri, required
  - `events` string[], required
  - `secret` string, required: HMAC signing secret for verifying payloads (shown only once)
  - `created_at` string, date-time, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
