curl https://api.zerodrift.ai/api/v3/batches/uploads/UPLOAD_ID/inspect \
-H "x-api-key: YOUR_API_KEY"
{
"api_version": "v3",
"upload_id": "703c343c018b42ad88bdd56cc8175c0b",
"status": "done",
"kind": "jsonl",
"row_count": 4,
"row_count_exact": true,
"sample_rows": [
{ "custom_id": "email-001", "content": "Hi Dana, attached is the agenda for Thursday's quarterly review." },
{ "custom_id": "email-002", "content": "Our fund will beat the market this year. Returns of 12-14% are guaranteed." }
],
"problems": [
{ "line": 3, "code": "duplicate_id", "message": "custom_id 'email-002' already used on line 2" },
{ "line": 4, "code": "empty_text", "message": "content must be a non-empty string" }
],
"problem_count": 2,
"file_errors": [],
"checked_at": "2026-12-02T19:46:33Z"
}
Batches
Get a Batch Upload Check
Read the result of an upload check: line counts, sample rows and problem lines.
GET
/
api
/
v3
/
batches
/
uploads
/
{upload_id}
/
inspect
curl https://api.zerodrift.ai/api/v3/batches/uploads/UPLOAD_ID/inspect \
-H "x-api-key: YOUR_API_KEY"
{
"api_version": "v3",
"upload_id": "703c343c018b42ad88bdd56cc8175c0b",
"status": "done",
"kind": "jsonl",
"row_count": 4,
"row_count_exact": true,
"sample_rows": [
{ "custom_id": "email-001", "content": "Hi Dana, attached is the agenda for Thursday's quarterly review." },
{ "custom_id": "email-002", "content": "Our fund will beat the market this year. Returns of 12-14% are guaranteed." }
],
"problems": [
{ "line": 3, "code": "duplicate_id", "message": "custom_id 'email-002' already used on line 2" },
{ "line": 4, "code": "empty_text", "message": "content must be a non-empty string" }
],
"problem_count": 2,
"file_errors": [],
"checked_at": "2026-12-02T19:46:33Z"
}
Returns the state of a check started with Check a Batch Upload. Poll until
status is done or failed. Read-only API keys are allowed.
Path Parameters
The
upload_id from Create a Batch Upload URL.Response
checking, done, or failed when the check itself could not finish (for example, an unreadable or oversized file).The first 100 problem lines, in file order. Each has
line (from 1), code and message. Codes are invalid_json, empty_text, bad_id, duplicate_id and too_long.Every problem line found, including those past the first 100. With
skip_problem_rows, these are the lines a batch would skip.curl https://api.zerodrift.ai/api/v3/batches/uploads/UPLOAD_ID/inspect \
-H "x-api-key: YOUR_API_KEY"
{
"api_version": "v3",
"upload_id": "703c343c018b42ad88bdd56cc8175c0b",
"status": "done",
"kind": "jsonl",
"row_count": 4,
"row_count_exact": true,
"sample_rows": [
{ "custom_id": "email-001", "content": "Hi Dana, attached is the agenda for Thursday's quarterly review." },
{ "custom_id": "email-002", "content": "Our fund will beat the market this year. Returns of 12-14% are guaranteed." }
],
"problems": [
{ "line": 3, "code": "duplicate_id", "message": "custom_id 'email-002' already used on line 2" },
{ "line": 4, "code": "empty_text", "message": "content must be a non-empty string" }
],
"problem_count": 2,
"file_errors": [],
"checked_at": "2026-12-02T19:46:33Z"
}
Errors
| Status | Code | Meaning |
|---|---|---|
404 | inspect_not_found | No check was started for this upload, or the upload isn’t yours. |

