API tutorials
BenchDX API
Read a paged trace manifest, claim each benchmark prompt, and submit the model response.
Personal account: use your personal PAT and workspace ID. Omit X-Tenant-Id.
Use this flow for an existing BenchDX evaluation that you will execute with your own client. All three endpoints require the PAT and routing headers.
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 trace identifiers, order, and status without exposing prompt content.
| Location | Name | Format |
|---|---|---|
| Path | evaluationId | Required positive integer. |
| Query | pageSize | Optional integer from 1 to 100; defaults to 100. |
| Query | pageToken | Server-provided continuation token; use the returned nextLink. |
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
}The response envelope is code, message, data, and success. Read traces from data.items; each item contains only traceId, order, and status. The global order starts at 1 and continues across pages. data.total is the total trace count.
The first request needs no pagination arguments. When data.nextLink is present, GET that absolute URL unchanged with the same headers. Treat its token as opaque. Stop when nextLink is omitted. The manifest contains no prompt or content field.
2. Claim one prompt
/api/evaluation/trace-claimsReturns the frozen prompt for one trace in an evaluation you own.
| JSON field | Type | Requirement |
|---|---|---|
| evaluationId | number | Required positive integer; use 123, not "123". |
| traceId | string | Required UUID copied from the manifest. |
Set Content-Type: application/json. These are the only two body fields; additional keys are rejected. No claim ID, run ID, attempt, or idempotency key is required.
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
}Read data.prompt and data.alreadyClaimed. Repeating an allowed claim for the same evaluation and trace returns the same frozen prompt with alreadyClaimed: true, without increasing the cumulative claimed amount. Responses use Cache-Control: no-store.
3. Run your target model
Send data.prompt from the claim to your model or application. Keep the original evaluationId and traceId paired with the returned answer. The claim response does not repeat those IDs.
4. Submit the benchmark response
/api/evaluation/responseSubmits one BenchDX answer using form parameters.
| Form field | Value |
|---|---|
| evaluationId | The same positive evaluation ID, encoded as form text. |
| traceId | The original manifest trace UUID. |
| llmResponse | The non-empty target-model answer. |
Use application/x-www-form-urlencoded or multipart/form-data. This endpoint reads form parameters, not a JSON request body. --data-urlencode safely encodes special characters and sets the URL-encoded form content type.
curl --request POST \
'https://trial.aidx.pro/api/evaluation/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 'llmResponse=<MODEL_RESPONSE>'{
"code": "req_example",
"message": "Operation success",
"data": null,
"success": true
}The success message is Operation success and data is null. Check both HTTP status and success. An existing non-empty answer is not replaced by another submission.
5. Verify progress
Use Process Details to confirm that each answer was recorded and evaluated. HTTP success acknowledges submission; it does not mean scoring or the final report is complete. If a response times out, inspect the trace before deciding whether to resubmit.
Manifest status values
The current manifest uses the exact values below. Interface labels may differ; use the API values when filtering traces in a script.
| API status | Meaning |
|---|---|
| PROCESSING | Normally an unclaimed trace awaiting execution; also the fallback for an unrecognized state. |
| Claimed | The prompt has been claimed through the public flow. |
| RUNNING | A current execution has claimed the trace. |
| ASSESSMENT_PROGRESS | A response has been received and assessment is in progress. |
| SUCCEEDED | The trace has been assessed. |
| TARGET_ERROR | The trace execution failed; inspect Process Details. |
| RETRY_PENDING | A retry is pending; the public claim flow must not take over the retry. |
Handle unknown states conservatively. A status is not permission to claim; the server also checks ownership, execution authority, and the current reservation.