---
title: "Cancel document verification"
method: POST
path: "/v1/document/cancel"
tags: ["File Commands"]
---

# Cancel document verification

`POST /v1/document/cancel`

## Request

- Base URL: `https://api.ocrolus.com`
- URL: `https://api.ocrolus.com/v1/document/cancel`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://auth.ocrolus.com/oauth/token`

Aborts verification of an uploaded <<glossary:Document>>.

---
You cannot cancel the verification of a <<glossary:Document>> that is in the `REJECTED`, `VERIFICATION_COMPLETE`, `DELETING`, `DELETED`, `COMPLETED`, or `FAILED` state. Attempting to cancel a Document in any of these states returns the **No Permission** error (code `2104`).
> 🚧 No turning back!
> Canceling verification of an uploaded <<glossary:Document>> will permanently delete all associated data.

## Request body

- object
  - `doc_pk` integer: The <<glossary:PK>> of the <<glossary:Document>> that you no longer want to be verified. Mutually exclusive with `doc_uuid`.
  - `doc_uuid` string: The unique identifier of the <<glossary:Document>> that you no longer want to be verified. Mutually exclusive with `doc_pk`.
  - `accept_charges` boolean: Indicate whether you accept verification charges, if applicable.

## Response `200`

Success

- object
  - `status` integer: A numerical code that indicates the status of the request.
  - `response` object: An object received from the server that potentially contains data.
  - `message` string: A textual description that indicates details about this response's status.

## Other responses

- `400`: Client Errors
- `500`: Internal Server Error

---

[API](https://skmtc.dev/ocrolus/apis/file-commands.md) - [All operations](https://skmtc.dev/ocrolus/apis/file-commands/llms.txt) - [OpenAPI document](https://skmtc.dev/ocrolus/apis/file-commands/revisions/387371d96db7?raw)
