API tutorials

Errors and troubleshooting

Interpret API failures, preserve correlation IDs, and diagnose evaluations that do not progress.

Check the HTTP status and the JSON success field for every request. Preserve the response code value when you need to investigate a specific failure.

Common problems

SymptomLikely causeWhat to check
401 UnauthorizedPAT is missing, invalid, expired, or revokedAuthorization header and PAT status
400 Bad RequestA required parameter is missing or emptyevaluationId, traceId, and the method-specific response field
No prompts foundEvaluation ID, type, or state does not match the requestRequest Tutorial values and the selected GET endpoint
Evaluation remains Awaiting TriggerResponses were sent to the wrong endpoint or fieldBenchDX llmResponse versus RobustDX advResponse
Some test cases show ErrorTarget dispatch or response processing failedProcess Details and the model error response

Diagnose in a fixed order

  1. Check transport

    Record the HTTP status and confirm the request reached the correct AIDX base URL.

  2. Check authentication

    Confirm the Bearer header contains a current, unrevoked AIDX PAT.

  3. Check evaluation identity

    Compare evaluationId with Request Tutorial and confirm the evaluation type matches the endpoint family.

  4. Check trace and response field

    Return the original traceId and use llmResponse for BenchDX or advResponse for RobustDX.

  5. Inspect Process Details

    Locate the earliest failed trace, read its model error response, and retry or explicitly handle it when appropriate.

Record the correlation ID

The response code field identifies the server request for diagnostics. It changes per request and must not be treated as a fixed success code.