Documentation
Sign inGet started

bird webhooks create

Usage

Contoh kode
bird webhooks create <url> [flags]

Description

Create a webhook endpoint
Register an HTTPS endpoint to receive this workspace's events, subscribed to the event types in events and active immediately. The response is the only place the signing secret appears, and it can never be read back afterward, only rotated.
Build the request from the <url> argument and flags, a JSON WebhookEndpointCreate body via --body-file ("-" reads stdin), or both — an inline value overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Contoh kode
# print the body shape (no credentials needed)
bird webhooks create --example

# the body it prints:
Contoh kode
{
  "description": "Production delivery + bounce notifications",
  "events": ["email.delivered", "email.bounced"],
  "url": "https://example.com/webhooks/bird"
}

Options

Endpoint

NameDescription
--events <v1,v2,…>Event types to subscribe to; the endpoint receives only matching events. Types outside the event catalog return a 422, and an endpoint holds at most 100 entries.
--descriptionHuman-readable label for this endpoint, up to 256 characters.

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird webhooks attemptsList delivery attempts
bird webhooks deleteDelete a webhook endpoint
bird webhooks getGet a webhook endpoint
bird webhooks listList webhook endpoints
bird webhooks rotate-secretRotate webhook signing secret
bird webhooks testSend a test event