Home / API Reference / Webhook Events Reference

Webhook Events Reference

invoice.created, service.provisioned, service.suspended

What it is

Outgoing webhooks send HTTP POST requests to your URL when events occur. Each payload includes event, data, and timestamp. Verify the request using the X-Webhook-Signature header (HMAC-SHA256 of raw body with your webhook secret).

Payload format

{
  "event": "invoice.paid",
  "data": {
    "invoice_id": 123,
    "uuid": "abc-123",
    "amount": 29.99
  },
  "timestamp": "2024-01-15T10:30:00+00:00"
}

Available events

EventWhen triggeredData fields
invoice.createdNew invoice created via APIinvoice_id, uuid
invoice.paidInvoice marked as paidinvoice_id, uuid, amount
service.createdNew service created via APIservice_id, uuid
service.provisionedService provisioned (hosting account created)service_id, uuid
service.suspendedService suspendedservice_id, uuid

Signature verification

Header: X-Webhook-Signature. Value is hash_hmac('sha256', $rawBody, $secret). Compare with constant-time comparison (hash_equals).

Creating webhooks

Use POST /api/v1/webhooks with {"name":"My Webhook","url":"https://...","events":["invoice.paid","service.provisioned"]}. The response includes secret—store it securely; it is not shown again.

Was this helpful?

Tags: API Webhook