Skip to main content
PUT
Update Webhook

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

webhookId
string
required

The webhook ID to update

Example:

"webhook-abc123"

Body

application/json

Request body for updating a webhook. Only provided fields will be updated.

name
string

Name of the webhook

Maximum string length: 255
Example:

"Updated Webhook Name"

url
string<uri>

URL where webhook events will be sent

Maximum string length: 2048
Example:

"https://example.com/webhook"

target
string<uri>
deprecated

Deprecated alias for url. Accepted for backwards compatibility.

Maximum string length: 2048
Example:

"https://example.com/webhook"

auth_type
enum<string>

Authentication type for the webhook

Available options:
none,
basic,
oauth2
Example:

"none"

auth_username
string

Username for basic authentication

Maximum string length: 255
auth_password
string

Password for basic authentication

Maximum string length: 255
oauth_token_url
string<uri>

OAuth2 token URL

Maximum string length: 2048
oauth_client_id
string

OAuth2 client ID

Maximum string length: 255
oauth_client_secret
string

OAuth2 client secret

Maximum string length: 255
events
enum<string>[]

Event types that trigger the webhook. Fully-prefixed names such as message.delivery are canonical; short names (delivery) and the legacy engagament.* prefix are accepted for backwards compatibility and are normalised to the fully-prefixed form.

Minimum array length: 1
Available options:
message.injection,
message.delivery,
message.bounce,
message.delay,
message.out_of_band,
message.spam_complaint,
message.policy_rejection,
engagement.click,
engagement.open,
engagement.initial_open,
engagement.amp_click,
engagement.amp_open,
engagement.amp_initial_open,
generation.generation_failure,
generation.generation_rejection,
unsubscribe.list_unsubscribe,
unsubscribe.link_unsubscribe,
relay.relay_injection,
relay.relay_rejection,
relay.relay_delivery,
relay.relay_tempfail,
relay.relay_permfail
Example:
active
boolean

Whether the webhook is enabled

Example:

true

Response

Webhook updated successfully

Response containing a single webhook

message
string
required

Human-readable response message

Example:

"Webhook retrieved successfully."

data
object
required

View of a webhook