GatehillsDevelopers

Webhooks

Know the moment something happens

Domain expiries and renewals, redemption, hosting and certificate events, pushed to your HTTPS endpoint and signed with HMAC-SHA256.

Setup

Create endpoints in Client area → Webhooks (reseller accounts and Domain Club members, with the "API" function). Up to 5 endpoints per account, each subscribed to * or to a list of events.

  • Only https:// on port 443, a public host name (no IP addresses, localhost, .local, .internal), no credentials in the URL. Redirects are not followed; timeout 10 seconds.
  • The signing secret whsec_… is shown once, at creation or rotation; rotating invalidates the old one immediately.
  • "Send a test event" delivers webhook.ping.

The request

POST /your/endpoint HTTP/1.1
Content-Type: application/json
Gatehills-Event: domain.expired
Gatehills-Delivery: evt_1842
Gatehills-Signature: t=1764496800,v1=5f2b…

{
  "id": "evt_1842",
  "type": "domain.expired",
  "created": "2026-11-22T10:00:00Z",
  "account": "3f2a…",
  "subject": {"type": "domain", "id": "example.ae"},
  "data": {"domain": "example.ae", "expiresOn": "2026-11-20", "graceEnd": "2026-12-30",
           "restoreBy": "2027-01-29", "deleteOn": "2027-02-03", "price": "AED 109.00", "days": 0, "stage": 0}
}

Gatehills-Delivery is the same on every attempt: use it to drop duplicates. data never contains email addresses, phone numbers or names of people.

Verify the signature

v1 = hex(HMAC-SHA256(secret, t + "." + raw_body)). Compare in constant time on the raw body and reject a t older than 5 minutes.

import hmac, hashlib, time

def valid(secret: str, header: str, body: bytes) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    if abs(time.time() - int(parts["t"])) > 300:
        return False
    mac = hmac.new(secret.encode(), (parts["t"] + ".").encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(mac, parts["v1"])

Events

GroupEvents
Domainsdomain.expiry_reminder domain.expired domain.renewal_page domain.services_stopped domain.redemption domain.pending_delete domain.deleted domain.restored domain.renewed domain.autorenew_failed domain.autorenew_done
Hostinghosting.activated hosting.expiry_reminder hosting.autorenew_failed hosting.expired hosting.suspended hosting.termination_warning hosting.terminated hosting.restored hosting.provisioning_failed hosting.domain_expired hosting.move_scheduled hosting.moved
Certificatescertificate.validation_required certificate.issued certificate.expiry_reminder certificate.expired certificate.revoked certificate.failed certificate.acme_issued certificate.acme_renewed certificate.acme_failed certificate.acme_expiring certificate.acme_install_failed certificate.acme_revoked certificate.free_expiring
Testwebhook.ping

Answers and retries

Any 2xx within 10 seconds confirms the delivery. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2, 6, 12 and 24 hours. After 8 failed attempts (about two days) the delivery is parked and our staff can replay it once your endpoint is fixed. Order is not guaranteed: rely on created and on the current state from the API. The last deliveries are listed on the Webhooks page for 90 days.