> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrift.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Batch Upload Check

> Read the result of an upload check: line counts, sample rows and problem lines.

Returns the state of a check started with [Check a Batch Upload](https://docs.zerodrift.com/api-reference/batches/check-upload.md). Poll until `status` is `done` or `failed`. Read-only API keys are allowed.

## Path Parameters

**upload\_id** `string` *required*

The `upload_id` from [Create a Batch Upload URL](https://docs.zerodrift.com/api-reference/batches/create-upload-url.md).

## Response

**status** `string`

`checking`, `done`, or `failed` when the check itself could not finish (for example, an unreadable or oversized file).

**row\_count** `integer`

Non-blank lines in the file, good and bad.

**sample\_rows** `array`

Up to 5 of the first good lines, with `content` cut to 500 characters.

**problems** `array`

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`.

**problem\_count** `integer`

Every problem line found, including those past the first 100. With `skip_problem_rows`, these are the lines a batch would skip.

**file\_errors** `array`

Problems with the whole file (`too_many_items`, `empty_file`). A batch from this file would fail.

**checked\_at** `string`

When the check finished.

```bash cURL theme={null}
curl https://api.zerodrift.ai/api/v3/batches/uploads/UPLOAD_ID/inspect \
  -H "x-api-key: YOUR_API_KEY"
```

```json 200 OK theme={null}
{
  "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. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.