Import items from a file

⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/evals/datasets/{dataset_id}/imports

Import items from a JSONL file uploaded with purpose eval_dataset, one item per line in the same shape add-items takes. Runs in the background; bad lines are reported, good lines are kept.

For how this fits into a full workflow, see Evaluations.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewevals-2026-12-01. Without it the call fails with 400 beta_required. See Versioning.
Content-TypeYesapplication/json
Idempotency-KeyNoUp to 255 characters. Retrying with the same key within 24 hours returns the first result instead of acting twice. See Idempotency.

Path parameters

ParameterTypeDescription
dataset_idstringStarts with evds_.

Body parameters

ParameterTypeRequiredNotes
file_idstringYesUp to 200 MB.
on_errorstringNoskip (default) keeps valid lines; abort adds nothing if any line fails.

Response

202 Accepted, Content-Type: application/json

{
  "id": "evimp_01JD25E8G0J2L4N6Q8S0",
  "type": "eval_import",
  "status": "running",
  "lines_total": 4800,
  "lines_added": 0,
  "lines_failed": 0,
  "error_file_id": null
}
FieldTypeDescription
error_file_idstring or nullWhen finished, a JSONL file of failed lines with the reason for each.

Examples

curl -sS "https://app.syntic.ai/v1/evals/datasets/evds_01JD13B5D7F9H1K3M5P7/imports" \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: evals-2026-12-01" \
  -H "Idempotency-Key: 8d6f0c1e-4b2a-4a57-9f0e-2f1d3c4b5a69" \
  -H "Content-Type: application/json" \
  -d '{
      "file_id": "file_01JC3D5F7H9K1M3P5R7T",
      "on_error": "skip"
    }'

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
404not_found_errordataset_not_foundNo dataset with this id.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?