Skip to main content

Result Retrieval

To access the result of the submitted document, it is necessary to make a GET request, passing the received document's ID upon upload.

Documents Service - Document's Return

GET Environment URL/api_document/documents/[id]

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

IdentifierValue
Content-typeapplication/json
Acceptapplication/json
X-API-KEY[api_key]

Return

Status code 200

An HTTP code 200 is returned when the document is inserted correctly.

ParameterDescriptionTypesExamples
idInternal code of the documentUUID"95893394-337c-429c-..."
apiKeyIdInternal code of the API keyUUID"113d37ed-6b47-46b6-..."
typeInternal code of the document typeInteger1
fileTypeType of the document sentString"pdf"
dataObject returned by the AIModel related to the document type.json_object
processTimeProcessing timeFloat10.02232
statusDocument request status (0-Received, 1-Finished, 2-Error)Integer3
statusDescDocument request status description (RECEIVED, FINISHED, ERROR)String"FINISHED"
createdAtTime when the document request was createdDatetime"01/01/2023 00:00:00.0000"
updatedAtTime when the document request was updatedDatetime"01/01/2023 00:00:00.0000"

Exemplo

{
"id": "bc1bc4ea-8964-4bb7-97cc-2d77d39908d8",
"apiKeyId": "bc1bc4ea-8964-4bb7-97cc-2d77d39908d8",
"type": 1,
"fileType": "pdf",
"data": null,
"processTime": null,
"status": 1,
"statusDesc": "FINISHED",
"createdAt": "2022-10-14 14:38:50.045316",
"updatedAt": "2022-10-14 14:38:50.045316"
}