Skip to content

Get compliance policy

GET
/v1/policies/{id}
curl --request GET \
--url https://api.varman.io/v1/policies/pol_abc123def456 \
--header 'X-API-Key: <X-API-Key>'

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.

id
required
string

Example

pol_abc123def456

Policy ID

X-Organization-Id
string

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

Policy retrieved successfully

Media typeapplication/json
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

Example

{
"id": "pol_abc123def456",
"name": "Data Privacy 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"
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}

Policy not found

Media typeapplication/json
object
message
string

Example

{
"message": "Policy with ID pol_abc123def456 not found"
}