Enable or disable consent for Cloudflare AI and Google document processing (OWNER only)
PATCH
/organizations/current/external-document-processing
const url = 'https://api.invogi.com/v1/organizations/current/external-document-processing';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.invogi.com/v1/organizations/current/external-document-processing \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
enabled
required
boolean
Example generated
{ "enabled": true}Responses
Section titled “Responses”Setting updated and audit event recorded
Media typeapplication/json
object
externalDocumentProcessingEnabled
required
boolean
Example generated
{ "externalDocumentProcessingEnabled": true}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json