Skip to main content
POST
/
api
/
v1
/
extract
/
formalistic
/
json
OCR múltiplo (formalística) (JSON)
curl --request POST \
  --url https://flex-hml.flexdoc-apis.com.br/services/api/v1/extract/formalistic/json \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cpfCnpj": "<string>",
  "rulesGroup": "pj",
  "forensics": true,
  "datavalid": true,
  "faceDB": true,
  "files": [
    "<string>"
  ]
}
'
{
  "statusCode": 123,
  "timestamp": "<string>",
  "resquestUri": "<string>",
  "error": {
    "message": "<string>",
    "stackTrace": "<string>",
    "source": "<string>"
  },
  "succesful": true,
  "ocrResultList": [
    {
      "statusCode": 123,
      "timestamp": "<string>",
      "resquestUri": "<string>",
      "error": {
        "message": "<string>",
        "stackTrace": "<string>",
        "source": "<string>"
      },
      "ocrResult": {
        "empty": true
      },
      "faceResult": {
        "empty": true
      },
      "yoloResult": {
        "empty": true
      },
      "datavalidResult": {
        "empty": true
      },
      "companyAlias": "<string>",
      "processedImage": "<string>",
      "succesful": true
    }
  ],
  "checkListResult": {
    "batchId": 123,
    "result": {
      "empty": true
    },
    "methodName": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Autentica o acesso a partir de usuário e senha e retorna o Bearer token JWT. Copie o access_token retornado e utilize-o no header Authorization para acessar os endpoints da API.

Body

application/json
cpfCnpj
string
rulesGroup
enum<string>
Available options:
pj,
BbSEG
forensics
boolean
datavalid
boolean
faceDB
boolean
files
string[]

Response

Resultado da extração múltipla retornado com sucesso.

statusCode
integer<int32>
timestamp
string
resquestUri
string
error
object
succesful
boolean
ocrResultList
object[]
checkListResult
object