custom domains
Create Custom Domain
Start asynchronous certificate provisioning for a tenant API hostname.
POST
/
api
/
custom-domains
Create Custom Domain
curl --request POST \
--url https://api.aixy-gateway.com/api/custom-domains \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"hostname": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/custom-domains"
payload = { "hostname": "<string>" }
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({hostname: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/custom-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"hostname": "<string>",
"status": "<string>",
"certificate_status": "<string>",
"validation_record": {
"type": "<string>",
"name": "<string>",
"value": "<string>"
},
"routing_record": {
"type": "<string>",
"name": "<string>",
"value": "<string>"
},
"last_error_code": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"object": "custom_domain"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Secure same-origin browser session cookie.
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Allowed value:
"custom_domain"⌘I
Create Custom Domain
curl --request POST \
--url https://api.aixy-gateway.com/api/custom-domains \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"hostname": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/custom-domains"
payload = { "hostname": "<string>" }
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({hostname: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/custom-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"hostname": "<string>",
"status": "<string>",
"certificate_status": "<string>",
"validation_record": {
"type": "<string>",
"name": "<string>",
"value": "<string>"
},
"routing_record": {
"type": "<string>",
"name": "<string>",
"value": "<string>"
},
"last_error_code": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"object": "custom_domain"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}