Skip to content

Check a model against its policy, for a build pipeline

GET
/api/models/{id}/check
curl --request GET \
--url https://forge.example.com/api/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/check \
--header 'Authorization: Bearer <token>'

Answers whether a revision passes the engine’s strict policy: the policy in the model’s own settings over the engine’s defaults (an open threat at high or above with no plan on track, an open threat with no treatment decision, an overdue control, an approved requirement with no control, an element still marked as a suggestion, an accepted risk past its review date). The current valid revision is checked, or the one given as revision. With approved=true it must also be the revision an approver published, with no later change waiting for reassessment. Always 200 for a model you can see: read passed, and failures for the reasons, one sentence each. Nothing is changed. Made for an API key of a service account in a pipeline; a person may call it too.

id
required
string format: uuid
revision
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
approved
boolean

OK

Media typeapplication/json
object
modelId
required
string format: uuid
modelName
required
string
revision
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
passed
required
boolean
failures
required
Array<string>
errors
required
Array<object>
object
message
required
string
path
required
null | string
warnings
required
Array<object>
object
message
required
string
path
required
null | string
review
required
object
signedOffRevision
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
signedOffOutcome
required
null | string
publishedRevision
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
reassessmentNeeded
required
boolean
approved
required
boolean
engine
required
One of:
null
checkedAt
required
string format: date-time

Example generated

{
"modelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"modelName": "example",
"revision": 1,
"passed": true,
"failures": [
"example"
],
"errors": [
{
"message": "example",
"path": "example"
}
],
"warnings": [
{
"message": "example",
"path": "example"
}
],
"review": {
"signedOffRevision": 1,
"signedOffOutcome": "example",
"publishedRevision": 1,
"reassessmentNeeded": true,
"approved": true
},
"engine": {
"version": "example",
"renderer": "example",
"sha256": "example"
},
"checkedAt": "2026-04-15T12:00:00Z"
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}