Create Webhook
Create a new webhook to receive event notifications at the specified URL.
Documentation Index
Fetch the complete documentation index at: https://docs.lettr.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication
Body
Request body for creating a webhook
Name of the webhook
255"Order Notifications"
URL where webhook events will be sent
2048"https://example.com/webhook"
Authentication type for the webhook
none, basic, oauth2 "basic"
Whether to receive all events or only selected ones
all, selected "selected"
Username for basic authentication (required when auth_type is 'basic')
255"user"
Password for basic authentication (required when auth_type is 'basic')
255"secret"
OAuth2 client ID (required when auth_type is 'oauth2')
255OAuth2 client secret (required when auth_type is 'oauth2')
255OAuth2 token URL (required when auth_type is 'oauth2')
2048List of event types to receive (required when events_mode is 'selected'). Fully-prefixed names such as message.delivery are canonical; short names (delivery) and the legacy engagament.* prefix are accepted for backwards compatibility and are normalised to the fully-prefixed form.
message.injection, message.delivery, message.bounce, message.delay, message.out_of_band, message.spam_complaint, message.policy_rejection, engagement.click, engagement.open, engagement.initial_open, engagement.amp_click, engagement.amp_open, engagement.amp_initial_open, generation.generation_failure, generation.generation_rejection, unsubscribe.list_unsubscribe, unsubscribe.link_unsubscribe, relay.relay_injection, relay.relay_rejection, relay.relay_delivery, relay.relay_tempfail, relay.relay_permfail ["message.delivery", "message.bounce"]