Skip to content

List compliance policies

GET
/v1/policies
curl --request GET --url "https://api.example.com/v1/policies" --header "X-API-Key: $COMP_AI_API_KEY"

Lists active compliance policies by default. Use includeArchived=true to include archived rows and excludeContent=true when you only need policy metadata.

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

excludeContent
boolean

When true, omits content and draftContent from each policy in the response. Use this when listing policies to find one by name/ID — fetch the full content via GET /v1/policies/{id} after.

includeArchived
boolean

When true, includes user-archived and framework-sync-archived policies in the response. Defaults to false.

kind
string
Allowed values: policy procedure

Policy (default) lists policies, procedure lists procedures.

Policies retrieved successfully

Media typeapplication/json
object
data
required

Array of policies

Array<object>
object
id
required

The policy ID

string
name
required

Name of the policy

string
description
required

Description of the policy

string
nullable
status
required

Status of the policy

string
Allowed values: draft published needs_review
content
required

Content of the policy as TipTap JSON (array of nodes)

Array<object>
object
key
additional properties
any
frequency
required

Review frequency of the policy

string
nullable
Allowed values: monthly quarterly yearly
department
required

Department this policy applies to. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.

string
nullable
isRequiredToSign
required

Whether this policy requires a signature

boolean
signedBy
required

List of user IDs who have signed this policy

Array<string>
reviewDate
required

Review date for the policy

string format: date-time
nullable
isArchived
required

Whether this policy is archived

boolean
archivedAt
required

When the policy was archived by framework sync

string format: date-time
nullable
createdAt
required

When the policy was created

string format: date-time
updatedAt
required

When the policy was last updated

string format: date-time
lastArchivedAt
required

When the policy was last archived

string format: date-time
nullable
lastPublishedAt
required

When the policy was last published

string format: date-time
nullable
organizationId
required

Organization ID this policy belongs to

string
assigneeId
required

ID of the user assigned to this policy

string
nullable
approverId
required

ID of the user who approved this policy

string
nullable
policyTemplateId
required

ID of the policy template this policy is based on

string
nullable
authType
required

How the request was authenticated

string
Allowed values: api-key session
authenticatedUser

Authenticated user information (only present for session auth)

object
id

User ID

string
email

User email

string

Example

{
"data": [
{
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "This policy outlines our commitment to protecting personal data."
}
]
}
],
"frequency": "yearly",
"department": "IT",
"isRequiredToSign": true,
"signedBy": [],
"reviewDate": "2024-12-31T00:00:00.000Z",
"isArchived": false,
"archivedAt": null,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"lastArchivedAt": null,
"lastPublishedAt": "2024-01-10T00:00:00.000Z",
"organizationId": "org_abc123def456",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": null
}
],
"authType": "session",
"authenticatedUser": {
"id": "usr_abc123def456",
"email": "user@company.com"
}
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}