---
title: "Create a subscription"
method: POST
path: "/Subscription"
tags: ["Subscription"]
---

# Create a subscription

`POST /Subscription`

Registers a `Subscription` so mdhub sends `rest-hook` webhook notifications
to your endpoint when resources matching the `criteria` change.

## Response `201`

Subscription created

## Other responses

- `400` — Bad request - malformed resource or parameters.
- `401` — Unauthorized - missing or invalid bearer token.
- `403` — Forbidden - the token lacks the required scope.
- `422` — Unprocessable entity - the resource failed validation.
- `429` — Too Many Requests - rate limit exceeded.

---

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