Get applied policy details
const url = 'https://localhost:10001/api/v1/projects/example/policies/example/details';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/details \ --header 'Authorization: <Authorization>'Retrieve detailed information about an applied policy, its controls, and its credential
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 details with controls and credential
An applied policy with its controls, credential, and aggregate compliance state
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
A control within an applied policy, expanded with its full declaration and review history
object
object
A declaration as returned inside control details, without the CID inputs the create call accepts
object
A file stored against a declaration or review, with its CID and retention window
object
Verifiable actor; uploadedBy is the label
Verifiable actor; submittedBy is the label
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 review as returned inside control details, without the CID inputs the create call accepts
object
A file stored against a declaration or review, with its CID and retention window
object
Verifiable actor; uploadedBy is the label
Verifiable actor; submittedBy is the label
A verifiable credential issued over an applied policy, revocable but never deleted
object
Taken from the path on create
object
Urn:uuid minted per issuance; identifies the row
Verifiable actor; issuedBy is the label
Set via the revoke endpoint
Set via the revoke endpoint
Set via the revoke endpoint
Verifiable actor; revokedBy is the label
Set via the revoke endpoint
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 or insufficient permissions
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"}