Documentation
Sign inGet started

bird webhooks create

Usage

कोड उदाहरण
bird webhooks create <url> [flags]

Description

Create a webhook endpoint
Registers a webhook endpoint that receives this workspace's events as signed HTTPS POST requests. The endpoint starts active and receives only the event types listed in events. Delivery, signing, and retry behavior are covered in the webhooks guide.
The 201 response is the only place the endpoint's signing secret (whsec_ prefix) ever appears: store it immediately. If you lose it, mint a new one with Rotate webhook signing secret. After creating, Send a test event to confirm your receiver is reachable and verifies signatures correctly.
Invalid input (a non-HTTPS or non-public url, an event type outside the catalog) returns a 422, as does exceeding your organization's webhook endpoint limit (WebhookTooManyEndpoints).
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

कोड उदाहरण
# print the body shape (no credentials needed)
bird webhooks create --example

# the body it prints:
कोड उदाहरण
{
  "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. Platform types may be combined with realtime.* types on one endpoint, all signed with the endpoint's single secret. Server-enforced (returns 422 otherwise): a realtime.* type requires the realtime object, and realtime requires at least one realtime.* type.
--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