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

# Create webhook

`POST /api/v1/webhooks`

## Request

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

Create webhook

## Request body

- CreateWebhookRequest
  - `url` string, uri, required
  - `events` string[], required
  - `description` string
  - `project_id` string, uuid

## Response `201`

Success

- WebhookEndpoint
  - `id` string, uuid
  - `url` string, uri
  - `events` string[]
  - `active` boolean
  - `signing_secret` string: Returned once on create only

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Rate limited

---

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