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

# Create a new webhook subscription

`POST /api/v1/webhooks`

## Request body

- CreateWebhook
  - `token` string, required
  - `item` object
    - `trigger_key` string, required — trigger key
    - `active` boolean, required — by default it's false
    - `url` string, required — url

## Response `201`

webhook created

## Other responses

- `401` — Error: Unauthorized
- `422` — invalid request - triger_key can't be blank

---

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