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

# Check a Batch Upload

> Check an uploaded file for problems before you create a batch from it.

Optional. Reads the whole uploaded file with the same per-line rules a batch uses. It creates no batch and bills nothing, and the upload can still be used afterwards.

The check runs in the background. This call returns `202` with `status: "checking"`. Poll [Get a Batch Upload Check](https://docs.zerodrift.com/api-reference/batches/get-upload-check.md) for the result. Calling it again while the check runs returns `202` again; once the check is done it returns `200` with the result. Needs a full-access API key.

## 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` while the check runs. When it's done, the response has the fields described on [Get a Batch Upload Check](https://docs.zerodrift.com/api-reference/batches/get-upload-check.md).

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

```json 202 Accepted theme={null}
{
  "api_version": "v3",
  "upload_id": "703c343c018b42ad88bdd56cc8175c0b",
  "status": "checking"
}
```

## Errors

| Status | Code | Meaning |
| - | - | - |
| `404` | `upload_not_found` | No upload with this ID is yours, or it has expired or already been used for a batch. |


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