Download Document

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

Request Header Parameters

Parameter

Description

Authorization

string Please use Token Authentication API to get your access token.
Format: Bearer {token}

Path Parameters

ParameterRequiredDescription
documentIdTruestring The unique identifier of the document to download.

Request Examples

curl -X GET "https://openapi.advance.ai/v1/business/documents/DOC-2026052200001" \
-H "Authorization: Bearer {Your Access Token}"

Success Response

Response Description

FieldDescription
documentIdstring The unique identifier of the document.
originalNamestring The original filename of the document.
documentFormatstring The format of the file (PDF, JPEG, PNG, etc.).
documentTypeenum The type of document.
documentUrlstring The pre-signed URL to download the document. This URL is temporary and will expire.

DocumentTypeEnum - Company Documents

ValueDescription
CERTIFICATE_OF_REGISTRATIONCertificate of incorporation/registration
MEMORANDUM_O_REGISTRATIONMemorandum of incorporation/association/registration
RECENT_EXCERPTRecent excerpt from a state company registry
STATEMENT_OF_INFORMATIONStatement of information
PROOF_OF_ADDRESSProof of address
CERTIFICATE_OF_INCUMBENCYCertificate of incumbency
CERTIFICATE_OF_GOOD_STANDINGCertificate of good standing
SHAREHOLDER_REGISTRYShareholder registry
DIRECTOR_REGISTRYDirector registry
TRUST_AGREEMENTTrust agreement
POWER_OF_ATTORNEYPower of attorney
COMPANY_OTHERSCompany other documents

DocumentTypeEnum - Individual Documents

ValueDescription
PASSPORTPassport
ID_CARDID card
DRIVERS_LICENSEDriver's license
RESIDENCE_PERMITResidence permit
INDIVIDUAL_OTHERSIndividual other documents

Response Examples

{
  "documentId": "DOC-2026052200001",
  "originalName": "certificate_of_registration.pdf",
  "documentFormat": "PDF",
  "documentType": "CERTIFICATE_OF_REGISTRATION",
  "documentUrl": "https://storage.example.com/documents/2026/05/22/DOC-2026052200001/certificate_of_registration.pdf?signature=abc123&expires=1716400800"
}

Error Response

Response Description

ParameterDescription
errorobject The error details.

ResponseError.error

FieldDescription
typestring Error code or type.
messagestring Human-readable error message.

ResponseError.error.type

ValueDescriptionHTTP Status Code
parameter_errorParameter validation failed (e.g., missing or invalid parameter).400 Bad Request
iam_failedAuthentication or authorization failed.401 Unauthorized
errorInternal server error or unknown error.500 Internal Server Error
not_foundRequested resource not found.404 Not Found
service_busyThe 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

  1. 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.

  2. Access Control: Only documents that belong to applications within your workspace can be downloaded.

  3. 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.