- Introdução
- Consumindo a API
- Características da API
- Mensagens de Erro
- Material de Apoio
- Authentication
- Address Parsing
- Billing/DailySummary
- Content Classification
- Content Compare
- Content Extraction
- Content Extraction Async
- Content Extraction Distance
- Content Fullreader
- Enrichment
- Facematch
- Generative Content Extraction
- Image Properties
- Image Reporting - Continuous Improvement
- Invoice Extraction
- License Plate Recognition
- Liveness Detection
- Liveness Streaming
- MultiAddress Parsing
- MultiPage Content Extraction
- Payment Card Extraction
- Vio Extraction
Content Classification [application/json]
POST
https://mostqiapi.com/process-image/content-classification
ocriocrcontent classificationclassificação de documentoclassificação de conteúdotipificação
Last modified:2025-01-22 19:06:19
Request
Header Params
Authorization
string
required
Example:
Bearer {{bearer_token}}
Body Params application/json
fileBase64
string
optional
fileUrl
string
optional
filePassword
string
optional
A senha deve ser codificada em uma string base64 (RFC 4648), pois PDFs permitem que as senhas sejam dados binários.
returnImage
boolean
optional
Default:
false
returnedImageQuality
string
optional
>= 0 characters<= 100 characters
Default:
75
returnMetadata
boolean
optional
metadata
, que inclui a leitura dos QRCodes presentes no documento, organizados dentro do objeto barcodes
.A extração de QRCodes será realizada para:
Default:
false
tags
array[string]
optional
Example
{
"fileBase64": "",
"fileUrl": "",
"filePassword": "",
"returnImage": false,
"returnedImageQuality": "",
"tags": [
""
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mostqiapi.com/process-image/content-classification' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"fileBase64": "",
"fileUrl": "",
"filePassword":"",
"returnImage": false,
"returnedImageQuality" :"",
"tags": [
""
]
}'
Responses
🟢200OK
application/json
Body
result
array [object {3}]
required
type
string | null
optional
stdType
string | null
optional
classifications
array [object {5}]
required
requestId
string
required
elapsedMilliseconds
integer
required
status
object
required
message
string | null
required
code
string
required
errors
array [object {2}] | null
required
Example
{
"result": [
{
"type": "extrato",
"stdType": "extract",
"classifications": [
{
"source": "iocr",
"score": 1,
"tags": [
"country=bra",
"id=bra-fgts-2",
"language=pt-BR",
"of=fund",
"process-type=classification",
"std-type=extract",
"subtype=fgts",
"type=extrato"
],
"pages": [
{
"number": 1
}
],
"image": null
}
]
},
{
"type": "documento-pessoal",
"stdType": "personal-document",
"classifications": [
{
"source": "iocr",
"score": 0.93,
"tags": [
"country=bra",
"id=bra-rg-marinha-2",
"language=pt-BR",
"of=armed-forces",
"of=military",
"of=navy",
"person=natural",
"process-type=classification",
"region=back",
"region=verso",
"std-type=personal-document",
"subtype=carteira-funcional",
"subtype=functional-card",
"subtype=identity",
"subtype=rg",
"type=documento-pessoal"
],
"pages": [
{
"number": 2
}
],
"image": null
}
]
},
{
"type": "documento-pessoal",
"stdType": "personal-document",
"classifications": [
{
"source": "iocr",
"score": 1,
"tags": [
"country=bra",
"has=fingerprint",
"has=photo",
"has=signature",
"id=bra-rg-marinha-2",
"language=pt-BR",
"of=armed-forces",
"of=military",
"of=navy",
"person=natural",
"process-type=classification",
"region=frente",
"region=front",
"std-type=personal-document",
"subtype=carteira-funcional",
"subtype=functional-card",
"subtype=identity",
"subtype=rg",
"type=documento-pessoal"
],
"pages": [
{
"number": 2
}
],
"image": null
}
]
}
],
"requestId": "lXP7v8LZL925kRIA3WYOw",
"elapsedMilliseconds": 3186,
"status": {
"message": "Ok",
"code": "200",
"errors": null
}
}
🟠400R101 A specified parameter is wrong
🟠400R130 Unsupported file format
🟠401R117 Invalid authorization data
🔴500E100 The request could not be processed
Modified at 2025-01-22 19:06:19