Enable or disable the trust portal
curl --request PUT \
--url https://api.trycomp.ai/v1/trust-portal/settings/toggle \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true,
"contactEmail": "security@acme.com",
"primaryColor": "#3B82F6"
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, contactEmail: 'security@acme.com', primaryColor: '#3B82F6'})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/toggle', 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/toggle"
payload = {
"enabled": True,
"contactEmail": "security@acme.com",
"primaryColor": "#3B82F6"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Trust Portal
Enable or disable the trust portal | Comp AI API
Set enabled to publish or unpublish, or omit it to update contact routing without changing publication. An empty contactEmail restores active owner/admin.
PUT
/
v1
/
trust-portal
/
settings
/
toggle
Enable or disable the trust portal
curl --request PUT \
--url https://api.trycomp.ai/v1/trust-portal/settings/toggle \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true,
"contactEmail": "security@acme.com",
"primaryColor": "#3B82F6"
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, contactEmail: 'security@acme.com', primaryColor: '#3B82F6'})
};
fetch('https://api.trycomp.ai/v1/trust-portal/settings/toggle', 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/toggle"
payload = {
"enabled": True,
"contactEmail": "security@acme.com",
"primaryColor": "#3B82F6"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
True publishes the trust portal; false takes it back to draft. Omit to preserve its publication status.
Example:
true
Address shown on the portal for visitors to contact. When set, access-request and NDA-signed notifications go only to this address instead of the organization's owners and admins; send an empty string to clear it and notify them again.
Example:
"security@acme.com"
Portal accent color in hex.
Example:
"#3B82F6"
Response
200
Was this page helpful?

