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

# Create webhook

`POST /api/v5/webhooks`

Create webhook. Category value must be one of the predefined values for webhooks' categories

## Request body

- BodyWebhooksCreateApiV5WebhooksPost
  - `webhook` WebhookInCreate, required
    - `url` string, uri, required
    - `category` string, required

## Response `201`

Successful Response

- WebhookInResponse
  - `webhook` Webhook, required — Webhook model
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `userId` integer, required
    - `url` string, required
    - `category` 'call_received', required — An enumeration.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pavlok/apis/pavlok-api-v5.md) · [All operations](https://skmtc.net/pavlok/apis/pavlok-api-v5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pavlok/pavlok-api-v5/revisions/3d192098b1ac/schema)
