Webhooks
Update Webhook
Updates a webhook’s URL, subscribed events, active state, or metadata. The signing secret is immutable — create a new webhook to rotate it.
PUT
This endpoint accepts a project API key (
AS_ prefix). The signing secret is immutable — create a new webhook to rotate it. Supplying a secret field returns a 400 error.Authorizations
Project API key header of the form Bearer
AS_<key>.Path Parameters
The unique identifier of the webhook.Example:
"60d5ec49f1b2c72d9c8b1234"Body
All fields are optional — only the fields you supply are updated.A new destination URL (must include the
http/https protocol).Example: "https://example.com/webhooks/autosend"Replaces the subscribed event list. Must contain at least one valid event.Example:
["email.delivered", "email.opened"]Enable or disable delivery without deleting the webhook.Example:
falseResponse
Webhook updated successfully (200)Indicates if the request was successful
Wrapper containing the updated webhook object (secret masked)
Error Responses
Returned when a
secret field is included in the request body.Returned when no webhook with the given ID exists in the project.