List audit logs
curl --request GET \
--url https://api.trycomp.ai/v1/audit-logs \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/audit-logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/audit-logs"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Audit Logs
List audit logs | Comp AI API
List organization audit logs for compliance activity, access changes, evidence updates, and customer-facing review events.
GET
/
v1
/
audit-logs
List audit logs
curl --request GET \
--url https://api.trycomp.ai/v1/audit-logs \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/audit-logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/audit-logs"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
API key for authentication
Query Parameters
Entity type, or a comma-separated list (e.g. policy, task, control). people and organization are deprecated here; use GET /v1/audit-logs/organization.
Entity ID, or a comma-separated list. Omitting it lists every record (deprecated).
Filter by path substring (e.g. automation ID)
Number of logs to return (max 100, default 50)
Number of logs to skip (default 0)
Response
200
Was this page helpful?

