parse_oficios
Parse a Brazilian ofício or judicial decision (e.g. data/asset requests sent by police and courts to financial institutions, including SISBAJUD) using AI-powered OCR.
Extracts structured fields including:
- numero_oficio: Document number/identifier
- data_emissao: Issue date (as written in the document)
- municipio: Issuing city/state
- orgao_emissor: Issuing authority (police division, court department)
- numero_processo: Case number (CNJ format)
- numero_referencia: Internal reference (Inquérito Policial, B.O., HP)
- assunto: Subject/purpose
- dados_solicitados: What data/documents are being requested (e.g. dados cadastrais, contrato, extrato, fotos)
- periodo_solicitado: Date range of the requested data, when specified (e.g. sigilo/extrato requests)
- destinatario: Recipient institution or person
- prazo_resposta: Response deadline as written (e.g. "24 horas")
- sigiloso: True when the document states the request is confidential / the account holder must not be notified
- signatario/cargo_signatario/matricula_signatario: Signer name, role and registration
- email_resposta: List of emails for sending the response
- juiz/vara/comarca: Judge, court and district (judicial decisions only)
- titulares: List of investigated/requested parties, each with nome and cpf_cnpj
Raises:
ValueError: If document path is invalid or parsing fails.
Parameters
| Name | Description | Type | Default |
|---|---|---|---|
| document_path (required) | The path to the ofício document to be parsed. | Union[Path, str] | None |
Return Value
abstra_internals.contracts_generated.CloudApiCliModelsOficiosResponse