---
title: "Turn AI reading of the company's PDFs on or off"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Turn AI reading of the company's PDFs on or off

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="put">PUT</span>
<code class="cvo-op-path-code">/v1/company/ai-reading</code>
</div>
</div>

Saves the company's consent as a new version that names the person. Only a signed-in owner or admin of the workspace may change it; a key never may. While it is on, every single PDF opened for mapping is read by AI; while it is off, only a file the person agrees to (`aiReading: this-file` on `POST /v1/mappings/drafts`).

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The saved version. |
| `400` | The body is not `{"enabled": true}` or `{"enabled": false}` (`invalid_ai_reading`). Nothing was saved. |
| `401` | No usable credential was sent (`invalid_credentials`), or a key tried to change it (`session_required`), since consent is given by a signed-in person. |
| `403` | The person is not an owner or admin of this workspace (`role_required`). Nothing was saved. |
| `501` | This deployment has no database, so it keeps no consent (`no_database`). Sending the same request again will not help. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/turn-ai-reading-of-the-company-s-pdfs-on-or-off/index.mdx
