Skip to content

Developers

Webhooks

Push-to-deploy and outgoing automation events.

๐Ÿช Push-to-deploy

Incoming webhooks deploy a site when you push to GitHub.

  1. Site โ†’ Deploy Settings โ†’ GitHub Auto-Deploy Webhook โ†’ Generate token.
  2. In the repository on GitHub: Settings โ†’ Webhooks โ†’ Add webhook:
Field Value
Payload URL https://panel.example.com/api/webhooks/github/<token>
Content type application/json
Secret the same <token>
Events Just the push event

The panel verifies the X-Hub-Signature-256 HMAC of every delivery with the token, answers ping, ignores events other than push, deploys only when the pushed branch is the site's branch, and ignores a delivery ID it has already seen in the last 10 minutes. Generating a new token invalidates the old URL.

๐Ÿ“ค Outgoing webhooks

Automation (admin) sends panel events to your own endpoints โ€” a ticket system, a chat bot, a CI pipeline.

Automation โ†’ Webhooks โ†’ Add:

Field Notes
Name, URL http or https.
Secret Optional. When set, every delivery is signed.
Events The events to send; none selected = all events.
Active New webhooks start inactive.

Test sends a test.ping event. The last 100 deliveries per webhook are kept with their status.

Delivery format

HTTP
POST /your-endpoint HTTP/1.1
Content-Type: application/json
X-Orchestrator-Event: deploy.failed
X-Orchestrator-Signature: sha256=5d7c0fโ€ฆ

{
  "event": "deploy.failed",
  "data": {
    "siteId": 12,
    "domain": "shop.example.com",
    "branch": "main",
    "commit": "a3f9c21",
    "status": "failed",
    "testsPassed": 41,
    "testsFailed": 1,
    "testsTotal": 42
  },
  "at": "2026-11-27T10:00:00.000Z"
}

Deliveries time out after 10 seconds and are not retried โ€” make your endpoint answer quickly and do slow work in the background.

Verifying the signature

X-Orchestrator-Signature is sha256= followed by the hex HMAC-SHA256 of the raw request body, keyed with the webhook's secret.

PHP
$payload = file_get_contents('php://input');
$expected = 'sha256='.hash_hmac('sha256', $payload, $secret);

if (! hash_equals($expected, $_SERVER['HTTP_X_ORCHESTRATOR_SIGNATURE'] ?? '')) {
    http_response_code(401);
    exit;
}
JavaScript
import crypto from 'node:crypto';

function verify(rawBody, header, secret) {
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  return header && crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected));
}

๐Ÿ“ก Events

Event data
deploy.succeeded siteId, domain, branch, commit, status, testsPassed, testsFailed, testsTotal
deploy.failed same as above
fleet.alert eventId, serverId, serverName, kind, ruleId, message, value
fleet.alert_resolved eventId, serverId, serverName, kind, ruleId, message
billing.invoice_paid invoiceId, number, currency, fullyPaid, restored โ€” on every payment, including partial ones
billing.suspended siteId, domain, level โ€” when the daily run suspends or archives a site
billing.restored invoiceId, subscriptionId โ€” when a payment lifts a suspension
test.ping sent by the Test button

The event list in the panel also shows site.down, site.up and ssl.expiring; they are reserved for upcoming releases and are not sent yet.

๐Ÿค– Automation rules

Rules react to an event without any code. Automation โ†’ Rules โ†’ Add:

Field Notes
Trigger One event.
Conditions Optional. Each compares a field of data (dot path) with eq, neq, gt, gte, lt, lte or contains; all must match.
Action notify (an entry in the panel's bell), telegram (a message to your notification channels), or webhook (an unsigned POST of the event to a URL).

Texts can use placeholders from the event, such as {{domain}} or {{commit}}.

New rules start off and in dry run: they record what they would do without doing it. Go live when the run log looks right. By design, no automation action can change a hosted site.