Conheça a nossa nova rota CNH_EVALUATION para validação automatizada de CNH!
webhook object.processId and resultKey. Store the resultKey: it is required on the status route to receive the full result in output, in the same format as result of the synchronous route. The result is sent to webhook.url (if provided) and can be retrieved on the Content Compare - Get status [application/json] route.{
"webhook": {
"url": "https://your-server.com/webhook",
"fallbackUrl": "https://your-server.com/webhook-fallback"
},
"fileUrl": "https://www.example.com/document.pdf",
"fields": [
{
"name": "nome",
"value": "JUNIOR CARDOSO VILARINO"
},
{
"name": "data_expedicao",
"value": "09-20-2017",
"type": "full-date"
},
{
"name": "documento_origem",
"value": "Cert Nasc LV 237 - FL 128 - Termo"
}
]
}curl --location 'https://mostqiapi.com/process-image/content-compare/async' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"url": "https://your-server.com/webhook",
"fallbackUrl": "https://your-server.com/webhook-fallback"
},
"fileUrl": "https://www.example.com/document.pdf",
"fields": [
{
"name": "nome",
"value": "JUNIOR CARDOSO VILARINO"
},
{
"name": "data_expedicao",
"value": "09-20-2017",
"type": "full-date"
},
{
"name": "documento_origem",
"value": "Cert Nasc LV 237 - FL 128 - Termo"
}
]
}'{
"result": {
"processId": "10f24e40-7a06-4365-8757-bc5a471b5ebd",
"resultKey": "...56/Bbs8vU1uug6obazMLYZo="
},
"requestId": "RyFePOc04I9pSmlOaNDsX",
"elapsedMilliseconds": 475,
"status": {
"message": "Ok",
"code": "200",
"errors": []
}
}