Get mapped and all controls for a policy
curl --request GET \
--url https://api.trycomp.ai/v1/policies/{id}/controls \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/policies/{id}/controls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policies/{id}/controls"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"mappedControls": [
{
"id": "ctl_abc123def456",
"name": "Access Control Policy Review",
"description": "Annual review of the access control policy",
"frameworks": [
{
"id": "frk_abc123def456",
"name": "SOC 2"
}
]
}
],
"allControls": [
{
"id": "ctl_abc123def456",
"name": "Access Control Policy Review",
"description": "Annual review of the access control policy",
"frameworks": [
{
"id": "frk_abc123def456",
"name": "SOC 2"
}
]
},
{
"id": "ctl_xyz789abc123",
"name": "Vendor Risk Assessment",
"description": null,
"frameworks": []
}
],
"authType": "api-key"
}Policies
Get mapped and all controls for a policy | Comp AI API
Get mapped and all controls for a policy in Comp AI. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting.
GET
/
v1
/
policies
/
{id}
/
controls
Get mapped and all controls for a policy
curl --request GET \
--url https://api.trycomp.ai/v1/policies/{id}/controls \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/policies/{id}/controls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policies/{id}/controls"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"mappedControls": [
{
"id": "ctl_abc123def456",
"name": "Access Control Policy Review",
"description": "Annual review of the access control policy",
"frameworks": [
{
"id": "frk_abc123def456",
"name": "SOC 2"
}
]
}
],
"allControls": [
{
"id": "ctl_abc123def456",
"name": "Access Control Policy Review",
"description": "Annual review of the access control policy",
"frameworks": [
{
"id": "frk_abc123def456",
"name": "SOC 2"
}
]
},
{
"id": "ctl_xyz789abc123",
"name": "Vendor Risk Assessment",
"description": null,
"frameworks": []
}
],
"authType": "api-key"
}Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
Example:
"pol_abc123def456"
Response
200 - application/json
Controls retrieved successfully
Controls currently mapped to this policy
Show child attributes
Show child attributes
Every control in the organization, so a client can offer the full mapping choice. Not a subset of the policy's controls.
Show child attributes
Show child attributes
How the request was authenticated
Available options:
api-key, session Authenticated user information (only present for session auth)
Show child attributes
Show child attributes
Was this page helpful?

