curl --request GET \
--url https://api.complianz.ai/v1/policies/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.complianz.ai/v1/policies/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.complianz.ai/v1/policies/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"type": "policy",
"status": "draft",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "..."
}
]
}
],
"isRequiredToSign": true,
"signedBy": [],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"organizationId": "org_abc123def456",
"outgoingReferences": [],
"incomingReferences": []
}{
"message": "Unauthorized"
}{
"message": "Policy with ID pol_abc123def456 not found"
}Get compliance policy | Complianz API
Retrieve a single compliance policy by its ID, including current content, draft content, review status, framework links, and audit metadata. Use this.
curl --request GET \
--url https://api.complianz.ai/v1/policies/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.complianz.ai/v1/policies/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.complianz.ai/v1/policies/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "pol_abc123def456",
"name": "Data Privacy Policy",
"type": "policy",
"status": "draft",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "..."
}
]
}
],
"isRequiredToSign": true,
"signedBy": [],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T00:00:00.000Z",
"organizationId": "org_abc123def456",
"outgoingReferences": [],
"incomingReferences": []
}{
"message": "Unauthorized"
}{
"message": "Policy with ID pol_abc123def456 not found"
}Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
"pol_abc123def456"
Response
Policy retrieved successfully
The policy ID
"pol_abc123def456"
Name of the policy
"Data Privacy Policy"
Kind of document (ENG-898). Policies only are signable and appear on the trust portal; standards and procedures share everything else.
policy, standard, procedure "policy"
Description of the policy
"This policy outlines how we handle and protect personal data"
Status of the policy
draft, published, needs_review "draft"
Content of the policy as TipTap JSON (array of nodes)
[
{
"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."
}
]
}
]
Review frequency of the policy
monthly, quarterly, yearly "yearly"
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.
"it"
Whether this policy requires a signature
true
List of user IDs who have signed this policy
["usr_123", "usr_456"]
Review date for the policy
"2024-12-31T00:00:00.000Z"
Whether this policy is archived
false
When the policy was archived by framework sync
"2024-02-01T00:00:00.000Z"
When the policy was created
"2024-01-01T00:00:00.000Z"
When the policy was last updated
"2024-01-15T00:00:00.000Z"
When the policy was last archived
"2024-02-01T00:00:00.000Z"
When the policy was last published
"2024-01-10T00:00:00.000Z"
Organization ID this policy belongs to
"org_abc123def456"
Member ID of the organization member this policy is assigned to — the id of the expanded assignee
"mem_abc123def456"
Member ID of the organization member who approved this policy
"mem_xyz789abc123"
ID of the policy template this policy is based on
"plt_template123"
Documents this document references (ENG-898), e.g. a standard pointing at the policies it implements. Present on single-document responses.
Show child attributes
Show child attributes
Documents that reference this document (read-only reverse half of outgoingReferences). Present on single-document responses.
Show child attributes
Show child attributes
Was this page helpful?

