Skip to main content
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

string | header
required
Project API key header of the form Bearer AS_<key>.

Path Parameters

string
required
The unique identifier of the webhook.Example: "60d5ec49f1b2c72d9c8b1234"

Body

All fields are optional — only the fields you supply are updated.
string
A new destination URL (must include the http/https protocol).Example: "https://example.com/webhooks/autosend"
string[]
Replaces the subscribed event list. Must contain at least one valid event.Example: ["email.delivered", "email.opened"]
boolean
Enable or disable delivery without deleting the webhook.Example: false

Response

Webhook updated successfully (200)
boolean
Indicates if the request was successful
object
The updated webhook object. The signing secret is always masked as ***hidden***.

Error Responses

object
Returned when a secret field is included in the request body.
object
Returned when no webhook with the given ID exists in the project.