Skip to content

Webhooks

Webhooks send signed HTTP messages to your server when something changes in your company: a site, backup, domain, certificate, or deploy.

A webhook is an HTTP POST that WP Waterfall sends when something happens, such as a site being created or a backup failing. Send it to your own server as signed JSON, or straight to a Slack, Discord, or Microsoft Teams channel as a ready-to-read message. Use it to tell your CI a deploy is done, hear about failures in chat, or keep your own records. An endpoint belongs to you, not to a company, and it reaches all your companies or only the ones you pick.

How do I add an endpoint?

You can add an endpoint if you are an owner, admin, or developer in at least one company the endpoint covers. Integrations shows in every workspace and needs no site license.

  1. Open Account settings, then Integrations, and choose the Webhooks tab.
  2. Choose Add endpoint.
  3. Under Send to, choose Generic JSON, Slack, Discord, or Microsoft Teams. See Send failures to Slack, Discord, or Teams.
  4. Enter the Receiver URL: a public https address on port 443 or 8443. Private network addresses and other ports are refused. You can have 10 endpoints in all. The Note is optional.
  5. Under Companies, keep All my companies (the default, which includes companies you join later), or choose Only these companies and tick them.
  6. Under Events to send, keep Every event on, choose Failures only, or turn Every event off and pick events.
  7. Choose Create endpoint. For Generic JSON, copy the Signing secret. WP Waterfall shows it once. A Slack, Discord, or Teams endpoint has no secret.

In the dashboard, creating an endpoint and rotating a secret ask for your account password. An API key with the webhook scopes skips that step.

Failures only ticks every event that reports a problem: failed jobs, backups, builds, and deploys, certificate and domain problems, a site that is down, files the malware check wants you to review, and automatic updates runs that failed or need your confirmation. You can still add or remove events after that.

To pick events, tick a category for all of its events, or choose Show events to open it. Type in Search events to narrow the list. Select all and Clear act on the events shown.

Which companies does an endpoint cover?

All my companies covers every company you belong to, including companies you join later. Pick a list to cover only those companies. Each message names its company in company_id, so one receiver can tell them apart.

An endpoint receives a company's events only while all of these hold:

  • The endpoint covers that company.
  • You are a member of that company right now. If you leave it, or an owner removes you, the endpoint stops receiving its events at once, even if the company is still on the list. Messages already waiting for that company are not sent.
  • Your role there is owner, admin, or developer. A role that cannot manage webhooks, such as billing or viewer, receives nothing from that company.

Nobody else can see your endpoints or their delivery log. A colleague, or an owner of a company you share, sees only their own.

How do I test an endpoint?

Choose Send test event on a row. The test is written in the endpoint's format, so a Slack endpoint posts a Slack message. It shows in the delivery log marked as a test. With the API you can send the sample of any event, such as site.created.

How do I manage endpoints?

Each row shows the address, note, event count, where it sends (Generic JSON, Slack, Discord, or Microsoft Teams), the companies it reaches (All your companies or their names), On or Off, and the last delivery. The More actions menu has Turn off or Turn on, Edit, Rotate secret (Generic JSON only), and Delete. Edit changes the address, the format, the companies, and the events. An edit that sends events to a new address, adds events, or reaches more companies asks for your password if you have not entered it in the last 10 minutes, and a new address is emailed to you. Turning an endpoint off, a new note, and fewer events or companies ask for nothing.

Send failures to Slack, Discord, or Teams

Chat messages are plain text with a short headline, a few facts, and a button that opens the page in WP Waterfall. They never hold a secret, a file path, or the contents of a page. Chat tools cannot check a signature, so these messages are not signed. Anyone who has the URL can post to your channel, so keep it private. WP Waterfall shows the whole address to you on the endpoint only: the delivery log, the activity log, and the email about a new address name the host, such as hooks.slack.com, and nothing more. WP Waterfall sends to any public https address, including your own proxy in front of a chat tool, and does not check that the address belongs to the tool you chose.

Slack

  1. In Slack, create an app with an Incoming Webhook and add it to the channel you want.
  2. Copy the webhook URL. It starts with https://hooks.slack.com/.
  3. In WP Waterfall, add an endpoint, choose Send to, then Slack, and paste the URL.
  4. Choose Failures only, then Create endpoint.
  5. Choose Send test event on the row and look in the channel.

Discord

  1. In Discord, open the channel settings, then Integrations, then Webhooks, and choose New Webhook.
  2. Copy the webhook URL. It starts with https://discord.com/api/webhooks/.
  3. In WP Waterfall, add an endpoint, choose Discord, and paste the URL.
  4. Choose Failures only, then Create endpoint, then send a test event.

Microsoft Teams

  1. In Teams, open the channel, choose Workflows, and add the workflow Post to a channel when a webhook request is received.
  2. Copy the workflow URL.
  3. In WP Waterfall, add an endpoint, choose Microsoft Teams, and paste the URL.
  4. Choose Failures only, then Create endpoint, then send a test event.

Retries, the delivery log, redelivery, and the automatic turn off work the same for every format. The log shows the message that was sent.

Which events are sent?

Category Events
Jobs job.succeeded, job.failed, job.cancelled
Sites site.created, site.updated, site.deleted, site.status_changed
Environments environment.created, environment.provisioned, environment.deleted, environment.cloned, environment.pushed, environment.promoted
Code git.push_received, build.succeeded, build.failed, deployment.succeeded, deployment.failed
Backups backup.completed, backup.failed, backup.restored
Domains domain.added, domain.attached, domain.error, domain.removed, domain.primary_changed
SSL ssl.issued, ssl.failed, ssl.expiring
DNS dns.zone.created, dns.zone.active, dns.zone.deleted, dns.records.changed
PHP php.version_changed
Plugins and themes plugin.updated, theme.updated
Security security.bot_protection_changed, security.ip_rules_changed, security.sftp_user_changed, security.ssh_changed, security.two_factor_changed
Billing subscription.created, subscription.updated, subscription.cancelled, invoice.paid, invoice.payment_failed, billing.state_changed
Usage usage.threshold
Add-ons addon.enabled, addon.disabled
Automatic updates and Safe Updates auto_update.completed, auto_update.failed, auto_update.run.started, auto_update.run.completed, auto_update.run.failed, auto_update.run.needs_confirmation, auto_update.run.approved, auto_update.run.rejected, auto_update.run.expired
Migrations migration.status_changed
Integrity integrity.issue_found, integrity.clean
Uptime site.down, site.up
Servers node.created, node.deleted
Webhooks webhook.test

Notes on what some events mean:

  • site.status_changed follows an unpaid invoice or an owner: a site goes read only or suspended, and returns when you pay or resume it. The reason is billing_overdue or billing_restored for billing, owner_requested when an Owner or Admin used Suspend environment or Resume environment, and php_version_removed when a removed PHP version paused the site.
  • domain.added is sent when you add a domain. domain.attached is sent when it passes its checks and serves traffic.
  • ssl.expiring is for a certificate you installed, at 30, 14, and 7 days before it ends and once after. WP Waterfall renews its own certificates.
  • plugin.updated and theme.updated come from updates you run through WP Waterfall, on staging.
  • auto_update.completed means a run updated something and every check passed. auto_update.failed means the run failed, rolled back, or held an update back. The payload says whether it was an automatic updates run or a Safe Updates run. A run with nothing to update sends neither. See Safe Updates.
  • The auto_update.run.* events follow one run from start to finish. Each carries the site, the environment, the run id, times, counts of plugins and themes updated, failed, and skipped, whether the code went to live, one plain sentence, and a dashboard_url to the results. started is sent when a run begins changing the site. completed is sent when it kept its updates. failed is sent when it failed or put the site back, with the reason. needs_confirmation is sent when Safe Updates found pages below the required match, with lowest_match and required_match: the match and the requirement of the page that is furthest below its own requirement. approved, rejected, and expired follow your decision on that run, or the time running out. A run with nothing to update sends nothing.
  • migration.status_changed carries the status before and after, never the backup link or a message.
  • A job.* event carries the result of the job, except when the result holds what is on a site: the rows of a SQL statement, the output of a WP-CLI command, a database import, a search and replace, or a new WordPress user. Read those results on the job itself.
  • integrity.issue_found lists up to 25 files with paths and the total count. integrity.clean arrives weekly for a clean site. See Integrity check.
  • site.down and site.up share an incident_id. See Monitor.
  • usage.threshold is sent at 80 and 100% of each allowance: server bandwidth, CDN bandwidth, and storage.
  • security.two_factor_changed names the member and the method, never a code or secret.

How do I check the signature?

Each message has a wpwaterfall-signature header. Check it before you parse the body. The format, sample code, and secret rotation are in Webhook signatures and delivery. Rotate secret on a row makes a new secret.

What happens when delivery fails?

WP Waterfall retries a failed delivery, and turns the endpoint off after repeated dead deliveries and says why on the page. The answer your server must give, the schedule, and the turn off rule are in Webhook signatures and delivery. Choose Turn on when your server is fixed.

Deliveries lists each message with status, attempts, and last response, across all the companies the endpoint covers. Choose View to read the request and response, or Redeliver to send it again.

Can I follow a job without webhooks?

Yes. Every write that changes a server returns a job. See Jobs and progress in the dashboard and Jobs and events in the API.

API and MCP

  • GET /v1/webhooks/events lists event types with category, description, and kind (failure, success, or info).
  • GET /v1/webhooks and POST /v1/webhooks act on your own endpoints, whatever workspace is selected. POST takes an optional company_ids list (left out, the endpoint covers all your companies) and an optional format: json (the default, signed), slack, discord, or teams.
  • PATCH /v1/webhooks/{id} (it also takes company_ids and format) and DELETE /v1/webhooks/{id}
  • POST /v1/webhooks/{id}/rotate-secret and POST /v1/webhooks/{id}/test
  • GET /v1/webhooks/{id}/deliveries, GET /v1/webhook-deliveries/{id}, and POST /v1/webhook-deliveries/{id}/redeliver
  • MCP tools: list_webhooks, create_webhook, and delete_webhook.

Still stuck?

Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.