cURL
curl --request GET \ --url https://api.cradl.ai/{basePath}/documents \ --header 'Authorization: Bearer <token>'
{ "documents": [ { "updatedTime": "<string>", "metadata": {}, "retentionInDays": 913, "updatedBy": "<string>", "description": "<string>", "createdBy": "<string>", "name": "<string>", "createdTime": "<string>", "documentId": "<string>", "contentMD5": "<string>", "ocrFileUrl": "<string>", "agentRunId": "<string>", "content": "<string>", "groundTruth": [ { "label": "<string>", "value": "<string>", "pages": [ 123 ], "rawValue": "<string>", "confidence": 0.5 } ], "consentId": "<string>", "datasetId": "<string>", "fileUrl": "<string>", "contentType": "application/pdf", "annotationFileUrl": "<string>" } ], "nextToken": "<string>", "consentId": [ "<string>" ], "datasetId": [ "<string>" ], "sortBy": "createdTime", "order": "ascending" }
List Documents
The access token received from the authorization server in the OAuth 2.0 flow.
200 response
Show child attributes
4096
createdTime
ascending
descending