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
| Scope | Allows |
domains:read | Domains, prices, availability, operations; contacts of a domain with name, organisation and email only |
domains:write | Register, renew, transfer, restore (charged to the balance), delete, transfer lock, auth code; includes domains:read |
contacts:read | Full contact book (addresses, phone numbers) |
contacts:write | Create and change contacts, assign them to domains, WHOIS privacy; includes contacts:read |
dns:read | DNS records, DNSSEC and glue hosts |
dns:write | DNS records, name servers, DNSSEC and glue hosts; includes dns:read |
billing:read | Balance and transactions |
Errors
HTTP/1.1 402 Payment Required
{"error": {"code": "insufficient_funds", "message": "…", "details": {"needed": "45.21", "currency": "AED"}}}
| Status | Meaning |
| 400 | Invalid request: fix it (details.field says which field) |
| 401 | Missing, wrong, expired or revoked key |
| 402 | Not enough balance: nothing was charged or sent |
| 403 | Missing scope, IP not allowed, club_required, reseller_only |
| 404 | Not found, or not in your account |
| 409 | Conflict with the current state (premium price changed, operation already open…) |
| 422 | Idempotency key reused with a different request |
| 429 | Too many requests: wait Retry-After seconds |
| 5xx | Our side: retry later with the same Idempotency-Key |
Account
GET /account/balance
Prepaid balance per currency (scope billing:read)
Responses
200 | Balances |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
429 | Rate limit (code: rate_limited); see Retry-After |
GET /account/transactions
Latest balance movements, newest first (scope billing:read)
| Name | In | Type | Description |
limit | query | integer | |
Responses
200 | Transactions |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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).
| Name | In | Type | Description |
tlds | query | string | Comma-separated extensions (e.g. com,ae); empty = all |
Responses
200 | Price list |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
409 | Conflict (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)
| Name | In | Type | Description |
domains required | body | array of string | |
Responses
200 | One result per name |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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.
| Name | In | Type | Description |
q | query | string | Name, with or without extension (Unicode accepted); the typed extension comes first. Required without `domains`. |
tlds | query | string | Comma-separated extensions to check (default: the extensions on sale, featured first, up to 60) |
domains | query | string | Comma-separated full names to check instead of `q` (at most 60; invalid names give INVALID lines, no suggestions) |
suggestions | query | boolean | Add suggestion lines (only with `q`, when a suggestion source is configured) |
Responses
200 | NDJSON stream: one SearchStreamLine per line, `summary` last |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
429 | Rate limit (code: rate_limited); see Retry-After |
Domains
GET /domains
Domains of the account (scope domains:read)
| Name | In | Type | Description |
limit | query | integer | |
offset | query | integer | |
status | query | DomainStatus | |
Responses
200 | Page of domains |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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).
| Name | In | Type | Description |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
domain required | body | string | |
years | body | integer | Registration 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 |
registrantContactId | body | integer | Contact of the account contact book used as registrant, admin, tech and billing contact |
nameservers | body | array of string | Optional 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} |
privacy | body | boolean | Turn WHOIS/RDAP privacy on as soon as the domain is active, where the extension allows it |
premiumTotal | body | string | number | Required 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 |
eligibility | body | object | Registrant 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
202 | Order paid, registration in progress |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
402 | Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged. |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
422 | Not processable (codes: idempotency_key_reused, tld_not_supported, not_for_sale) |
429 | Rate limit (code: rate_limited); see Retry-After |
503 | Temporarily unavailable, nothing charged (code: registry_unavailable) |
POST /domains/transfer
Transfer a domain in with its auth code, paid from the balance (scope domains:write)
| Name | In | Type | Description |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
domain required | body | string | |
authCode | body | string | Required except for .uk (Nominet), where the losing registrar releases the domain to our tag |
premiumTotal | body | string | number | Required 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
202 | Order paid, transfer requested asynchronously |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
402 | Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged. |
403 | Not 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. |
409 | Conflict (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) |
422 | Not processable (codes: idempotency_key_reused, tld_not_supported, not_for_sale) |
GET /domains/{name}
Domain details (scope domains:read)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Domain |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
years | body | integer | From 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 |
premiumTotal | body | string | number | Required 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
202 | Order paid, renewal in progress |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
402 | Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged. |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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).
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Restore quote |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
premiumTotal | body | string | number | Required 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
202 | Order paid, restore in progress |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
402 | Insufficient prepaid balance including credit limit (code: insufficient_funds). The order is cancelled and nothing is charged. |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
422 | Not 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
confirm required | body | string | The domain name (ASCII or Unicode), as explicit confirmation; missing: 400 confirmation_required, different: 400 confirmation_mismatch |
Responses
200 | Deletion sent to the registry |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
nameservers | body | array of string | |
useDefault | body | boolean | true = Gatehills name servers and default zone |
Responses
200 | Domain after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
PUT /domains/{name}/lock
Transfer lock on or off (scope domains:write)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
locked required | body | boolean | |
Responses
200 | Domain after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Auth code |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Regenerated |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Contacts by role |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
registrant | body | integer | |
admin | body | integer | |
tech | body | integer | |
billing | body | integer | |
optOutTransferLock | body | boolean | |
Responses
200 | Contacts after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Feature flags |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Glue hosts |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
host required | body | string | |
addresses required | body | array of string | |
Responses
201 | Host created |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
host required | path | string | Label (ns1) or full host name (ns1.example.com) |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
addresses required | body | array of string | |
Responses
200 | Host after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
host required | path | string | Label (ns1) or full host name (ns1.example.com) |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Deleted |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
GET /domains/{name}/privacy
WHOIS privacy of the domain (scope domains:read)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Privacy status |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
enabled required | body | boolean | |
Responses
200 | Privacy after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
503 | Temporarily unavailable, nothing charged (code: registry_unavailable) |
GET /domains/{name}/dnssec
DNSSEC status and DS records published at the registry (scope dns:read)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | DNSSEC status |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
enabled required | body | boolean | |
Responses
200 | DNSSEC after the change (state may be DS_PENDING or UNSIGN_WAIT) |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
503 | Temporarily 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
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
keyTag required | body | integer | |
algorithm required | body | integer: 8, 10, 13, 14, 15, 16 | |
digestType required | body | integer: 2, 4 | |
digest required | body | string | Hexadecimal, 64 characters for type 2, 96 for type 4 |
Responses
201 | DNSSEC after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
503 | Temporarily unavailable, nothing charged (code: registry_unavailable) |
POST /domains/{name}/dnssec/ds/delete
Remove a DS record (scope dns:write)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
keyTag required | body | integer | |
algorithm required | body | integer: 8, 10, 13, 14, 15, 16 | |
digestType required | body | integer: 2, 4 | |
digest required | body | string | Hexadecimal, 64 characters for type 2, 96 for type 4 |
Responses
200 | DNSSEC after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
503 | Temporarily unavailable, nothing charged (code: registry_unavailable) |
GET /operations/{id}
Status of a paid operation (scope domains:read)
| Name | In | Type | Description |
id required | path | string | |
Responses
200 | Operation |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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.
| Name | In | Type | Description |
id required | path | string | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
authCode required | body | string | |
Responses
200 | Code saved, the transfer is retried |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
422 | Not 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).
| Name | In | Type | Description |
name required | path | string | |
Responses
200 | Transfer status |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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.
| Name | In | Type | Description |
direction | query | string: in, out | |
status | query | string | |
limit | query | integer | |
Responses
200 | Transfers |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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.
| Name | In | Type | Description |
domains required | body | array of string | |
Responses
200 | Eligibility |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Transfer |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Domain |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Domain |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The 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.
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
tag required | body | string | |
Responses
200 | Domain |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |
502 | The registry rejected the operation or could not be reached (code: registry_error) |
GET /contacts
Contact book of the account (scope contacts:read)
Responses
200 | Contacts |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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)
| Name | In | Type | Description |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
name required | body | string | |
org | body | string | null | |
street | body | array of string | |
city required | body | string | |
state | body | string | null | |
postalCode | body | string | null | |
country required | body | string | ISO 3166-1 alpha-2 |
phone required | body | string | Required. Validated with libphonenumber; stored and returned as +CC.NUMBER (+971 50 123 4567 is accepted and normalised) |
fax | body | string | null | Optional, same rules as phone |
email required | body | string | |
disclose | body | boolean | |
Responses
201 | Contact created |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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)
| Name | In | Type | Description |
id required | path | integer | |
Responses
200 | Contact |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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)
| Name | In | Type | Description |
id required | path | integer | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Contact after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Responses
200 | Records (system records cannot be changed) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
name | body | string | @ for the apex, or a label such as www |
type required | body | string: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS | |
content required | body | string | |
ttl | body | integer | |
priority | body | integer | |
weight | body | integer | |
port | body | integer | |
Responses
201 | Record created |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
id required | path | integer | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
name | body | string | @ for the apex, or a label such as www |
type required | body | string: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS | |
content required | body | string | |
ttl | body | integer | |
priority | body | integer | |
weight | body | integer | |
port | body | integer | |
Responses
200 | Record after the change |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
name required | path | string | Domain name, ASCII (punycode) or Unicode |
id required | path | integer | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Deleted |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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
200 | Certificates |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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)
| Name | In | Type | Description |
id required | path | integer | |
Responses
200 | Certificate |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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
200 | Free certificates |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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.
| Name | In | Type | Description |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
domain required | body | string | |
authority | body | string: LETSENCRYPT, GOOGLE | |
keyType | body | string: EC256, RSA2048, CSR | |
csr | body | string | PEM CSR with exactly domain and *.domain (keyType CSR: Gatehills does not keep the key and does not install the certificate) |
replacePaidCertificate | body | boolean | Required 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
202 | Request accepted |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
409 | Conflict (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) |
429 | Rate limit (code: rate_limited); see Retry-After |
GET /certificates/free/availability
Can the domain get a free certificate? (scope certificates:read)
| Name | In | Type | Description |
domain required | query | string | |
Responses
200 | Availability |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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)
| Name | In | Type | Description |
id required | path | integer | |
Responses
200 | Free certificate |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not 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.
| Name | In | Type | Description |
id required | path | integer | |
format | body | string: PEM, PFX | |
includeKey | body | boolean | |
password | body | string | PFX password (required for PFX) |
Responses
200 | File |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
id required | path | integer | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
reason required | body | string: UNSPECIFIED, KEY_COMPROMISE, SUPERSEDED, CESSATION_OF_OPERATION | |
Responses
200 | Revoked |
400 | Invalid request (codes: invalid_request, idempotency_key_required, invalid_idempotency_key, invalid_nameservers, invalid_record, invalid_contact) |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
id required | path | integer | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Retrying |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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)
| Name | In | Type | Description |
id required | path | integer | |
Idempotency-Key required | header | string | 1-100 characters among A-Z a-z 0-9 _ . : - ; unique per operation, reused only to retry the same request (kept 24 hours) |
Responses
200 | Cancelled |
401 | Missing or invalid key (codes: missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
403 | Not 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. |
404 | Not found or belonging to another account (code: not_found, auth_code_unavailable) |
409 | Conflict (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) |