Skip to content

Get policy versions

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

Get policy versions in Varman. Create, version, publish, export, map, and improve compliance policies with AI-assisted drafting and approval workflows.

id
required
string

Example

pol_abc123def456

Policy ID

X-Organization-Id
string

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

Policy versions retrieved successfully

Media typeapplication/json
object
versions
Array<object>
object
currentVersionId
string
nullable
pendingVersionId
string
nullable

Example generated

{
"versions": [
{}
],
"currentVersionId": "example",
"pendingVersionId": "example"
}

Unauthorized

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}

Resource not found

Media typeapplication/json
object
message
string

Example

{
"message": "Resource not found"
}