---
title: "Validate an uploaded file and count its rows"
method: POST
path: "/api/uploads/{id}/inspect/"
tags: ["uploads"]
---

# Validate an uploaded file and count its rows

`POST /api/uploads/{id}/inspect/`

## Request

- Base URL: `https://api.overmindlab.ai`
- URL: `https://api.overmindlab.ai/api/uploads/{id}/inspect/`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - API key in cookie `sessionid`
  - API key in header `X-Api-Key`
  - HTTP bearer

Parsers must stay declared on the class: ``@action`` initkwargs only apply
through the router, so an action-level parser silently reverts elsewhere.

## Path parameters

- `id` string, required

## Request body

- InspectUploadRequest
  - `size` integer, required

## Response `200`

- UploadInspection
  - `filename` string, required
  - `bytes` integer, required
  - `rows` integer, nullable, required

---

[API](https://skmtc.dev/overmindlab/apis/overmind-api.md) - [All operations](https://skmtc.dev/overmindlab/apis/overmind-api/llms.txt) - [OpenAPI document](https://skmtc.dev/overmindlab/apis/overmind-api/revisions/0ecfd39e80c6?raw)
