Skip to content

Get control

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

Retrieve a specific control by ID

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…

controlId
required
string

Control ID, code:AC-1, or urn:cid:bafy…

Control

Media type application/json

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
Example generated
{
"citations": [
{
"title": "example",
"url": "example"
}
],
"controlCode": "example",
"description": "example",
"title": "example"
}

Bad request - Invalid control 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"
}

Control 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"
}