Domains-tlds-registryagreements:GET

From Hostway API Documentation
Jump to: navigation, search

GET /domains/tlds/registryagreement

Get a list of registry agreements

Contents

Request

GET /domains/tlds/registryagreement

Parameters

tld
one or more valid tld's separated by comma

Request Headers

None.

Request Body

None.

Request Parameters

tld - list of strings
comma separated list of tlds
for example, tlds=com,net.org

Response

Status Code

200 OK
Returns list of registry agreements
400 Bad Request
Invalid request, invalid parameter supplied

Response Body

List of registry agreements

Example get registry agreements for com,net,ca

Request

GET /domains/tlds/registryagreement?tlds=com,net,ca
 

Response

200 OK
Content-Type: application/json; charset=UTF-8

{"agreements": 
 [
  {"com": ""},
  {"net": ""},
  {"ca": "https://services.cira.ca/agree/agreement/agreementVersion2.0.jsp"},
 ]
}
 

Example get registry agreements (supplying invalid tld) for com,net,ca,invalidTld

Request

GET /domains/tlds/registryagreement?tlds=com,net,ca,invalidTld
 

Response

200 OK
Content-Type: application/json; charset=UTF-8

{"agreements": 
 [
  {"com": ""},
  {"net": ""},
  {"ca": "https://services.cira.ca/agree/agreement/agreementVersion2.0.jsp"},
  {"invalidtld": "Tld not supported"}
 ]
}

 

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox