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}/importsImport 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
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | evals-2026-12-01. Without it the call fails with 400 beta_required. See Versioning. |
Content-Type | Yes | application/json |
Idempotency-Key | No | Up to 255 characters. Retrying with the same key within 24 hours returns the first result instead of acting twice. See Idempotency. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
dataset_id | string | Starts with evds_. |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
file_id | string | Yes | Up to 200 MB. |
on_error | string | No | skip (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
}| Field | Type | Description |
|---|---|---|
error_file_id | string or null | When 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:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 404 | not_found_error | dataset_not_found | No dataset with this id. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?