Skip to content

Get Space Compliance

GET
/compliance

Returns aggregated compliance statistics for the entire Space: total obligations, number compliant, expiring, and non-compliant, plus the overall compliance percentage. Useful for dashboard summaries. Compliance is computed at query time, never persisted.

thresholdDays
required
number
X-Space-Id
required
string format: uuid

UUID of the target Space (tenant boundary). Validated against user access.

object
totalObligations
required

Total number of obligations across the space

number
Example
45
compliant
required

Number of compliant obligations

number
Example
38
expiring
required

Number of obligations expiring soon

number
Example
4
nonCompliant
required

Number of non-compliant obligations

number
Example
3
compliancePercentage
required

Overall compliance percentage (0-100)

number
Example
84.4

Unauthorized — missing or invalid JWT

Forbidden — insufficient permissions