Create a custom link for trust portal
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/custom-links \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "org_6914cd0e16e4c7dccbb54426",
"title": "<string>",
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: 'org_6914cd0e16e4c7dccbb54426',
title: '<string>',
url: '<string>'
})
};
fetch('https://api.trycomp.ai/v1/trust-portal/custom-links', 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/custom-links"
payload = {
"organizationId": "org_6914cd0e16e4c7dccbb54426",
"title": "<string>",
"url": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Trust Portal
Create a custom link for trust portal | Comp AI API
Create a custom link for trust portal in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents.
POST
/
v1
/
trust-portal
/
custom-links
Create a custom link for trust portal
curl --request POST \
--url https://api.trycomp.ai/v1/trust-portal/custom-links \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "org_6914cd0e16e4c7dccbb54426",
"title": "<string>",
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: 'org_6914cd0e16e4c7dccbb54426',
title: '<string>',
url: '<string>'
})
};
fetch('https://api.trycomp.ai/v1/trust-portal/custom-links', 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/custom-links"
payload = {
"organizationId": "org_6914cd0e16e4c7dccbb54426",
"title": "<string>",
"url": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Organization that owns the trust portal. Must match the authenticated API key's organization.
Example:
"org_6914cd0e16e4c7dccbb54426"
Required string length:
1 - 100Maximum string length:
2000Maximum string length:
500Response
201
Custom link created successfully
Was this page helpful?

