---
title: "Add a webhook endpoint"
method: POST
path: "/v1/webhooks"
---

# Add a webhook endpoint

`POST /v1/webhooks`

## Request

- Base URL: `https://swissnewco.tollwyn.com`
- URL: `https://swissnewco.tollwyn.com/v1/webhooks`
- Auth: HTTP bearer

## Request body

- WebhookInput
  - `url` string, required: https URL of your receiver
  - `filters` WebhookFilters
    - `canton` string[]
    - `zip` string[]
    - `legal_form` string[]

## Response `201`

Created

- Webhook
  - `id` string, uuid
  - `url` string
  - `secret` string
  - `filters` WebhookFilters
    - `canton` string[]
    - `zip` string[]
    - `legal_form` string[]
  - `enabled` boolean
  - `disabled_reason` string, nullable
  - `created_at` string, date-time

## Other responses

- `400`: An error
- `401`: An error
- `402`: An error
- `429`: An error

---

[API](https://skmtc.dev/tollwyn/apis/swiss-newco-feed-api.md) · [All operations](https://skmtc.dev/tollwyn/apis/swiss-newco-feed-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tollwyn/apis/swiss-newco-feed-api/revisions/98f96727982d?raw)
