---
title: "Create a webhook subscription (legacy route)"
method: POST
path: "/v1/workspaces/{workspaceId}/webhooks"
tags: ["webhooks"]
---

# Create a webhook subscription (legacy route)

`POST /v1/workspaces/{workspaceId}/webhooks`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/workspaces/{workspaceId}/webhooks`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Request body

- CreateWebhookDto
  - `url` string, required
  - `secret` string, required
  - `events` string[], required: Events to subscribe to

## Response `201`

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
