curl -X POST 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": "checking"
}
Batches
Check a Batch Upload
Check an uploaded file for problems before you create a batch from it.
POST
/
api
/
v3
/
batches
/
uploads
/
{upload_id}
/
inspect
curl -X POST 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": "checking"
}
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 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
The
upload_id from Create a Batch Upload URL.Response
checking while the check runs. When it’s done, the response has the fields described on Get a Batch Upload Check.curl -X POST 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": "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. |

