Add or update a custom domain for the trust portal
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/settings/custom-domain \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domain": "trust.acme.com"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'trust.acme.com'})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/custom-domain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/settings/custom-domain"
payload = { "domain": "trust.acme.com" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Trust Portal
Add or update a custom domain for the trust | Comp AI API
Add or update a custom domain for the trust portal in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources.
POST
/
v1
/
trust-portal
/
settings
/
custom-domain
Add or update a custom domain for the trust portal
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/settings/custom-domain \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domain": "trust.acme.com"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'trust.acme.com'})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/custom-domain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/trust-portal/settings/custom-domain"
payload = { "domain": "trust.acme.com" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

