Clients - Protected

Ler Carta de Condução e devolver campos para autofill do cliente

OCR a Portuguese Carta de Condução via Claude Vision and return the storable client fields (nome, nº da carta, data de emissão) plus the card's validade, which only stamps DataExpira on the attached document. Data-minimized: no DOB, no nº de identificação civil, no categorias.

RGPD: reads the images in-memory and never persists them; the frontend attaches them as Documentos do cliente (módulo 12, tipo "Carta de Condução") after the client is saved. Unreadable/unsupported input returns success=False (never a 5xx); billing only fires on success, and success requires the document to actually be a licence. Heavy sync work runs in the threadpool.

post/api/clients/ocr-driving-license

Headers

x-api-tokenstring nullable

Response

Successful Response

successboolean
error_messagestring nullable
billedboolean
doc_typestring nullable
confiancastring nullable
warningsstring[]
nomestring nullable
numero_cartastring nullable
data_emissaostring nullable
validadestring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.