Create assessment
const url = 'https://example.com/api/v1/org/example/ws/example/airt/assessments?project_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"attack_manifest":{},"attacker_config":{},"attacker_model":"example","description":"example","judge_model":"example","name":"example","runtime_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","session_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","severity_policy":{"aliases":{"additionalProperty":"example"},"default_row":["example"],"matrix":{"additionalProperty":["example"]},"thresholds":[1]},"target_config":{},"target_model":"example","workflow_run_id":"example","workflow_script":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://example.com/api/v1/org/example/ws/example/airt/assessments?project_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "attack_manifest": {}, "attacker_config": {}, "attacker_model": "example", "description": "example", "judge_model": "example", "name": "example", "runtime_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "session_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "severity_policy": { "aliases": { "additionalProperty": "example" }, "default_row": [ "example" ], "matrix": { "additionalProperty": [ "example" ] }, "thresholds": [ 1 ] }, "target_config": {}, "target_model": "example", "workflow_run_id": "example", "workflow_script": "example" }'Create a new AIRT assessment
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Organization slug
Organization slug
Workspace slug
Workspace slug
Query Parameters
Section titled “Query Parameters”Project to create assessment in
Project to create assessment in
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
User-supplied, per-assessment severity policy.
By default severity is derived from the score alone (one label per band, the
same for every category). All fields are optional; an empty policy is a no-op.
Shift the cutoffs with thresholds, or - for advanced per-category weighting -
supply a matrix / aliases and a default_row.
object
Advanced: map of goal_category -> another category whose matrix row it reuses.
object
Advanced: map of goal_category -> five severity labels aligned to the score bands. Omit for score-only severity (same for every category).
object
Examplegenerated
{ "attack_manifest": {}, "attacker_config": {}, "attacker_model": "example", "description": "example", "judge_model": "example", "name": "example", "runtime_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "session_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "severity_policy": { "aliases": { "additionalProperty": "example" }, "default_row": [ "example" ], "matrix": { "additionalProperty": [ "example" ] }, "thresholds": [ 1 ] }, "target_config": {}, "target_model": "example", "workflow_run_id": "example", "workflow_script": "example"}Responses
Section titled “ Responses ”Successful Response
object
object
object
Small denormalized user identity for cross-domain byline display.
Lightweight sandbox info embedded in assessment responses.
Example
{ "status": "pending"}Invalid request
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Authentication failed
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Access forbidden
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Not found
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Already exists
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Validation error
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Upgrade required
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Rate limited
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Internal server error
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Bad gateway
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}Gateway timeout
Canonical API error envelope returned by the API.
object
HTTP status code
Human-readable error message
object
Where the validation error occurred
Human-readable validation message
Machine-readable validation error type
Stable machine-readable error type
Example
{ "code": 401, "detail": "Authentication failed", "type": "authentication_error"}