Skip to main content
PUT
Use this endpoint to update the configuration of an existing webhook.

Path Parameters

webhook_id
number
required
The webhook ID to update

Query Parameters

api_key
string
required
Your SmartLead API key

Request Body

name
string
A descriptive name for the webhook
webhook_url
string
The URL to receive webhook events
event_types
array
Array of event types to subscribe to (e.g. EMAIL_SENT, EMAIL_OPENED, EMAIL_REPLIED, EMAIL_CLICKED, LEAD_UNSUBSCRIBED, EMAIL_BOUNCED)
categories
array
Array of lead categories to filter events by

Response Codes

200
Success
Webhook added/updated successfully
400
Bad Request
Invalid request parameters
401
Unauthorized
Invalid or missing API key
404
Not Found
Campaign not found