Webhooks overview
Receive events when things change in your account.
Webhooks send an HTTP POST to your endpoint when an event happens in your account.
Configure an endpoint
- In the Client Area open Account then Webhooks.
- Add your HTTPS endpoint URL and choose the events to subscribe to.
- Copy the signing secret.
Event types
| Event | Triggered when |
|---|---|
domain.registered |
A domain registration completes |
domain.renewed |
A domain is renewed |
domain.expiring |
A domain is 30 days from expiry |
service.provisioned |
A hosting, VPS or server order becomes active |
service.suspended |
A service is suspended |
invoice.created |
A new invoice is generated |
invoice.paid |
An invoice is paid |
ssl.issued |
An SSL certificate is issued |
Verify signatures
Every request carries a Truehost-Signature header: an HMAC SHA256 of the raw body using your signing secret.
import crypto from 'node:crypto';
export function verify(rawBody, header, secret) {
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(header));
}
Retries
Respond with a 2xx status within 10 seconds. Failed deliveries are retried with exponential backoff for up to 24 hours.
Still need help?Open a support ticket