---
title: "Subscribes to a webhook notification"
method: POST
path: "/agency-group/{agency_group_id}/webhook-subscription"
tags: ["Agency Group Webhook Subscription"]
---

# Subscribes to a webhook notification

`POST /agency-group/{agency_group_id}/webhook-subscription`

## Request body

- WebhookSubscription
  - `url` string, required — The callback url that has been registered
  - `topic` string, required — name of the topic

## Response `200`

the web hook subscription

- PostSubscriptionWebhookResponse
  - `url` string, required — The callback url that has been registered
  - `topic` string, required — name of the topic
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required

## 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.
- `403` — Permission denied error
- `404` — Resource not found
- `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.dev/staffshift/apis/staffshift-api-gateway/revisions/6e2cb83db3a9?raw)
