---
title: "Validate EPUB"
method: POST
path: "/validate"
---

# Validate EPUB

`POST /validate`

## Request

- Base URL: `https://epublys.com/v1`
- URL: `https://epublys.com/v1/validate`
- Auth: HTTP bearer

## Request body

- object
  - `file` string, required: Base64-encoded EPUB
  - `deepScan` boolean
  - `autoFix` boolean

## Response `200`

Validation report (valid, errors, warnings, ...); with autoFix, a FileResult carrying the repaired EPUB

- object
  - `success` boolean

## Other responses

- `400`: Invalid input — human message in `error`, machine category in `code`
- `401`: Missing or invalid API key
- `413`: Upload exceeds the per-request total cap
- `429`: Rate limited
- `500`: Processing failure

---

[API](https://skmtc.dev/epublys/apis/epublys-api.md) · [All operations](https://skmtc.dev/epublys/apis/epublys-api/llms.txt) · [OpenAPI document](https://skmtc.dev/epublys/apis/epublys-api/revisions/b705f822c814?raw)
