Loading…
Loading documentation...
Receive real-time event notifications and integrate with your systems.
Personal webhooks deliver the instance lifecycle events that have active call sites today. The accepted values are *, instance.created, and instance.deleted. Power, snapshot, backup, billing, security, storage, and networking event names are not accepted or emitted by this API.
POST /api/v1/webhooks
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Display name, 1-60 characters |
url |
string | Yes | Your HTTPS endpoint |
events |
string[] | Yes | One or more accepted event values |
secret |
string | No | Signing secret; a secret is generated and returned once when omitted |
curl -X POST https://serversareup.com/api/v1/webhooks \
-H "Authorization: Bearer $SAU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "production-events",
"url": "https://example.com/webhooks/sau",
"events": ["instance.created", "instance.deleted"],
"secret": "whsec_your_secret_here"
}'
| Event | Description |
|---|---|
* |
Every event emitted for your personal webhook scope |
instance.created |
Provisioning reached the platform's ready notification point |
instance.deleted |
An instance entered the recoverable recycle-bin lifecycle |
All webhook deliveries use this format:
{
"id": "evt_abc123",
"event": "instance.created",
"createdAt": "2026-08-24T12:00:00.000Z",
"data": {
"instanceId": "ins_abc123",
"productName": "Published game plan",
"host": "203.0.113.10"
}
}
Every newly created personal webhook has a signing secret. Each signed delivery includes:
X-SAU-Signature: t=<unix_seconds>,v1=<hex_hmac_sha256>
Verify it in your handler:
const crypto = require('crypto');
function verifySignature(rawBody, signature, secret) {
const parts = Object.fromEntries(
signature.split(',').map((part) => part.split('=', 2))
);
if (!parts.t || !parts.v1) return false;
const timestamp = Number(parts.t);
if (!Number.isInteger(timestamp)) return false;
const nowSeconds = Math.floor(Date.now() / 1000);
if (Math.abs(nowSeconds - timestamp) > 300) return false;
const expected = crypto
.createHmac('sha256', secret)
.update(`${parts.t}.${rawBody}`)
.digest('hex');
const actualBuffer = Buffer.from(parts.v1, 'hex');
const expectedBuffer = Buffer.from(expected, 'hex');
return actualBuffer.length === expectedBuffer.length &&
crypto.timingSafeEqual(actualBuffer, expectedBuffer);
}
import hmac
import hashlib
import time
def verify_signature(raw_body: bytes, signature: str, secret: str) -> bool:
parts = dict(part.split('=', 1) for part in signature.split(','))
timestamp = parts.get('t', '')
supplied = parts.get('v1', '')
try:
timestamp_seconds = int(timestamp)
except ValueError:
return False
if abs(int(time.time()) - timestamp_seconds) > 300:
return False
signed = timestamp.encode() + b'.' + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return bool(timestamp and supplied) and hmac.compare_digest(supplied, expected)
Reject signatures whose timestamp differs from your server clock by more than 300 seconds to limit replay attacks.
Network errors, timeouts, HTTP 408, HTTP 429, and 5xx responses use bounded exponential retries. Other 4xx responses are treated as endpoint configuration errors and are not retried. The current defaults are three total attempts, a 10-second timeout per attempt, and 500 ms / 1 second backoff delays; operators can lower or raise those bounded settings. Endpoints are automatically paused after the configured consecutive failed-delivery threshold (15 by default). No email notification is promised by this retry engine.
GET /api/v1/webhooks
GET /api/account/webhooks/:id/deliveries
Delivery history is an authenticated dashboard-session endpoint, not part of public API v1. It shows recent event names, outcomes, status codes, response times, errors, retry counts, and timestamps for an endpoint you own.
DELETE /api/v1/webhooks?id=WEBHOOK_ID
id field for idempotencyEvery Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.