/v1 reference: Compliance¶
The operations of this resource. They share the pagination and error vocabulary described in Overview and Errors. Example values on this page are fictitious. The other operations are in the complete reference.
Operations¶
List control status for a framework¶
GET /v1/compliance/controls
Requires the framework query parameter (e.g. ens, nis2, iso27001) and that specific framework's compliance.<framework>:read scope.
Required scope: compliance.<framework>:read
Parameters:
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
page |
query | no | integer |
1-based page number. Defaults to 1. |
per_page |
query | no | integer |
Items per page, 1..200. Defaults to 50. |
sort |
query | no | enum(control_code, last_evaluated_at) |
Field to order by. One of: control_code, last_evaluated_at. |
order |
query | no | enum(asc, desc) |
Sort direction. Defaults to desc. |
framework |
query | yes | string |
Framework slug. One of: nis2, ens, iso27001, dora, gdpr, soc2, iso42001, nistcsf, pcidss, euaiact, hipaa, cmmc, cyberessentials, uaeia, sama, saudiecc, ndpa. |
status |
query | no | string |
Exact status match. Known values: covered, partial, missing. Open vocabulary: any other value is matched exactly and matches nothing, and the answer then carries a meta.warnings entry and the X-HS-Unknown-Filter header. |
X-HS-Tenant |
header | no | string |
The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (hsp_…); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |
Example response (200, fictitious values):
{
"data": [
{
"control_ref": "op.acc.5",
"framework": "ens",
"title": "Mecanismo de autenticación",
"status": "implemented",
"evidence_count": 3
}
],
"pagination": {
"page": 1,
"per_page": 50,
"total": 74,
"total_pages": 2
}
}
Framework posture summary¶
GET /v1/compliance/frameworks/{framework}
Percentage of controls covered, with expired evidence, and with none, for the framework named in the path.
Required scope: compliance.<framework>:read
Parameters:
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
framework |
path | yes | string |
Framework slug. One of: nis2, ens, iso27001, dora, gdpr, soc2, iso42001, nistcsf, pcidss, euaiact, hipaa, cmmc, cyberessentials, uaeia, sama, saudiecc, ndpa. |
X-HS-Tenant |
header | no | string |
The tenant to read, as its id (a UUID, any case). REQUIRED with a portfolio key (hsp_…); with a tenant API key or an OAuth token, optional and accepted only when it equals the credential’s own tenant. Never a slug. |
Example response (200, fictitious values):