Update allowed domains for the trust portal
curl --request PUT \
--url https://api.trycomp.ai/v1/trust-portal/settings/allowed-domains \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domains": [
"example.com"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domains: ['example.com']})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/allowed-domains', 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/allowed-domains"
payload = { "domains": ["example.com"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"ndaWaivedRequests": 123
}Trust Portal
Update allowed domains for the trust portal | Comp AI API
Replace the email domains that skip NDA signing. Approved requests still waiting on an NDA for any saved domain are granted access and emailed. Re-save.
PUT
/
v1
/
trust-portal
/
settings
/
allowed-domains
Update allowed domains for the trust portal
curl --request PUT \
--url https://api.trycomp.ai/v1/trust-portal/settings/allowed-domains \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domains": [
"example.com"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domains: ['example.com']})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/allowed-domains', 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/allowed-domains"
payload = { "domains": ["example.com"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"ndaWaivedRequests": 123
}Authorizations
API key for authentication
Body
application/json
Replace the full list; send an empty array to clear it.
Email domains that bypass NDA signing. Replaces the full list; send an empty array to clear it.
Example:
["example.com"]
Was this page helpful?

