Octri

webhooks create

Adds a webhook that posts the events you choose to an address. It prints the webhook's signing secret, which you use to verify deliveries. The secret is shown once, so store it then.

bash
octri webhooks create <url> --events <events> [--type <type>] [--label <label>]

Arguments

<url>stringrequired

Where deliveries go. It must be https.

Flags

--events <events>listrequired

Comma-separated event names from octri webhooks events, or all for every one.

--type <type>stringdefault: generic

How deliveries are shaped.

ValueMeaning
genericA signed JSON body, for your own endpoint
slackA Slack message, for a Slack incoming webhook
discordA Discord message, for a Discord webhook
--label <label>stringdefault: the address's hostname

A name to tell it apart.

--disableboolean

Creates it switched off.

Examples

Send spec and SDK events to your endpoint

bash
octri webhooks create https://hooks.acme.com/octri --events spec.ingested,sdk.published --label Acme
Output
✔ Creating webhook Acme
✔ Webhook Acme created 6aedf2582a01dd8b2cad73b5
  signing secret  09181ad996c569edb6e65b17389507f04d21706aec3bb6f78b00b600adc3fa7a
▲ Store the signing secret now. It is not shown again.