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>stringrequiredWhere deliveries go. It must be https.
Flags
--events <events>listrequiredComma-separated event names from octri webhooks events, or all for every one.
--type <type>stringHow deliveries are shaped.
| Value | Meaning |
|---|---|
generic | A signed JSON body, for your own endpoint |
slack | A Slack message, for a Slack incoming webhook |
discord | A Discord message, for a Discord webhook |
--label <label>stringA name to tell it apart.
--disablebooleanCreates 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 AcmeOutput
✔ Creating webhook Acme
✔ Webhook Acme created 6aedf2582a01dd8b2cad73b5
signing secret 09181ad996c569edb6e65b17389507f04d21706aec3bb6f78b00b600adc3fa7a
▲ Store the signing secret now. It is not shown again.Related
octri webhooks test: Send a test.ping delivery to a webhook.octri webhooks events: List the events a webhook can carry.- Webhooks: Payloads, signatures and retries.