Get applied policy by IDs
const url = 'https://localhost:10001/api/v1/projects/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/projects/example/policies/example \ --header 'Authorization: <Authorization>'Retrieve an applied policy and its controls with computed status by project and policy IDs
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Applied policy ID, slug:my-policy, or urn:cid:bafy…
Responses
Section titled “ Responses ”Applied policy with controls
An applied policy with its controls, each carrying the status derived from its declarations and reviews
object
A control within an applied policy, with its latest declaration and review state
object
An indicator bound to an applied policy control, defining how and when it is evaluated
object
Urn:uuid form
Custom indicators only
object
object
When to emit a declaration
Custom indicators only
object
Urn:uuid form
object
A policy applied to a project, tracked independently of the library template it came from
object
Verifiable actor; appliedBy is the label
Set via the archive endpoint
Set via the archive endpoint
Verifiable actor; archivedBy is the label
Assigned by the integrity service
Set via the archive endpoint
Taken from the path on create
Taken from the path on create
Derived from name
Assigned by the integrity service
Example
{ "controls": [ { "indicators": [ { "declarationProfile": { "emitOn": "pass" }, "status": "active", "triggerType": "event" } ] } ]}Bad request - Invalid project ID or applied 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 project access
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Applied 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"}