Search compliance records
curl --request GET \
--url https://api.trycomp.ai/v1/search \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/search"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"type": "policy",
"id": "pol_abc123def456",
"title": "Business Continuity Policy",
"subtitle": "Defines how the organization maintains operations during disruption.",
"status": "published"
}
],
"count": 4
}Search
Search compliance records | Comp AI API
Search policies, tasks, documents, people, controls, vendors, and risks by keyword in one call to locate a compliance record before fetching it by ID.
GET
/
v1
/
search
Search compliance records
curl --request GET \
--url https://api.trycomp.ai/v1/search \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/search"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"type": "policy",
"id": "pol_abc123def456",
"title": "Business Continuity Policy",
"subtitle": "Defines how the organization maintains operations during disruption.",
"status": "published"
}
],
"count": 4
}Authorizations
API key for authentication
Query Parameters
Search term, matched case-insensitively against names first, then descriptions. Terms shorter than 2 characters return no results.
Maximum string length:
100Example:
"continuity"
Maximum results per entity type
Required range:
1 <= x <= 20Example:
5
Was this page helpful?

