Get policy
const url = 'https://localhost:10001/api/v1/organizations/example/policies/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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://localhost:10001/api/v1/organizations/example/policies/example \ --header 'Authorization: <Authorization>'Retrieve a specific policy by ID, including its controls
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization ID or UUID (urn:uuid optional)
Policy ID, slug:my-policy@1.2.0, or urn:cid:bafy…
Responses
Section titled “ Responses ”Policy with controls
A reusable template of controls in the organization’s library, applied to projects rather than used directly
object
Assigned by the integrity service at creation
Present on read, ignored on update
A single requirement within a policy template, identified by its control code
object
Assigned by the integrity service at creation
object
Alphanumeric, . and -; upper-cased
Assigned from the parent policy
Taken from the path on create
Derived from name
See PolicyType for values
Example
{ "type": "Risk Management"}Bad request - Invalid organization ID or policy ID
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No organization access
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Policy not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}