Retrieves the download URL and metadata for a previously uploaded document. Only documents that have been attached to an application can be downloaded.
Request
https://openapi.advance.ai/v1/business/documents/{documentId}
GET
Parameter validation failed (e.g., missing or invalid parameter).
400 Bad Request
iam_failed
Authentication or authorization failed.
401 Unauthorized
error
Internal server error or unknown error.
500 Internal Server Error
not_found
Requested resource not found.
404 Not Found
service_busy
The service is busy or rate limited.
429 Too Many Requests
Response Examples
{
"error": {
"type": "parameter_error",
"message": "The document was not found. Only application documents support downloading."
}
}
Notes
URL Expiration: The documentUrl returned is a pre-signed URL that will expire after a short period. Download the document promptly after receiving the URL.
Access Control: Only documents that belong to applications within your workspace can be downloaded.
Document Availability: Only documents that have been attached to an application via the Add Application Document endpoint are available for download. Newly uploaded documents that haven't been attached will return a "not found" error.