Documents
Get document by ID
Changed onGet a specific document with its details and download URL.
get/v1/documents/{id}
Request
- Base URLhttps://sandbox.api.infinite.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Query parameters
includeInternalboolean
Include internal/system-generated documents
customerIdstring
Example:cus_abc123
When set, the document must belong to this customer or the request is rejected as not found
Headers
X-API-Keystring
API key
Response
Document retrieved successfully
Example response
{
"id": "doc_abc123",
"organizationId": "org_xyz789",
"customerId": "cus_abc123",
"transferId": "txn_xyz789",
"documentType": "INVOICE",
"documentSubtype": "BANK_STATEMENT",
"fileName": "invoice-2026-001.pdf",
"contentType": "application/pdf",
"sizeBytes": 1024000,
"status": "UPLOADED"
}Changes
- info
added the new optional
queryrequest parametercustomerId
- info
- warning
added the new
LIVENESS_CHECKenum value to theresponse property for the response status
- warning