---
title: "Create a webhook subscription"
method: POST
path: "/api/webhooksubscriptions"
tags: ["Webhook subscriptions"]
---

# Create a webhook subscription

`POST /api/webhooksubscriptions`

## Request

- Base URL: `https://www.polyblog.io`
- URL: `https://www.polyblog.io/api/webhooksubscriptions`
- Auth: API key in header `Authorization`

Pass a `blogId` to receive only that blog's events, or omit it for an organization-wide subscription. The response includes the signing `secret` exactly once — store it; it cannot be retrieved again.

## Request body

- object
  - `blogId` string
  - `url` string, required
  - `events` string[]: Empty array subscribes to all events

## Response `200`

The created subscription, including its secret

---

[API](https://skmtc.dev/polyblog/apis/polyblog-api.md) · [All operations](https://skmtc.dev/polyblog/apis/polyblog-api/llms.txt) · [OpenAPI document](https://skmtc.dev/polyblog/apis/polyblog-api/revisions/b0d2db9337ab?raw)
