Skip to main content
PATCH
/
webhooks
/
{webhook}
Update a webhook
curl --request PATCH \
  --url http://localhost/public/v1/webhooks/{webhook} \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "is_enabled": true,
  "source": "n8n",
  "events": [
    "email.queued"
  ]
}
'
{
  "ok": true,
  "webhook": {
    "id": "<string>",
    "url": "<string>",
    "events": "<string>",
    "is_enabled": "<string>",
    "secret": "<string>",
    "source": "<string>",
    "locked": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Path Parameters

webhook
string<uuid>
required

The webhook ID

Body

application/json
url
string<uri>
Maximum string length: 2048
is_enabled
boolean
source
enum<string> | null
Available options:
n8n,
zapier,
make,
internal
events
enum<string>[]
Minimum array length: 1
Available options:
email.queued,
email.sent,
email.bounced.soft,
email.bounced.hard,
email.deferred,
email.opened,
email.clicked,
email.bot.opened,
email.bot.clicked,
email.replied,
email.contact.saved,
email.contact.unsubscribed,
email.lead.created,
email.sale.created

Response

ok
boolean
required
webhook
TeamWebhookResource · object
required