Webhooks
Create Webhook
Create a new webhook to receive event notifications at the specified URL.
post/webhooks
Request
- Base URL: https://app.lettr.com/api
- URL: https://app.lettr.com/api/webhooks
- Auth: HTTP bearer
Request body
Example request
{
"name": "Order Notifications",
"url": "https://example.com/webhook",
"auth_type": "basic",
"auth_username": "user",
"auth_password": "secret",
"events_mode": "selected",
"events": [
"message.delivery",
"message.bounce"
]
}Response
Webhook created successfully
Example response
{
"message": "Webhook created successfully.",
"data": {
"id": "webhook-abc123",
"name": "Order Notifications",
"url": "https://example.com/webhook",
"enabled": true,
"event_types": [
"message.delivery",
"message.bounce"
],
"auth_type": "basic",
"has_auth_credentials": true,
"last_successful_at": "2024-01-15T10:30:00+00:00",
"last_status": "success"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.