API Documentation
Domain ¶
Overview
An API to purchase domains
Get some domain suggestions ¶
Get some domain suggestionsGET/domains/suggest?q={q}
Example URI
GET /domains/suggest?q=myname
URI Parameters
- q
string(required) Example: myname
Response
200Body
{
"code": "OK",
"data": [
{
"available": true,
"domain": "suggestion.com",
"definitive": true,
"price": 47990000,
"currency": "USD",
"period": 1
},
{
"available": true,
"domain": "suggestion.org",
"definitive": true,
"price": 47990000,
"currency": "USD",
"period": 1
},
{
"available": true,
"domain": "suggestion.net",
"definitive": true,
"price": 47990000,
"currency": "USD",
"period": 1
}
],
"info": {
"count": 3,
"total": 0
}
}Get legal agreements for a domain ¶
Get legal agreements for a domainGET/domains/agreements?domain={domain}
Example URI
GET /domains/agreements?domain=suggestion.com
URI Parameters
- domain
string(required) Example: suggestion.com
Response
200Body
{
"code": "OK",
"data": [
{
"url": "http://mock-nra-url",
"content": "Mock NRA Content",
"title": "Mock Domain Name Registration Agreement",
"agreementKey": "Mock DNRA"
}
],
"info": {
"count": 1,
"total": 0
}
}Purchase a domain ¶
Purchase a domainPOST/domains
Example URI
POST /domains
Request
Body
{
"domain": "suggestion.com",
"stripe": "63aa711e-ff94-46cf-8db4-695c13fc00ee",
"agreement": {
"ip": "127.0.0.1",
"keys": [
"Mock DNRA"
]
}
}Response
200Body
{
"code": "OK",
"data": {
"id": "bae4c6d1-2138-4ae8-aca1-b68ac83a783c",
"name": "suggestion.com",
"created_at": 1783014837.012949,
"updated_at": 1783014837.01295,
"owner": "b8e448a8-feaf-4a08-8c46-3766d99a405a",
"order": null,
"zone": null,
"charge": "cb4e1597-24bc-4f2f-8e7d-85a817522e6a",
"expires_at": 1814550837.011,
"expiry_email_due_at": 1813686837.011,
"type": "domain"
}
}Get domains ¶
Get domainsGET/domains
Example URI
GET /domains
Response
200Body
{
"code": "OK",
"data": [
{
"id": "bae4c6d1-2138-4ae8-aca1-b68ac83a783c",
"name": "suggestion.com",
"created_at": 1783014837.012949,
"updated_at": 1783014836.795281,
"owner": "b8e448a8-feaf-4a08-8c46-3766d99a405a",
"order": "841636",
"zone": null,
"charge": "3d7247d9-ad16-4598-8baa-405c5a30657b",
"expires_at": 1814550837.136,
"expiry_email_due_at": 1813686837.136,
"type": "domain"
}
],
"info": {
"count": 1,
"total": 0
}
}