GatehillsDevelopers

REST API · v1.0.0

Gatehills Reseller API

Register, renew and transfer domains, manage name servers, contacts and DNS, paid from the reseller prepaid balance.

Base URL and authentication

Available to reseller accounts and to client accounts with an active Domain Club membership (any tier). Every paid operation (register, renew, transfer) creates an order priced server-side (reseller price list for resellers, club prices of the tier for Domain Club members, never below the club floor) and paid from the prepaid balance (including any credit limit). Nothing is sent to the registry unless the debit succeeded. Write requests require an Idempotency-Key header: repeating the same request with the same key returns the stored response without charging again; the same key with a different request returns 422. Errors are JSON objects with a stable code.

https://www.gatehills.com/api/v1
Authorization: Bearer ghk_<key id>.<secret>
Idempotency-Key: <your unique id>   # every POST, PUT and DELETE except /domains/check
Content-Type: application/json

Scopes

ScopeAllows
domains:readDomains, prices, availability, operations; contacts of a domain with name, organisation and email only
domains:writeRegister, renew, transfer, restore (charged to the balance), delete, transfer lock, auth code; includes domains:read
contacts:readFull contact book (addresses, phone numbers)
contacts:writeCreate and change contacts, assign them to domains, WHOIS privacy; includes contacts:read
dns:readDNS records, DNSSEC and glue hosts
dns:writeDNS records, name servers, DNSSEC and glue hosts; includes dns:read
billing:readBalance and transactions

Errors

HTTP/1.1 402 Payment Required
{"error": {"code": "insufficient_funds", "message": "…", "details": {"needed": "45.21", "currency": "AED"}}}
StatusMeaning
400Invalid request: fix it (details.field says which field)
401Missing, wrong, expired or revoked key
402Not enough balance: nothing was charged or sent
403Missing scope, IP not allowed, club_required, reseller_only
404Not found, or not in your account
409Conflict with the current state (premium price changed, operation already open…)
422Idempotency key reused with a different request
429Too many requests: wait Retry-After seconds
5xxOur side: retry later with the same Idempotency-Key

Account

GET /account/balance

Prepaid balance per currency (scope billing:read)
Responses
200Balances
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
429Rate limit (code: rate_limited); see Retry-After

GET /account/transactions

Latest balance movements, newest first (scope billing:read)
NameInTypeDescription
limitqueryinteger
Responses
200Transactions
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

Pricing

GET /pricing

Reseller prices per extension for one year (scope domains:read)

Prices come from the price list of the reseller billing country with the reseller margins of your account (the same prices used by orders), excluding VAT (taxInclusive false; vatRate is the rate of the billing country that orders and invoices add on top); amounts are without the ICANN fee, which is shown separately in icannFee (total = amount + icannFee, before the VAT that an order adds).

NameInTypeDescription
tldsquerystringComma-separated extensions (e.g. com,ae); empty = all
Responses
200Price list
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

POST /domains/check

Availability of up to 50 names (scope domains:read; read-only, no Idempotency-Key)
NameInTypeDescription
domains requiredbodyarray of string
Responses
200One result per name
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

GET /domains/search/stream

Streaming search, NDJSON (scope domains:read)

Streaming search, `application/x-ndjson`: one JSON line per name as soon as its registry answers, then suggestions, then a summary line. Checks are grouped per registry (multi-name EPP check) and run in parallel across registries within the existing session limits of each registry; each registry has a time limit (8 s): a slow or failing registry only marks its own names TIMEOUT or ERROR. Prices are the same as search and checkout (conditional offers apart). Answers are cached for 60 s. Every line is flushed immediately (`Cache-Control: no-cache`, `X-Accel-Buffering: no`): read the body incrementally and split on newlines. Limits: at most 60 names per request, 20 streams per minute per key, besides the per-key request limit, and a cap on concurrent streams (429 with Retry-After). The key goes in the Authorization header as for every other endpoint, never in the URL. Prices of the reseller billing country. Errors before the stream starts are JSON as everywhere else.

NameInTypeDescription
qquerystringName, with or without extension (Unicode accepted); the typed extension comes first. Required without `domains`.
tldsquerystringComma-separated extensions to check (default: the extensions on sale, featured first, up to 60)
domainsquerystringComma-separated full names to check instead of `q` (at most 60; invalid names give INVALID lines, no suggestions)
suggestionsquerybooleanAdd suggestion lines (only with `q`, when a suggestion source is configured)
Responses
200NDJSON stream: one SearchStreamLine per line, `summary` last
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
429Rate limit (code: rate_limited); see Retry-After

Domains

GET /domains

Domains of the account (scope domains:read)
NameInTypeDescription
limitqueryinteger
offsetqueryinteger
statusqueryDomainStatus
Responses
200Page of domains
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

POST /domains/register

Register a domain, paid from the balance (scope domains:write)

Checks availability, creates and pays the order, then the registration runs asynchronously: follow it with GET /operations/{id}. Without registrantContactId the registrant is the reseller billing contact. If the registration finally fails, the refund is proposed to Gatehills staff (no automatic refunds).

NameInTypeDescription
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
domain requiredbodystring
yearsbodyintegerRegistration years within minYears-maxYears of the extension (GET /pricing, e.g. .ai 2-10, .ae 1-5); default: minYears. Outside: 400 years_out_of_range with min and max in details, nothing charged
registrantContactIdbodyintegerContact of the account contact book used as registrant, admin, tech and billing contact
nameserversbodyarray of stringOptional own name servers, applied as soon as the domain is active (the registration itself uses Gatehills name servers); check the result with GET /domains/{name}
privacybodybooleanTurn WHOIS/RDAP privacy on as soon as the domain is active, where the extension allows it
premiumTotalbodystring | numberRequired for premium names: the current total of the line (ICANN fee included), as premiumPrice.total of the check for one year. Missing: 409 premium_price_required; different from the current price: 409 premium_price_changed; both with premiumPrice and premiumClass in details and nothing charged
eligibilitybodyobjectRegistrant eligibility, required for .co.ae, .net.ae and .org.ae (TDRA): the domain must match a UAE trade licence or trademark. Without it (and without registrantContactId) the eligibility saved in the account is used; if there is none the request is refused with 409 registrant_data_missing before any charge. .gov.ae, .ac.ae, .sch.ae and .mil.ae: 409 registration_needs_support.
Responses
202Order paid, registration in progress
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
402Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged.
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
422Not processable (codes: idempotency_key_reused, tld_not_supported, not_for_sale)
429Rate limit (code: rate_limited); see Retry-After
503Temporarily unavailable, nothing charged (code: registry_unavailable)

POST /domains/transfer

Transfer a domain in with its auth code, paid from the balance (scope domains:write)
NameInTypeDescription
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
domain requiredbodystring
authCodebodystringRequired except for .uk (Nominet), where the losing registrar releases the domain to our tag
premiumTotalbodystring | numberRequired for premium names: the current total of the line (ICANN fee included); 409 premium_price_required if missing, 409 premium_price_changed if different, nothing charged
Responses
202Order paid, transfer requested asynchronously
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
402Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged.
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
422Not processable (codes: idempotency_key_reused, tld_not_supported, not_for_sale)

GET /domains/{name}

Domain details (scope domains:read)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Domain
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

POST /domains/{name}/renew

Renew a domain, paid from the balance (scope domains:write)

While a renewal of the same domain is already paid and not finished (items not DONE, FAILED or REFUNDED), a new renewal with a different Idempotency-Key answers 409 renewal_already_open with details.operationId: poll that operation instead of paying twice.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
yearsbodyintegerFrom renewMinYears of the extension up to the years that keep the expiry within today + maxYears; default: renewMinYears. Outside: 400 years_out_of_range with min and max (0 = not renewable now) in details
premiumTotalbodystring | numberRequired for premium names: the current total of the line (ICANN fee included); 409 premium_price_required if missing, 409 premium_price_changed if different, nothing charged
Responses
202Order paid, renewal in progress
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
402Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged.
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

GET /domains/{name}/restore

Quote for restoring a domain from redemption (scope domains:read); nothing is charged

Price from your price list: the restore fee plus one renewal year, always included (the registry renews the domain after the restore when its expiry is near). restorable is false with reason not_in_redemption, feature_unavailable (the registry of the extension does not allow restores via EPP), not_for_sale or restore_already_open (with operationId).

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Restore quote
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

POST /domains/{name}/restore

Restore a domain from redemption, paid from the balance (scope domains:write)

Only for your domains in REDEMPTION (otherwise 409 not_in_redemption). Creates an order (restore + one renewal year) paid from the balance; 402 insufficient_funds with nothing charged. The registry steps (RGP restore request, restore report where the registry requires it, renewal) run after the payment: poll GET /operations/{id}; a failed restore is refunded after staff review. While a restore of the same domain is paid and not finished, a new request with a different Idempotency-Key answers 409 restore_already_open with details.operationId. Extensions whose registry does not allow restores: 409 feature_unavailable (see GET /domains/{name}/features). The body is optional.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
premiumTotalbodystring | numberRequired for premium names: the current total of the line (price.total of the quote); 409 premium_price_required if missing, 409 premium_price_changed if different, nothing charged
Responses
202Order paid, restore in progress
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
402Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged.
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
422Not processable (codes: idempotency_key_reused, tld_not_supported, not_for_sale)

POST /domains/{name}/delete

Delete a domain (scope domains:write); confirm with the domain name

Same rules as the client area: the domain must be ACTIVE or EXPIRED, not suspended by our staff (409 domain_suspended), with no transfer in progress (409 transfer_pending) and no subordinate glue hosts at the registry (409 subordinate_hosts: delete them first); client locks are removed before the delete, a server lock answers 409 delete_prohibited. Auto-renew is switched off. Within the add grace period the registry removes the domain at once (purged true) and, if the registry credits the deletion, a refund of the registration to your balance is proposed to Gatehills staff for approval (refund.status PENDING_APPROVAL, never immediate). Otherwise the domain enters redemption (status REDEMPTION, restoreBy) and can still be restored with POST /domains/{name}/restore. Extensions whose registry does not allow deletions: 409 feature_unavailable.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
confirm requiredbodystringThe domain name (ASCII or Unicode), as explicit confirmation; missing: 400 confirmation_required, different: 400 confirmation_mismatch
Responses
200Deletion sent to the registry
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

PUT /domains/{name}/nameservers

Set 2-12 name servers, or go back to Gatehills DNS (scope dns:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
nameserversbodyarray of string
useDefaultbodybooleantrue = Gatehills name servers and default zone
Responses
200Domain after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

PUT /domains/{name}/lock

Transfer lock on or off (scope domains:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
locked requiredbodyboolean
Responses
200Domain after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

GET /domains/{name}/authcode

Auth code for transfers away (scope domains:write; every read is audited)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Auth code
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

POST /domains/{name}/authcode/regenerate

New auth code at the registry (scope domains:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Regenerated
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

GET /domains/{name}/contacts

Contacts of the domain (scope domains:read: name, organisation and email; full details with contacts:read)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Contacts by role
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

PUT /domains/{name}/contacts

Assign contacts of the contact book to the domain (scope contacts:write)

A new registrant with a different name, organisation or email is an ICANN Change of Registrant: the domain is locked against transfers for 60 days unless optOutTransferLock is true.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
registrantbodyinteger
adminbodyinteger
techbodyinteger
billingbodyinteger
optOutTransferLockbodyboolean
Responses
200Contacts after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

GET /domains/{name}/features

Operations the registry supports for the extension (scope domains:read): glue hosts, DNSSEC, change of registrant, transfer, auth code, transfer lock, restore, deletion, WHOIS privacy
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Feature flags
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

GET /domains/{name}/hosts

Child name servers (glue hosts) under the domain at the registry (scope dns:read)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Glue hosts
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

POST /domains/{name}/hosts

Create a glue host (ns1 or ns1.<domain>) with 1-13 public IPv4/IPv6 addresses (scope dns:write). 409 host_exists if it already exists, feature_unavailable if the extension does not allow glue, domain_suspended if suspended by our staff
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
host requiredbodystring
addresses requiredbodyarray of string
Responses
201Host created
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

PUT /domains/{name}/hosts/{host}

Replace the addresses of an existing glue host (scope dns:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
host requiredpathstringLabel (ns1) or full host name (ns1.example.com)
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
addresses requiredbodyarray of string
Responses
200Host after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

DELETE /domains/{name}/hosts/{host}

Delete a glue host (scope dns:write). 409 host_in_use while any domain still uses it as a name server
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
host requiredpathstringLabel (ns1) or full host name (ns1.example.com)
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Deleted
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

GET /domains/{name}/privacy

WHOIS privacy of the domain (scope domains:read)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Privacy status
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

PUT /domains/{name}/privacy

WHOIS privacy on or off, free of charge (scope contacts:write). Mode DISCLOSE changes the contacts, so it applies to every domain using them (sharedDomains); mode PROXY may stay pending until the registry confirms
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
enabled requiredbodyboolean
Responses
200Privacy after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)
503Temporarily unavailable, nothing charged (code: registry_unavailable)

GET /domains/{name}/dnssec

DNSSEC status and DS records published at the registry (scope dns:read)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200DNSSEC status
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

PUT /domains/{name}/dnssec

Automatic signing on Gatehills DNS on or off (scope dns:write; the domain must use the Gatehills name servers). Turning it off removes the DS at the registry first and unsigns the zone after the DS TTL
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
enabled requiredbodyboolean
Responses
200DNSSEC after the change (state may be DS_PENDING or UNSIGN_WAIT)
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)
503Temporarily unavailable, nothing charged (code: registry_unavailable)

POST /domains/{name}/dnssec/ds

Add a DS record for external name servers (scope dns:write). Algorithms 8, 10, 13, 14, 15, 16; digest type 2 (64 hex) or 4 (96 hex); at most 8 DS
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
keyTag requiredbodyinteger
algorithm requiredbodyinteger: 8, 10, 13, 14, 15, 16
digestType requiredbodyinteger: 2, 4
digest requiredbodystringHexadecimal, 64 characters for type 2, 96 for type 4
Responses
201DNSSEC after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)
503Temporarily unavailable, nothing charged (code: registry_unavailable)

POST /domains/{name}/dnssec/ds/delete

Remove a DS record (scope dns:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
keyTag requiredbodyinteger
algorithm requiredbodyinteger: 8, 10, 13, 14, 15, 16
digestType requiredbodyinteger: 2, 4
digest requiredbodystringHexadecimal, 64 characters for type 2, 96 for type 4
Responses
200DNSSEC after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)
503Temporarily unavailable, nothing charged (code: registry_unavailable)

GET /operations/{id}

Status of a paid operation (scope domains:read)
NameInTypeDescription
id requiredpathstring
Responses
200Operation
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

POST /operations/{id}/authcode

New auth code for the transfer of a paid operation (scope domains:write; nothing is charged again)

Use it when the operation shows needsAuthCode or authCodeRejected. A second POST /domains/transfer for a name with an open transfer answers 409 transfer_already_open with details.operationId.

NameInTypeDescription
id requiredpathstring
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
authCode requiredbodystring
Responses
200Code saved, the transfer is retried
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
422Not processable (codes: idempotency_key_reused, tld_not_supported, not_for_sale)

GET /transfers/{name}

Outcome of the latest paid incoming transfer of a name (scope domains:read)

state is PENDING, COMPLETED or FAILED. Works also after a rejected or cancelled transfer, when GET /domains/{name} answers 404. With transferId, status, reason, expectedAt… the detailed state of the attempt (see GET /transfers).

NameInTypeDescription
name requiredpathstring
Responses
200Transfer status
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

GET /transfers

Incoming and outgoing transfers of the account (scope domains:read)

direction: in, out or empty for both. status filters incoming transfers. Incoming status: AWAITING_CODE (code missing or refused, or domain locked at the losing registrar: send a new code to the operation), QUEUED, AWAITING_RELEASE (.uk: ask the losing registrar to change the IPS tag), PENDING (at the registry, expectedAt about 5 days), COMPLETED, REJECTED, CANCELLED, FAILED. A refund for a failed paid transfer is proposed to Gatehills staff, never automatic.

NameInTypeDescription
directionquerystring: in, out
statusquerystring
limitqueryinteger
Responses
200Transfers
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

POST /transfers/check

Transfer eligibility and price of up to 20 names (scope domains:read; read only, no Idempotency-Key)

For each name: extension sold and transferable, registered elsewhere (registry RDAP or domain:check), transfer locks (clientTransferProhibited, serverTransferProhibited), pending transfer, redemption, ICANN 60-day lock after registration or transfer (gTLDs), expiry within 15 days, premium. verdict OK, WARN (allowed with warnings) or BLOCKED. authCodeRequired is false for .uk (release to releaseToTag). addsYear tells whether the transfer adds one year to the expiry.

NameInTypeDescription
domains requiredbodyarray of string
Responses
200Eligibility
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

POST /transfers/{name}/cancel

Cancel the open incoming transfer of a name (scope domains:write)

Before the request is sent the order item is closed; after it is sent a transfer cancel goes to the registry. If the transfer was paid, a refund is proposed to Gatehills staff for approval (four eyes), never automatic.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Transfer
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

POST /domains/{name}/transfer-out/approve

Approve the pending outgoing transfer request of a domain (scope domains:write)

Same rules as the client area: approval is refused within 60 days of a change of registrant or while the domain is held by staff. Without an answer Gatehills approves automatically 24 hours before the registry deadline.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Domain
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

POST /domains/{name}/transfer-out/reject

Reject the pending outgoing transfer request of a domain (scope domains:write)

Same rules as the client area: approval is refused within 60 days of a change of registrant or while the domain is held by staff. Without an answer Gatehills approves automatically 24 hours before the registry deadline.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Domain
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

POST /domains/{name}/release

.uk only: release the domain to the IPS tag of the new registrar (scope domains:write)

Nominet has no auth code: the domain leaves Gatehills immediately. Not reversible from the API.

NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
tag requiredbodystring
Responses
200Domain
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
502The registry rejected the operation or could not be reached (code: registry_error)

Contacts

GET /contacts

Contact book of the account (scope contacts:read)
Responses
200Contacts
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

POST /contacts

Create a contact (scope contacts:write)
NameInTypeDescription
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
name requiredbodystring
orgbodystring | null
streetbodyarray of string
city requiredbodystring
statebodystring | null
postalCodebodystring | null
country requiredbodystringISO 3166-1 alpha-2
phone requiredbodystringRequired. Validated with libphonenumber; stored and returned as +CC.NUMBER (+971 50 123 4567 is accepted and normalised)
faxbodystring | nullOptional, same rules as phone
email requiredbodystring
disclosebodyboolean
Responses
201Contact created
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

GET /contacts/{id}

One contact (scope contacts:read)
NameInTypeDescription
id requiredpathinteger
Responses
200Contact
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

PUT /contacts/{id}

Change a contact and push it to every registry where it exists (scope contacts:write)
NameInTypeDescription
id requiredpathinteger
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Contact after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

DNS

GET /domains/{name}/dns/records

Records of the zone on Gatehills DNS (scope dns:read)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Responses
200Records (system records cannot be changed)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

POST /domains/{name}/dns/records

Add a record (scope dns:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
namebodystring@ for the apex, or a label such as www
type requiredbodystring: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS
content requiredbodystring
ttlbodyinteger
prioritybodyinteger
weightbodyinteger
portbodyinteger
Responses
201Record created
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

PUT /domains/{name}/dns/records/{id}

Change a record (scope dns:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
id requiredpathinteger
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
namebodystring@ for the apex, or a label such as www
type requiredbodystring: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS
content requiredbodystring
ttlbodyinteger
prioritybodyinteger
weightbodyinteger
portbodyinteger
Responses
200Record after the change
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

DELETE /domains/{name}/dns/records/{id}

Delete a record (scope dns:write)
NameInTypeDescription
name requiredpathstringDomain name, ASCII (punycode) or Unicode
id requiredpathinteger
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Deleted
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

Certificates

GET /certificates

Paid SSL certificates of the account (scope domains:read; the user of the key needs the hosting function)

Lifecycle events (certificate.validation_required, certificate.issued, certificate.expiry_reminder, certificate.expired, certificate.revoked, certificate.failed) are also sent to the reseller webhooks.

Responses
200Certificates
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

GET /certificates/{id}

One paid SSL certificate (scope domains:read)
NameInTypeDescription
id requiredpathinteger
Responses
200Certificate
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

GET /certificates/free

Free DV certificates (Let's Encrypt, Google Trust Services) of the account (scope certificates:read)

Lifecycle events certificate.acme_issued, certificate.acme_renewed, certificate.acme_failed, certificate.acme_expiring, certificate.acme_install_failed and certificate.acme_revoked are also sent to the reseller webhooks.

Responses
200Free certificates
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

POST /certificates/free

Request a free wildcard certificate (domain and *.domain) at price zero (scope certificates:write); domains hosted with Gatehills get one automatically

Available only for domains of the account that use the Gatehills name servers (DNS-01 on our DNS) or that are hosted on our cPanel with the hosting name servers (DNS-01 in the cPanel zone). With external DNS: 409 acme.refused.externalDns. Validation, issuance, installation on our cPanel hosting and renewal 30 days before expiry are automatic: poll GET /certificates/free/{id}. Limits: active certificates per account (409 acme.limitReached), requests per hour, orders per domain per week.

NameInTypeDescription
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
domain requiredbodystring
authoritybodystring: LETSENCRYPT, GOOGLE
keyTypebodystring: EC256, RSA2048, CSR
csrbodystringPEM CSR with exactly domain and *.domain (keyType CSR: Gatehills does not keep the key and does not install the certificate)
replacePaidCertificatebodybooleanRequired true when the domain has an active paid certificate (409 acme.paidCertificate otherwise): the free one is then also installed on our cPanel hosting
Responses
202Request accepted
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)
429Rate limit (code: rate_limited); see Retry-After

GET /certificates/free/availability

Can the domain get a free certificate? (scope certificates:read)
NameInTypeDescription
domain requiredquerystring
Responses
200Availability
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.

GET /certificates/free/{id}

One free certificate with its ACME history (scope certificates:read)
NameInTypeDescription
id requiredpathinteger
Responses
200Free certificate
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)

POST /certificates/free/{id}/download

Download certificate and chain (scope certificates:read) or with the private key / as PFX (scope certificates:keys)

No Idempotency-Key: the response may contain the private key and is never stored. Every download is audited (format, key yes/no; never the password). 409 acme.noKey when the certificate was requested with your CSR.

NameInTypeDescription
id requiredpathinteger
formatbodystring: PEM, PFX
includeKeybodyboolean
passwordbodystringPFX password (required for PFX)
Responses
200File
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

POST /certificates/free/{id}/revoke

Revoke an issued free certificate (scope certificates:write)
NameInTypeDescription
id requiredpathinteger
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
reason requiredbodystring: UNSPECIFIED, KEY_COMPROMISE, SUPERSEDED, CESSATION_OF_OPERATION
Responses
200Revoked
400Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact)
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

POST /certificates/free/{id}/retry

Retry a failed request or a failing renewal now (scope certificates:write)
NameInTypeDescription
id requiredpathinteger
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Retrying
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)

POST /certificates/free/{id}/cancel

Cancel a request not yet issued (scope certificates:write)
NameInTypeDescription
id requiredpathinteger
Idempotency-Key requiredheaderstring1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours)
Responses
200Cancelled
401Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Not allowed (codes: insufficient_scope, ip_not_allowed, account_suspended, reseller_disabled, club_required, reseller_only, key_owner_removed). club_required: client account of a Domain Club member whose membership is no longer active; the key is suspended until the membership is renewed. reseller_only: function reserved to reseller accounts, refused to Domain Club keys.
404Not found or belonging to another account (code: not_found, auth_code_unavailable)
409Conflict (codes: domain_unavailable, domain_already_managed, transfer_already_open, renewal_already_open, invalid_state, change_of_registrant_lock, dns_not_managed, billing_profile_missing, registrant_data_missing, registration_needs_support, order_conflict, idempotency_in_progress)