Skip to content
You are reading the unreleased documentation. No version is released yet, and these pages describe code that is not in a release.

Webhooks (admin API)

Admin routes of the webhooks module. Every route needs a staff session and the permission named on it; send X-Resolve-Locale: false to receive every locale of a translatable field for editing.

List webhook subscriptions

Parameters:

  • page in query (number, min 1, optional).
  • pageSize in query (number, min 1, max 100, optional).

Responses:

  • 200: no description.

Create new webhook subscription

Request body: CreateWebhookDto.

Responses:

  • 201: no description.

Delete webhook subscription

Parameters:

  • id in path (string, required).

Responses:

  • 204: no description.

Get webhook subscription

Parameters:

  • id in path (string, required).

Responses:

  • 200: no description.

Update webhook subscription

Parameters:

  • id in path (string, required).

Request body: UpdateWebhookDto.

Responses:

  • 200: no description.

List deliveries for a webhook subscription

Parameters:

  • id in path (string, required).
  • page in query (number, min 1, optional).
  • pageSize in query (number, min 1, max 100, optional).

Responses:

  • 200: no description.

Send a test event to a webhook subscription

Parameters:

  • id in path (string, required).

Responses:

  • 201: no description. Body: object.
  • url (string, pattern /^https:\/\//, required).
  • events (array of object, required).
  • secret (string, optional).
  • isActive (boolean, optional).