GatehillsDevelopers

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.

Direct EPP accreditationOpenAPI 3.1Idempotent writesHMAC-signed webhooks

Quick start

Your first call in three minutes

  1. Get access. The API is open to reseller accounts (ask Gatehills support) and to client accounts with an active Domain Club membership.
  2. Complete your billing details in the client area: they set your price list, currency and VAT.
  3. Top up your balance. Every paid operation is charged to it; nothing reaches the registry before the debit succeeds.
  4. 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.