Skip to content

Get policy

GET
/api/v1/organizations/{orgId}/policies/{policyId}
curl --request GET \
--url https://localhost:10001/api/v1/organizations/example/policies/example \
--header 'Authorization: <Authorization>'

Retrieve a specific policy by ID, including its controls

orgId
required
string

Organization ID or UUID (urn:uuid optional)

policyId
required
string

Policy ID, slug:my-policy@1.2.0, or urn:cid:bafy…

Policy with controls

Media type application/json

A reusable template of controls in the organization’s library, applied to projects rather than used directly

object
cid

Assigned by the integrity service at creation

string
controls

Present on read, ignored on update

Array<object>

A single requirement within a policy template, identified by its control code

object
cid

Assigned by the integrity service at creation

string
citations
Array<object>
object
title
string
url
string
controlCode

Alphanumeric, . and -; upper-cased

string
createdAt
string format: date-time
description
string
id
integer
policyId

Assigned from the parent policy

integer
title
string
updatedAt
string format: date-time
createdAt
string format: date-time
description
string
iconUrl
string
id
integer
name
string
organizationId

Taken from the path on create

integer
slug

Derived from name

string
type

See PolicyType for values

string
Allowed values: Risk Management Internal Regulatory Custom
updatedAt
string format: date-time
version
string
Example
{
"type": "Risk Management"
}

Bad request - Invalid organization ID or policy ID

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Unauthorized - Authentication required

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Forbidden - No organization access

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Policy not found

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Internal server error

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}