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

# Register a new webhook

`POST /v1/webhooks`

## Request body

- WebhookCreate — Wehbook
  - `name` string, required — Name
  - `secretKey` string, nullable — Secret key
  - `types` WebhookType[], required
  - `url` string, required — Webhook Uri

## Response `201`

Created

- Webhook — Wehbook
  - `id` integer — Webhook ID
  - `name` string, required — Name
  - `secretKey` string, nullable — Secret key
  - `types` WebhookType[], required
  - `url` string, required — Webhook Uri

## Other responses

- `400` — Bad Request

---

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