---
title: "Creates a webhook topic"
method: POST
path: "/webhook-topics"
tags: ["Agency Group Webhook Topic"]
---

# Creates a webhook topic

`POST /webhook-topics`

## Request body

- NewWebhookTopic
  - `type` 'AgencyGroup', required
  - `name` string, required — name of the topic
  - `description` string, required — the description of the topic
  - `routing_strategy` 'none' | 'type_id' — defines the routing strategy that will be used with this topic

## Response `201`

the created Agency Group web hook topic

- WebhookTopic
  - `__v` integer, required — The document version
  - `_id` string, required — the id of the webhook topic
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `name` string, required — name of the topic
  - `description` string, required — the description of the topic
  - `routing_strategy` 'none' | 'type_id' — defines the routing strategy that will be used with this topic

## Other responses

- `400` — Validation Error. Usually caused by a missing or invalid parameter.
- `401` — Authorization Error. Thrown if the user does not have access to resource.
- `default` — unexpected error

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
