API tutorials
RobustDX API
Claim frozen adversarial prompts through the shared manifest API, then submit answers with advResponse.
Personal account: use your personal PAT and workspace ID. Omit X-Tenant-Id.
RobustDX uses the same manifest and claim endpoints as BenchDX. The response endpoint and answer field differ. Use an existing RobustDX evaluation with its trace snapshot ready, and include the PAT and routing headers in every request.
Use the account buttons above to switch all request examples. Personal requests omit X-Tenant-Id; Organization requests include it. See the account comparison.
1. Read the trace manifest
/api/evaluation/trace-manifests/{evaluationId}Lists the selected RobustDX evaluation's traces without their prompts.
curl --request GET \
'https://trial.aidx.pro/api/evaluation/trace-manifests/123' \
--header 'Authorization: Bearer <PERSONAL_ACCOUNT_PAT>' \
--header 'X-Workspace-Id: <PERSONAL_WORKSPACE_ID>'{
"code": "req_example",
"message": "Operation Succeed",
"data": {
"evaluationId": 123,
"items": [
{
"traceId": "40000000-0000-4000-8000-000000000081",
"order": 1,
"status": "PROCESSING"
}
],
"total": 1
},
"success": true
}Read data.items. The first request needs no page arguments; optional pageSize is 1–100 and defaults to 100. Follow each absolute data.nextLink unchanged with the same headers until it is omitted. order starts at 1 across the entire evaluation.
2. Claim one adversarial prompt
/api/evaluation/trace-claimsClaims one frozen adversarial prompt from the manifest.
Send JSON containing exactly evaluationId as a positive integer and traceId as the manifest UUID. Tenant and workspace IDs belong in headers.
curl --request POST \
'https://trial.aidx.pro/api/evaluation/trace-claims' \
--header 'Authorization: Bearer <PERSONAL_ACCOUNT_PAT>' \
--header 'X-Workspace-Id: <PERSONAL_WORKSPACE_ID>' \
--header 'Content-Type: application/json' \
--data '{"evaluationId":123,"traceId":"40000000-0000-4000-8000-000000000081"}'{
"code": "req_example",
"message": "Operation Succeed",
"data": {
"prompt": "The frozen prompt for this trace",
"alreadyClaimed": false
},
"success": true
}The first claim records usage for settlement. An allowed repeat returns the same prompt with alreadyClaimed: true without increasing the cumulative claimed amount. This does not reset execution or authorize duplicate model calls. Claim responses use Cache-Control: no-store.
Evaluations bound to Managed Trigger or Runner execution, and traces owned by an active Query or retry, cannot be taken over through a public claim.
3. Run your target model
Send data.prompt to the target model. Preserve the same evaluation ID and manifest trace UUID for response submission. The manifest itself contains no prompt text.
4. Submit the adversarial response
/api/evaluation/adv-responseSubmits one RobustDX answer using form parameters.
| Form field | Value |
|---|---|
| evaluationId | The same positive evaluation ID, encoded as form text. |
| traceId | The original manifest trace UUID. |
| advResponse | The non-empty target-model answer. |
Send URL-encoded or multipart form data. JSON and the BenchDX llmResponse field are not valid replacements.
curl --request POST \
'https://trial.aidx.pro/api/evaluation/adv-response' \
--header 'Authorization: Bearer <PERSONAL_ACCOUNT_PAT>' \
--header 'X-Workspace-Id: <PERSONAL_WORKSPACE_ID>' \
--data-urlencode 'evaluationId=123' \
--data-urlencode 'traceId=40000000-0000-4000-8000-000000000081' \
--data-urlencode 'advResponse=<MODEL_RESPONSE>'{
"code": "req_example",
"message": "Operation success",
"data": null,
"success": true
}Check HTTP status and success. The message is Operation success, with null data. An existing non-empty answer is not overwritten.
5. Verify progress
Inspect Process Details to confirm receipt and assessment. Submission success does not mean the report is ready. The manifest status values are shared with BenchDX; inspect failed or already claimed traces before retrying.