Webhooks
Update Webhook
Update an existing webhook. Only the fields provided will be updated (partial update). You can change the name, target URL, authentication, events, or active status.
put/webhooks/{webhookId}
Request
- Base URL: https://app.lettr.com/api
- URL: https://app.lettr.com/api/webhooks/{webhookId}
- Auth: HTTP bearer
Path parameters
webhookIdstring required
Example:webhook-abc123
The webhook ID to update
Request body
Example request
{
"name": "Updated Webhook Name",
"url": "https://example.com/webhook",
"target": "https://example.com/webhook",
"auth_type": "none",
"events": [
"message.delivery",
"message.bounce"
],
"active": true
}Response
Webhook updated successfully
Example response
{
"message": "Webhook retrieved 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.