PUT
/v1/company/ai-readingSaves 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
- enabledbooleanRequired
Response
A 200 answer carries these fields.
- enabledbooleanRequired
- versionintegerRequired
- changedAtstring (date-time) or nullRequired
- changedBystring or nullRequired
The person who changed it
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. |
PUT
/v1/company/ai-readingExample
curl -X PUT https://api.certinvo.com/v1/company/ai-reading \
-H "Authorization: Bearer $CERTINVO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @body.jsonimport { readFile } from 'node:fs/promises'
const response = await fetch(`https://api.certinvo.com/v1/company/ai-reading`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
'Content-Type': 'application/json',
},
body: await readFile('body.json'),
})
console.log(response.status, await response.json())import os
import requests
response = requests.put(
"https://api.certinvo.com/v1/company/ai-reading",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
print(response.status_code, response.text)200
application/json
{
"enabled": true,
"version": 0,
"changedAt": "2026-09-17T09:30:00Z",
"changedBy": "string"
}Success response