Policies
Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
List compliance policies
/v1/policiesLists active compliance policies for SOC 2, ISO 27001, HIPAA, and GDPR programs by default. Use includeArchived=true to include archived rows and excludeContent=true when you only need policy metadata.
Query parameters
excludeContentbooleanWhen 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.
includeArchivedbooleanWhen true, includes user-archived and framework-sync-archived policies in the response. Defaults to false.
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Policies retrieved successfully
dataobject[]requiredArray of policies
Show child attributes
idstringrequiredThe policy ID
namestringrequiredName of the policy
descriptionstringrequiredDescription of the policy
statusenumrequiredStatus of the policy
One of: draft published needs_review
contentobject[]requiredContent of the policy as TipTap JSON (array of nodes)
frequencyenumrequiredReview frequency of the policy
One of: monthly quarterly yearly
departmentstringrequiredDepartment this policy applies to. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.
isRequiredToSignbooleanrequiredWhether this policy requires a signature
signedBystring[]requiredList of user IDs who have signed this policy
reviewDatestringrequiredReview date for the policy
isArchivedbooleanrequiredWhether this policy is archived
archivedAtstringrequiredWhen the policy was archived by framework sync
createdAtstringrequiredWhen the policy was created
updatedAtstringrequiredWhen the policy was last updated
lastArchivedAtstringrequiredWhen the policy was last archived
lastPublishedAtstringrequiredWhen the policy was last published
organizationIdstringrequiredOrganization ID this policy belongs to
assigneeIdstringrequiredID of the user assigned to this policy
approverIdstringrequiredID of the user who approved this policy
policyTemplateIdstringrequiredID of the policy template this policy is based on
authTypeenumrequiredHow the request was authenticated
One of: api-key session
authenticatedUserobjectAuthenticated user information (only present for session auth)
Show child attributes
idstringUser ID
emailstringUser email
{
"data": [
{
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
],
"frequency": "yearly",
"department": "it",
"isRequiredToSign": true,
"signedBy": [
"usr_123",
"usr_456"
],
"reviewDate": "2024-12-31T00:00:00.000Z",
"isArchived": false,
"archivedAt": "2024-02-01T00:00:00.000Z",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"lastArchivedAt": "2024-02-01T00:00:00.000Z",
"lastPublishedAt": "2024-01-10T00:00:00.000Z",
"organizationId": "org_abc123def456",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": "plt_template123"
}
],
"authType": "api-key",
"authenticatedUser": {
"id": "usr_abc123def456",
"email": "user@company.com"
}
}401Unauthorized - Invalid authentication or insufficient permissions
messagestring{
"message": "Unauthorized"
}curl --request GET \
--url https://api.complianz.ai/v1/policies \
--header 'X-API-Key: <api-key>'Create compliance policy
/v1/policiesCreate a policy record that can be reviewed, versioned, published, linked to controls, and used as source evidence for questionnaires.
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
namestringrequiredName of the policy
descriptionstringDescription of the policy
statusenumStatus of the policy
One of: draft published needs_review
contentobject[]requiredContent of the policy as TipTap JSON (array of nodes)
frequencyenumReview frequency of the policy
One of: monthly quarterly yearly
departmentstringDepartment this policy applies to. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
isRequiredToSignbooleanWhether this policy requires a signature
reviewDatestringReview date for the policy
assigneeIdstringID of the user assigned to this policy
approverIdstringID of the user who approved this policy
policyTemplateIdstringID of the policy template this policy is based on
signedBystring[]List of user IDs who have signed this policy
Responses
201Policy created successfully
idstringrequiredThe policy ID
namestringrequiredName of the policy
descriptionstringrequiredDescription of the policy
statusenumrequiredStatus of the policy
One of: draft published needs_review
contentobject[]requiredContent of the policy as TipTap JSON (array of nodes)
frequencyenumrequiredReview frequency of the policy
One of: monthly quarterly yearly
departmentstringrequiredDepartment this policy applies to. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.
isRequiredToSignbooleanrequiredWhether this policy requires a signature
signedBystring[]requiredList of user IDs who have signed this policy
reviewDatestringrequiredReview date for the policy
isArchivedbooleanrequiredWhether this policy is archived
archivedAtstringrequiredWhen the policy was archived by framework sync
createdAtstringrequiredWhen the policy was created
updatedAtstringrequiredWhen the policy was last updated
lastArchivedAtstringrequiredWhen the policy was last archived
lastPublishedAtstringrequiredWhen the policy was last published
organizationIdstringrequiredOrganization ID this policy belongs to
assigneeIdstringrequiredID of the user assigned to this policy
approverIdstringrequiredID of the user who approved this policy
policyTemplateIdstringrequiredID of the policy template this policy is based on
{
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
],
"frequency": "yearly",
"department": "it",
"isRequiredToSign": true,
"signedBy": [
"usr_123",
"usr_456"
],
"reviewDate": "2024-12-31T00:00:00.000Z",
"isArchived": false,
"archivedAt": "2024-02-01T00:00:00.000Z",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"lastArchivedAt": "2024-02-01T00:00:00.000Z",
"lastPublishedAt": "2024-01-10T00:00:00.000Z",
"organizationId": "org_abc123def456",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": "plt_template123"
}400Bad Request - Invalid policy data
messagestring{
"message": "Invalid policy content format"
}401Unauthorized - Invalid authentication or insufficient permissions
messagestring{
"message": "Unauthorized"
}curl --request POST \
--url https://api.complianz.ai/v1/policies \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
],
"frequency": "yearly",
"department": "it",
"isRequiredToSign": true,
"reviewDate": "2024-12-31T00:00:00.000Z",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": "plt_template123",
"signedBy": [
"usr_123",
"usr_456"
]
}'Publish all draft policies
/v1/policies/publish-allPublish draft policies in bulk so approved policy content can power Trust Center sharing, questionnaire answers, and audit evidence.
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/publish-all \
--header 'X-API-Key: <api-key>'Download all published policies
/v1/policies/download-allGenerate a single PDF bundle of published compliance policies for auditors, customer security reviews, and Trust Center workflows.
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Signed URL for PDF bundle returned
404No published policies found
curl --request GET \
--url https://api.complianz.ai/v1/policies/download-all \
--header 'X-API-Key: <api-key>'Get mapped and all controls for a policy
/v1/policies/{id}/controlsGet mapped and all controls for a policy in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/policies/<id>/controls \
--header 'X-API-Key: <api-key>'Map controls to a policy
/v1/policies/{id}/controlsMap controls to a policy in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/controls \
--header 'X-API-Key: <api-key>'Get tasks that serve as evidence for a policy, grouped by control
/v1/policies/{id}/evidence-tasksGet tasks that serve as evidence for a policy, grouped by control in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/policies/<id>/evidence-tasks \
--header 'X-API-Key: <api-key>'Regenerate policy with AI
/v1/policies/{id}/regenerateRegenerate policy content using Complianz while keeping the result reviewable before it is published or used as compliance evidence.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/regenerate \
--header 'X-API-Key: <api-key>'Get a signed URL for the policy PDF
/v1/policies/{id}/pdf/signed-urlGet a signed URL for the policy PDF in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Query parameters
versionIdstringHeader parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/policies/<id>/pdf/signed-url \
--header 'X-API-Key: <api-key>'Upload a PDF to a policy version (UI-only)
/v1/policies/{id}/pdfUploads a PDF via multipart `file` or base64 `fileData` JSON. Defaults to the latest draft if no `versionId`; 400 if no draft is available. UI-only — AI clients should use the presigned `/pdf/upload-url` + `/pdf/confirm` flow.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/pdf \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"file": "string",
"versionId": "string"
}'Delete a policy version PDF
/v1/policies/{id}/pdfDeletes the PDF from a specific policy version. If no versionId is provided, deletes from the latest draft version. Cannot delete PDFs from published or pending-approval versions.
Path parameters
idstringrequiredPolicy ID
Query parameters
versionIdstringTarget version ID. If omitted, targets the latest draft version.
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200
curl --request DELETE \
--url https://api.complianz.ai/v1/policies/<id>/pdf \
--header 'X-API-Key: <api-key>'Request a presigned URL to upload a policy PDF
/v1/policies/{id}/pdf/upload-urlGenerates a presigned S3 URL for uploading a policy PDF directly to storage. Use this when attaching a PDF to a compliance policy — the file bytes are uploaded straight to S3 without passing through the API. Requires the policy ID; if you only know the policy name, look it up first via the list-compliance-policies tool. After uploading the file to the returned URL, finalize the attachment by calling confirm-policy-pdf-uploaded with the same s3Key.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
versionIdstringOptional version ID to attach the PDF to. Omit to attach the PDF at the policy level (legacy path).
fileNamestringrequiredFilename of the PDF (e.g., "policy-v1.pdf"). Non-alphanumeric characters will be replaced with underscores when storing in S3.
fileTypestringrequiredMIME type of the file. Must be "application/pdf" — the presigned URL enforces this at upload time.
Responses
201
uploadUrlstringrequiredPresigned S3 URL. PUT the raw file bytes to this URL with header `Content-Type: application/pdf`. No auth headers required — the signature is in the URL.
s3KeystringrequiredThe S3 key the file will land at. Pass this back to the confirm endpoint after a successful upload.
expiresInnumberrequiredSeconds until the presigned URL expires.
{
"uploadUrl": "https://bucket.s3.us-east-1.amazonaws.com/org_xxx/policies/pol_xxx/...?X-Amz-Signature=...",
"s3Key": "org_abc/policies/pol_xyz/1735000000-acceptable-use-v1.pdf",
"expiresIn": 900
}curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/pdf/upload-url \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"versionId": "pv_abc123def456",
"fileName": "acceptable-use-v1.pdf",
"fileType": "application/pdf"
}'Confirm a policy PDF upload completed
/v1/policies/{id}/pdf/confirmLinks an uploaded PDF to a compliance policy after the file has been PUT to a presigned S3 URL. Call this after request-policy-pdf-upload-url returned an s3Key and you successfully uploaded the file bytes to that URL. The endpoint verifies the file exists in S3 before linking it to the policy or version.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
s3KeystringrequiredThe exact s3Key returned by the upload-url endpoint.
versionIdstringOptional version ID — must match the versionId passed to the upload-url endpoint. Omit if attaching at the policy level.
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/pdf/confirm \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"s3Key": "org_abc/policies/pol_xyz/1735000000-acceptable-use-v1.pdf",
"versionId": "pv_abc123def456"
}'Get signed URL for policy PDF (alternate path)
/v1/policies/{id}/pdf-urlGet signed URL for policy PDF (alternate path) in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Query parameters
versionIdstringHeader parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/policies/<id>/pdf-url \
--header 'X-API-Key: <api-key>'Remove a control mapping from a policy
/v1/policies/{id}/controls/{controlId}Remove a control mapping from a policy in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
controlIdstringrequiredHeader parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200
curl --request DELETE \
--url https://api.complianz.ai/v1/policies/<id>/controls/<controlId> \
--header 'X-API-Key: <api-key>'Get compliance policy
/v1/policies/{id}Retrieve a single compliance policy by its ID, including current content, draft content, review status, framework links, and audit metadata. Use this to read or inspect one policy in detail. If you only have a policy name, find its ID first by listing compliance policies.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Policy retrieved successfully
idstringrequiredThe policy ID
namestringrequiredName of the policy
descriptionstringrequiredDescription of the policy
statusenumrequiredStatus of the policy
One of: draft published needs_review
contentobject[]requiredContent of the policy as TipTap JSON (array of nodes)
frequencyenumrequiredReview frequency of the policy
One of: monthly quarterly yearly
departmentstringrequiredDepartment this policy applies to. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.
isRequiredToSignbooleanrequiredWhether this policy requires a signature
signedBystring[]requiredList of user IDs who have signed this policy
reviewDatestringrequiredReview date for the policy
isArchivedbooleanrequiredWhether this policy is archived
archivedAtstringrequiredWhen the policy was archived by framework sync
createdAtstringrequiredWhen the policy was created
updatedAtstringrequiredWhen the policy was last updated
lastArchivedAtstringrequiredWhen the policy was last archived
lastPublishedAtstringrequiredWhen the policy was last published
organizationIdstringrequiredOrganization ID this policy belongs to
assigneeIdstringrequiredID of the user assigned to this policy
approverIdstringrequiredID of the user who approved this policy
policyTemplateIdstringrequiredID of the policy template this policy is based on
{
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
],
"frequency": "yearly",
"department": "it",
"isRequiredToSign": true,
"signedBy": [
"usr_123",
"usr_456"
],
"reviewDate": "2024-12-31T00:00:00.000Z",
"isArchived": false,
"archivedAt": "2024-02-01T00:00:00.000Z",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"lastArchivedAt": "2024-02-01T00:00:00.000Z",
"lastPublishedAt": "2024-01-10T00:00:00.000Z",
"organizationId": "org_abc123def456",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": "plt_template123"
}401Unauthorized - Invalid authentication or insufficient permissions
messagestring{
"message": "Unauthorized"
}404Policy not found
messagestring{
"message": "Policy with ID pol_abc123def456 not found"
}curl --request GET \
--url https://api.complianz.ai/v1/policies/<id> \
--header 'X-API-Key: <api-key>'Update compliance policy
/v1/policies/{id}Update compliance policy details or content while keeping policy workflows connected to controls, tasks, and approvals.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
namestringName of the policy
descriptionstringDescription of the policy
statusenumStatus of the policy
One of: draft published needs_review
contentobject[]Content of the policy as TipTap JSON (array of nodes)
frequencyenumReview frequency of the policy
One of: monthly quarterly yearly
departmentstringDepartment this policy applies to. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
isRequiredToSignbooleanWhether this policy requires a signature
reviewDatestringReview date for the policy
assigneeIdstringID of the user assigned to this policy
approverIdstringID of the user who approved this policy
policyTemplateIdstringID of the policy template this policy is based on
signedBystring[]List of user IDs who have signed this policy
isArchivedbooleanWhether to archive this policy
displayFormatenumDisplay format for this policy
One of: EDITOR PDF
Responses
200Policy updated successfully
idstringrequiredThe policy ID
namestringrequiredName of the policy
descriptionstringrequiredDescription of the policy
statusenumrequiredStatus of the policy
One of: draft published needs_review
contentobject[]requiredContent of the policy as TipTap JSON (array of nodes)
frequencyenumrequiredReview frequency of the policy
One of: monthly quarterly yearly
departmentstringrequiredDepartment this policy applies to. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.
isRequiredToSignbooleanrequiredWhether this policy requires a signature
signedBystring[]requiredList of user IDs who have signed this policy
reviewDatestringrequiredReview date for the policy
isArchivedbooleanrequiredWhether this policy is archived
archivedAtstringrequiredWhen the policy was archived by framework sync
createdAtstringrequiredWhen the policy was created
updatedAtstringrequiredWhen the policy was last updated
lastArchivedAtstringrequiredWhen the policy was last archived
lastPublishedAtstringrequiredWhen the policy was last published
organizationIdstringrequiredOrganization ID this policy belongs to
assigneeIdstringrequiredID of the user assigned to this policy
approverIdstringrequiredID of the user who approved this policy
policyTemplateIdstringrequiredID of the policy template this policy is based on
{
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
],
"frequency": "yearly",
"department": "it",
"isRequiredToSign": true,
"signedBy": [
"usr_123",
"usr_456"
],
"reviewDate": "2024-12-31T00:00:00.000Z",
"isArchived": false,
"archivedAt": "2024-02-01T00:00:00.000Z",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"lastArchivedAt": "2024-02-01T00:00:00.000Z",
"lastPublishedAt": "2024-01-10T00:00:00.000Z",
"organizationId": "org_abc123def456",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": "plt_template123"
}400Bad Request - Invalid update data
messagestring{
"message": "Validation failed"
}401Unauthorized - Invalid authentication or insufficient permissions
messagestring{
"message": "Unauthorized"
}404Policy not found
messagestring{
"message": "Policy with ID pol_abc123def456 not found"
}curl --request PATCH \
--url https://api.complianz.ai/v1/policies/<id> \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Data Privacy Policy",
"description": "This policy outlines how we handle and protect personal data",
"status": "draft",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Verify workforce integrity and grant the right access at start, revoke at end."
}
]
}
],
"frequency": "yearly",
"department": "it",
"isRequiredToSign": true,
"reviewDate": "2024-12-31T00:00:00.000Z",
"assigneeId": "usr_abc123def456",
"approverId": "usr_xyz789abc123",
"policyTemplateId": "plt_template123",
"signedBy": [
"usr_123",
"usr_456"
],
"isArchived": false,
"displayFormat": "EDITOR"
}'Delete compliance policy
/v1/policies/{id}Delete a compliance policy that is no longer part of the organization evidence library or control program.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Policy deleted successfully
successbooleanIndicates successful deletion
deletedPolicyobjectShow child attributes
idstringThe deleted policy ID
namestringThe deleted policy name
authTypeenumHow the request was authenticated
One of: api-key session
{
"success": true,
"deletedPolicy": {
"id": "pol_abc123def456",
"name": "Data Privacy Policy"
},
"authType": "api-key"
}401Unauthorized - Invalid authentication or insufficient permissions
messagestring{
"message": "Unauthorized"
}404Policy not found
messagestring{
"message": "Policy with ID pol_abc123def456 not found"
}curl --request DELETE \
--url https://api.complianz.ai/v1/policies/<id> \
--header 'X-API-Key: <api-key>'Get policy versions
/v1/policies/{id}/versionsGet policy versions in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Policy versions retrieved successfully
versionsobject[]currentVersionIdstringpendingVersionIdstring{
"versions": [
{}
],
"currentVersionId": "string",
"pendingVersionId": "string"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request GET \
--url https://api.complianz.ai/v1/policies/<id>/versions \
--header 'X-API-Key: <api-key>'Create policy version
/v1/policies/{id}/versionsCreates a new draft version of a policy, cloned from the current published version (or a specified source version). Use this when you need to make any change to a published policy — content edits, PDF attachments, anything. Published.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
sourceVersionIdstringOptional version ID to base the new version on
changelogstringOptional changelog to associate with the new version
Responses
201Policy version created
versionIdstringversionnumber{
"versionId": "string",
"version": 0
}400Invalid request
messagestring{
"message": "Invalid request"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/versions \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"sourceVersionId": "pv_abc123def456",
"changelog": "Initial draft for quarterly updates"
}'Get policy version by ID
/v1/policies/{id}/versions/{versionId}Get policy version by ID in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
versionIdstringrequiredPolicy version ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Policy version retrieved successfully
versionobjectcurrentVersionIdstringpendingVersionIdstring{
"version": {},
"currentVersionId": "string",
"pendingVersionId": "string"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request GET \
--url https://api.complianz.ai/v1/policies/<id>/versions/<versionId> \
--header 'X-API-Key: <api-key>'Update version content
/v1/policies/{id}/versions/{versionId}Update version content in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
versionIdstringrequiredPolicy version ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
contentobject[]requiredContent of the policy version as TipTap JSON (array of nodes)
Responses
200Version content updated
versionIdstring{
"versionId": "string"
}400Invalid request
messagestring{
"message": "Invalid request"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request PATCH \
--url https://api.complianz.ai/v1/policies/<id>/versions/<versionId> \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": null
},
"content": [
{
"type": "text",
"text": "Purpose"
}
]
}
]
}'Delete policy version
/v1/policies/{id}/versions/{versionId}Delete policy version in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
versionIdstringrequiredPolicy version ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Version deleted
deletedVersionnumber{
"deletedVersion": 0
}400Invalid request
messagestring{
"message": "Invalid request"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request DELETE \
--url https://api.complianz.ai/v1/policies/<id>/versions/<versionId> \
--header 'X-API-Key: <api-key>'Publish policy version
/v1/policies/{id}/versions/publishPublishes a draft policy version, making it the active/current version of the policy. Pass the versionId of the draft you want to publish — for example one created via create-policy-version and then edited.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
versionIdstringVersion ID to publish. PASS THIS after update-version to publish your edits — omitting it publishes stale draftContent (loses your changes).
setAsActivebooleanWhether to set this version as the active version
changelogstringOptional changelog to associate with the published version
Responses
200Version published
versionIdstringversionnumber{
"versionId": "string",
"version": 0
}400Invalid request
messagestring{
"message": "Invalid request"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/versions/publish \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"versionId": "pv_abc123def456",
"setAsActive": true,
"changelog": "Updated access controls section"
}'Set active policy version
/v1/policies/{id}/versions/{versionId}/activateSet active policy version in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
versionIdstringrequiredPolicy version ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
200Active version updated
versionIdstringversionnumber{
"versionId": "string",
"version": 0
}400Invalid request
messagestring{
"message": "Invalid request"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/versions/<versionId>/activate \
--header 'X-API-Key: <api-key>'Submit version for approval
/v1/policies/{id}/versions/{versionId}/submit-for-approvalSubmit version for approval in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
versionIdstringrequiredPolicy version ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
approverIdstringrequiredMember ID of the approver
Responses
200Version submitted for approval
versionIdstringversionnumber{
"versionId": "string",
"version": 0
}400Invalid request
messagestring{
"message": "Invalid request"
}401Unauthorized
messagestring{
"message": "Unauthorized"
}404Resource not found
messagestring{
"message": "Resource not found"
}curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/versions/<versionId>/submit-for-approval \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"approverId": "mem_abc123def456"
}'Accept pending policy changes and publish the version
/v1/policies/{id}/accept-changesAccept pending policy changes and publish the version in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/accept-changes \
--header 'X-API-Key: <api-key>'Deny pending policy changes
/v1/policies/{id}/deny-changesDeny pending policy changes in Complianz. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/deny-changes \
--header 'X-API-Key: <api-key>'Chat with AI about a policy
/v1/policies/{id}/ai-chatAsk policy-specific questions and request draft improvements while preserving human review before policy changes are applied.
Path parameters
idstringrequiredPolicy ID
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
instructionsstringrequiredUser instructions about what changes to make to the policy
chatHistoryobject[]Chat history for context (array of messages with role and content)
Show child attributes
roleenumOne of: user assistant
contentstringResponses
200Streaming AI response
401Unauthorized
404Policy not found
curl --request POST \
--url https://api.complianz.ai/v1/policies/<id>/ai-chat \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"instructions": "Update the data retention section to specify a 7-year retention period",
"chatHistory": [
{
"role": "user",
"content": "Update the data retention policy"
},
{
"role": "assistant",
"content": "I can help with that..."
}
]
}'