Gatehills for developers
Domains, DNS and SSL, straight from your own systems
Register, renew and transfer domains, manage name servers, contacts, DNS and certificates with a REST API paid from your prepaid balance. React to every event with signed webhooks, or plug Gatehills into WHMCS in minutes.
REST API
Domains, transfers, contacts, DNS, DNSSEC, glue hosts, free and paid SSL, pricing and balance. JSON over HTTPS.
API reference →Webhooks
Expiry, renewal, redemption, hosting and certificate events delivered to your URL, signed with HMAC-SHA256 and retried for two days.
Webhooks →WHMCS module
Sell Gatehills domains from WHMCS 8: registration, transfers, renewals, DNS, privacy, EPP codes and price sync.
WHMCS →Dynamic DNS
Keep a host name on a changing IP with the dyndns2 protocol used by routers, ddclient and inadyn. Free.
Dynamic DNS →Domain Connect
Service providers can configure the DNS of Gatehills customers in one click, after the customer's consent.
Domain Connect →RDAP
Registration data of domains sponsored by Gatehills, in standard RDAP JSON, with personal data redacted.
RDAP →Quick start
Your first call in three minutes
- Get access. The API is open to reseller accounts (ask Gatehills support) and to client accounts with an active Domain Club membership.
- Complete your billing details in the client area: they set your price list, currency and VAT.
- Top up your balance. Every paid operation is charged to it; nothing reaches the registry before the debit succeeds.
- Create a key in Client area → API keys: choose the scopes, restrict it to your server IPs, set an expiry. It is shown only once.
curl https://www.gatehills.com/api/v1/account/balance \
-H "Authorization: Bearer ghk_xxxxxxxxxxxxxxxx.SECRET"
curl -X POST https://www.gatehills.com/api/v1/domains/register \
-H "Authorization: Bearer ghk_xxxxxxxxxxxxxxxx.SECRET" \
-H "Idempotency-Key: order-4711" \
-H "Content-Type: application/json" \
-d '{"domain":"example.ae","years":1}'
The rules
Built so you never pay twice
Authentication
Authorization: Bearer <key id>.<secret> on every request. Keys have scopes, IP allow lists and expiry, and never exceed the rights of the user who created them. Up to 10 active keys per account.
Idempotency
Every write needs an Idempotency-Key. Retrying with the same key returns the stored answer and never charges again; the same key with a different body returns 422.
Money
Prices come from your price list, server-side. Not enough balance: 402 insufficient_funds and nothing happens. Refunds of failed operations are reviewed by our staff.
Asynchronous operations
Register, renew, transfer and restore answer 202 with an operation: follow it with GET /operations/{id} until every item is DONE or FAILED.
Limits
120 requests per minute per key; over it, 429 rate_limited with Retry-After. Repeated invalid keys from one IP are blocked for the rest of the minute.
Errors and versions
Errors are {"error":{"code","message","details"}}: decide on code. Within /api/v1 we only add things; anything breaking goes to a new version, announced in advance.
FAQ
Questions developers ask
Which extensions can I sell?
Every extension Gatehills sells on its website. Gatehills is accredited directly with ICANN and with the registries, including TDRA for .ae and Nominet for .uk: no intermediaries. GET /pricing lists them with your prices.
Is there a sandbox?
Ask Gatehills support for a test account on our test environment: same API, test registries, no real charges.
Can I white-label it?
Yes: your customers see your brand; registrations use your contacts or your customers' contacts from your contact book.
Where is the machine-readable spec?
https://www.gatehills.com/api/v1/openapi.json (OpenAPI 3.1), checked by our tests against the real endpoints.
Can I earn by recommending Gatehills?
Yes: join the Gatehills partner program as an affiliate or as a Solution partner.