Get compliance policy
const url = 'https://api.varman.io/v1/policies/pol_abc123def456';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
pol_abc123def456Policy ID
Header Parameters
Section titled “Header Parameters”Organization ID (required for session auth, optional for API key auth)
Responses
Section titled “Responses”Policy retrieved successfully
object
The policy ID
Name of the policy
Description of the policy
Status of the policy
Content of the policy as TipTap JSON (array of nodes)
object
Review frequency of the policy
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.
Whether this policy requires a signature
List of user IDs who have signed this policy
Review date for the policy
Whether this policy is archived
When the policy was archived by framework sync
When the policy was created
When the policy was last updated
When the policy was last archived
When the policy was last published
Organization ID this policy belongs to
ID of the user assigned to this policy
ID of the user who approved this policy
ID of the policy template this policy is based on
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
object
Example
{ "message": "Unauthorized"}Policy not found
object
Example
{ "message": "Policy with ID pol_abc123def456 not found"}