Skip to main content

Retrieve a Document

Idexa provides two ways to obtain the processing result.
The first is a standard GET method, where you must send the ID received during the upload.

The second method is via Webhook. Don’t worry — we will send the result to you.
We will show in the next step how to configure it.

Document Service - Retrieve Document

GET Environment URL/documents/[id]

The /documents/[id] method receives the following parameters, where [id] is the document's UUID.

IdentifierValue
Content-typeapplication/json
IDEXA-API-KEY[api_key]

Response

Status code 200

A 200 HTTP code is returned when the document is successfully retrieved.

ParameterDescriptionTypeExamples
idInternal document IDUUID"95893394-337c-429c-..."
externalIdExternal ID for document tracking (cannot be duplicated)String"0001"
typeType of the document sentInteger1
dataObject returned by the AIModel related to the document typejson_object
processTimeProcessing timeFloat10.02232
statusDocument status (0-Received, 1-Finished, 2-Error)Integer3
statusDescDocument status description (RECEIVED, FINISHED, ERROR)String"FINISHED"
createdAtRecord creation timestampDatetime"01/01/2023 00:00:00.0000"
updatedAtRecord update timestampDatetime"01/01/2023 00:00:00.0000"

Example

{
"id": "bc1bc4ea-8964-4bb7-97cc-2d77d39908d8",
"externalId": "0001",
"type": 1,
"data": {
// Verificar em Modelo o resultado esperado desse documento
},
"processTime": null,
"status": 1,
"statusDesc": "FINISHED",
"createdAt": "2022-10-14 14:38:50.045316",
"updatedAt": "2022-10-14 14:38:50.045316"
}