Nirmos
Evaluations

Import Trace To Dataset

Import a public Gateway request ID or retained log ID. Requires evaluations:create and observability:read. Eligible: successful non-streaming chat with complete opted-in payload retention. TRACE_NOT_FOUND (404) does not disclose foreign/expired/pending records. TRACE_NOT_IMPORTABLE and TRACE_PAYLOAD_UNAVAILABLE return 422. No deduplication guarantee.

POST
/v1/evaluations/datasets/import-trace

Import a public Gateway request ID or retained log ID. Requires evaluations:create and observability:read. Eligible: successful non-streaming chat with complete opted-in payload retention. TRACE_NOT_FOUND (404) does not disclose foreign/expired/pending records. TRACE_NOT_IMPORTABLE and TRACE_PAYLOAD_UNAVAILABLE return 422. No deduplication guarantee.

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/evaluations/datasets/import-trace" \  -H "Content-Type: application/json" \  -d '{    "requestLogId": "string",    "datasetVersionId": "string",    "mapping": {      "property1": "input",      "property2": "input"    }  }'
{  "data": {    "case": {      "id": "string",      "datasetVersionId": "string",      "sourceTraceId": "string"    },    "datasetVersion": {      "id": "string",      "version": 1    }  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}