Skip to main content
PATCH
Update a webhook endpoint

Authorizations

X-API-KEY
string
header
required

Your access token, from your dashboard under API keys.

Path Parameters

endpoint_id
string
required

The endpoint's we_… id.

Body

application/json
url
string<uri>
trigger_events
enum<string>[]
Available options:
email.new,
email.new.bounce,
email.update,
email.delete,
email.draft.new,
email.draft.delete,
email.folder.create,
email.folder.update,
email.folder.delete,
tracking.open,
tracking.click,
account.add,
account.reconnect,
account.remove,
account.status.running,
account.status.errored,
account.status.disconnected,
account.initial_sync.running,
account.initial_sync.completed,
account.initial_sync.failed
account_ids
string[]
description
string
headers
object[]
enabled
boolean

Response

The updated endpoint.

object
string
Allowed value: "WebhookEndpoint"
id
string

we_…

url
string<uri>
description
string | null
trigger_events
enum<string>[]
Available options:
email.new,
email.new.bounce,
email.update,
email.delete,
email.draft.new,
email.draft.delete,
email.folder.create,
email.folder.update,
email.folder.delete,
tracking.open,
tracking.click,
account.add,
account.reconnect,
account.remove,
account.status.running,
account.status.errored,
account.status.disconnected,
account.initial_sync.running,
account.initial_sync.completed,
account.initial_sync.failed
account_ids
string[]
headers
object[]
secret
string

Signs the calls (HMAC-SHA256).

enabled
boolean
created_at
string<date-time>