List policies with trust portal visibility
curl --request GET \
--url https://api.trycomp.ai/v1/trust-portal/policies \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/trust-portal/policies', 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/policies"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "pol_abc123",
"name": "Information Security Policy",
"status": "published",
"showOnTrustPortal": false
}
]Trust Portal
List policies with trust portal visibility | Comp AI API
Returns the organization’s non-archived policies with their publishing status and whether each is switched on for the public trust portal. Use before.
GET
/
v1
/
trust-portal
/
policies
List policies with trust portal visibility
curl --request GET \
--url https://api.trycomp.ai/v1/trust-portal/policies \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/trust-portal/policies', 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/policies"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "pol_abc123",
"name": "Information Security Policy",
"status": "published",
"showOnTrustPortal": false
}
]Authorizations
API key for authentication
Response
200 - application/json
Example:
"pol_abc123"
Example:
"Information Security Policy"
Publishing status. Only published policies appear on the portal.
Available options:
draft, published, needs_review Example:
"published"
Whether the policy is switched on for the public trust portal. New policies start hidden.
Example:
false
Was this page helpful?

