Documentation
Sign inGet started

bird webhooks test

Usage

Codevoorbeeld
bird webhooks test <webhook-id> [flags]

Description

Send a test event
Sends a signed synthetic event to the endpoint's URL and returns the outcome synchronously: whether your endpoint accepted it, the HTTP status it returned, and the round-trip latency. Use it to verify your receiver is reachable and its signature verification is correct. An unreachable endpoint is reported in the response body as status: failed, not as a request error. Your endpoint has 10 seconds to respond.
The test body is a minimal JSON stub carrying only the event type (it does not mirror a real event payload), signed exactly like a real delivery. Test sends go straight to your endpoint: they work on a paused endpoint and are not recorded in List delivery attempts.
A 412 means the endpoint cannot be tested yet: it has no valid signing secret, or no subscribed event types to fall back on when event_type is omitted.
Build the request from flags, a JSON WebhookTestRequest body via --body-file ("-" reads stdin), or both — a flag 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

Codevoorbeeld
# print the body shape (no credentials needed)
bird webhooks test --example

# the body it prints:
Codevoorbeeld
{
  "event_type": "email.delivered"
}

Options

Event

NameDescription
--event-typeEvent type to simulate. Any type from the event catalog is accepted, whether or not the endpoint subscribes to it; an unknown type returns a 422. When omitted, the endpoint's first subscribed event type is used.

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 createCreate a webhook endpoint
bird webhooks deleteDelete a webhook endpoint
bird webhooks getGet a webhook endpoint
bird webhooks listList webhook endpoints
bird webhooks rotate-secretRotate webhook signing secret