PerspectPerspectDocs
Go to Admin
View as Markdown

Webhooks

Outbound webhook configuration. Register URLs to receive platform events (content.published, order.paid, etc.). See the API reference for the full event catalog.

See the API Reference for the full type and function surface, regenerated from source on every build.

Quick Start

const hooks = await client.webhooks.list('my-site');
const created = await client.webhooks.create('my-site', {
  url: 'https://example.com/hooks/perspect',
  events: ['content.published', 'order.paid'],
});