Skip to content

Get Documents

Retrieve all documents from Last Mile Intelligence.

getDocument

document

ParameterTypeRequiredDefaultDescription
Document IDstringNo-Leave empty to retrieve all documents
[
{
"id": "doc_abc123",
"name": "Delivery Receipt",
"type": "receipt",
"mimeType": "application/pdf",
"entityType": "order",
"entityId": "ord_xyz789"
},
{
"id": "doc_def456",
"name": "Proof of Delivery",
"type": "pod",
"mimeType": "image/jpeg",
"entityType": "order",
"entityId": "ord_xyz789"
}
]
{
"success": false,
"error": "Failed to retrieve documents"
}
  • Missing API Token: LMI credential is missing API token
  • Permission Denied: API token lacks permission for this operation