---
title: "Validates the draft"
method: POST
path: "/api/validate"
---

# Validates the draft

`POST /api/validate`

## Response `200`

Returns errors, warnings and idnits output

- object
  - `errors` string[] — list of errors
  - `warnings` string[] — list of warnings
  - `idnits` string — idnits output
  - `non_ascii` string — kramdown-rfc echars output
  - `bare_unicode` string[] — list of bare Unicode (non-ascci) usage report

## Other responses

- `400` — Error has occurred.
- `401` — Failed to authenticate.

## Changes

- **2023-08-07** `2c050ef5d2e1` — 2 info
  - added the optional property `bare_unicode` to the response with the `200` status
  - added the optional property `non_ascii` to the response with the `200` status
- **2023-03-20** `5af2c9e7a5f3` — 2 warning
  - removed the optional property `bare_unicode` from the response with the `200` status
  - removed the optional property `non_ascii` from the response with the `200` status

[Change history](https://skmtc.dev/ietf-tools/apis/ietf-author-tools-api/changes/api/validate/post.md)

---

[API](https://skmtc.dev/ietf-tools/apis/ietf-author-tools-api.md) · [All operations](https://skmtc.dev/ietf-tools/apis/ietf-author-tools-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ietf-tools/ietf-author-tools-api/revisions/8db1416c9cdd/schema)
