Skip to main content

Send an event

Send up to 100 at once with relay.events.sendBatch([...]).

Verify a webhook

verify checks the signature and the timestamp, then returns the parsed event. It throws RelaySignatureError if either check fails. Pass the raw body as a Buffer or string, not parsed JSON.

Endpoints

Retries and errors

The client retries 429 and 5xx responses and network errors up to 3 times with backoff, reusing the same idempotency key. Change it with new Relay(key, { maxRetries: 0 }).