Create run
const url = 'https://example.com/api/v1/org/example/ws/example/airt/runs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","project_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","secret_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"spec":{"attacker_model":"example","goals":[{"attacks":[{"early_stopping":0.9,"n_iterations":15,"transforms":["example"],"type":"example"}],"category":"example","goal":"example","goal_category":"example","sub_category":"example"}],"judge_model":"example","max_tokens":1024,"target_model":"example"},"timeout_sec":1}'};
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/runs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "secret_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "spec": { "attacker_model": "example", "goals": [ { "attacks": [ { "early_stopping": 0.9, "n_iterations": 15, "transforms": [ "example" ], "type": "example" } ], "category": "example", "goal": "example", "goal_category": "example", "sub_category": "example" } ], "judge_model": "example", "max_tokens": 1024, "target_model": "example" }, "timeout_sec": 1 }'Queue a red-team suite for the platform to run in its own sandbox. Each goal becomes one assessment.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Organization slug
Organization slug
Workspace slug
Workspace slug
Request Bodyrequired
Section titled “Request Bodyrequired”object
The suite to run: dn airt run-suite’s config file, as JSON.
Targets are model ids only, reached through the platform’s model gateway or the provider’s own API.
object
One goal, which becomes one assessment holding each of its attacks.
object
One attack against a goal, as dn airt run-suite takes it.
object
Attack name from GET .../airt/catalog, e.g. tap
Responses
Section titled “ Responses ”Successful Response
object
Small denormalized user identity for cross-domain byline display.
What a run has done so far, kept on the run row.
object
object
The suite to run: dn airt run-suite’s config file, as JSON.
Targets are model ids only, reached through the platform’s model gateway or the provider’s own API.
object
One goal, which becomes one assessment holding each of its attacks.
object
One attack against a goal, as dn airt run-suite takes it.
object
Attack name from GET .../airt/catalog, e.g. tap
Example
{ "progress": { "attacks_completed": 0, "attacks_failed": 0 }, "spec": { "goals": [ { "attacks": [ { "early_stopping": 0.9, "n_iterations": 15 } ] } ], "max_tokens": 1024 }, "status": "queued"}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"}