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

Path Parameters

number
required
The webhook ID to update

Query Parameters

string
required
Your SmartLead API key

Request Body

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

Response Codes

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