Download Document File
get
/v1/graphs/{graph_id}/documents/{document_id}/filePart of Documents.
A short-lived link to a document's stored file, such as the statement PDF behind a recorded balance.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
graph_idrequired | string | Graph Id |
document_idrequired | string | Document Id |
Example request
curl
curl -X GET "https://api.robosystems.ai/v1/graphs/{graph_id}/documents/{document_id}/file" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY"Responses
200 Successful Response
| Field | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
document_idrequired | string | ||||||||||||||||
download_urlrequired | string | Presigned URL to GET the file. | |||||||||||||||
expires_inrequired | integer | Seconds until the URL expires. | |||||||||||||||
filerequired | DocumentFileInfo | The stored file behind a document, when it is one. DocumentFileInfo fields
|
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |