List purchased domains
import requests
url = "https://platform.ankra.app/api/v1/org/domains/purchases"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/domains/purchases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/domains/purchases \
--header 'Authorization: Bearer <token>'{
"purchases": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"auto_renew": true,
"use_as_ankra_domain": true,
"root_status": "not_requested",
"root_failure": "<string>",
"cloud_domain_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"registrations_unavailable": true
}{
"detail": "<string>",
"reason": "<string>"
}DNS
List purchased domains
List the domains the organisation bought through Ankra, newest first, with each registration’s status and expiry and whether it became the organisation’s Ankra root domain. Available to organisations with domain purchase enabled; answers 404 otherwise.
GET
/
api
/
v1
/
org
/
domains
/
purchases
List purchased domains
import requests
url = "https://platform.ankra.app/api/v1/org/domains/purchases"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/domains/purchases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/domains/purchases \
--header 'Authorization: Bearer <token>'{
"purchases": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"auto_renew": true,
"use_as_ankra_domain": true,
"root_status": "not_requested",
"root_failure": "<string>",
"cloud_domain_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"registrations_unavailable": true
}{
"detail": "<string>",
"reason": "<string>"
}