Skip to main content
POST
Download documents.

Authorizations

api-key
string
header
default:410ca5cd265a4111982375d50802b7f8
required

Body

application/json

Request to download or retrieve a binary artifact from a correspondence vendor (for example DocuSign signed envelope documents, with or without the Certificate of Completion).

customerId
string

Bank or channel unique identifier of the customer associated with the download. Optional correlation key; not used as a vendor path parameter.

Example:

"C0012345"

caseId
string

Vendor case / workflow / envelope reference that scopes the download.

Example:

"93be49ab-afa0-4adf-933c-f752070d71ec"

documentType
string

Type of artifact to download or generate. Used by connectors that select among multiple vendor download endpoints. Not required for DocuSign — download mode is expressed by documentIdentification (and includeCertificate when combined).

Example:

"ID"

documentIdentification
string

Vendor identifier of the document used for retrieval, or a vendor-specific special download keyword. The configured connector maps this value to the vendor download path (for DocuSign: documentId, which may be a numeric id or one of combined, archive, certificate, portfolio). Allowed values are connector-specific and are documented in the connector guide (Mintlify); do not assume every vendor supports the same keywords.

Example:

"combined"

Optional absolute URI that can be used to download the document when the vendor exposes a ready-made download URL. Connectors that do not support this field (for example DocuSign) must ignore it and build the download URL from other request attributes. Connectors that fetch this URI must restrict requests to an allowlisted host set to mitigate SSRF / data-exfiltration risk; callers must not assume an arbitrary URL will be retrieved.

Example:

"https://vendor.example.com/documents/f1e2d3c4-b5a6-4987-8fed-cba987654321/download"

documentFormat
string

Expected file type of the downloaded artifact. Possible values include: pdf, jpg, jpeg, png, zip.

Example:

"pdf"

watermark
boolean

When true, request vendor watermarking / annotations on the downloaded artifact where supported. Configurations for enabling watermark may be required on vendor system.

Example:

false

includeCertificate
boolean

When true, includes the Certificate of Completion as part of the download document. When false, excludes it.

Example:

true

customFields
CustomField · object

custom fields object.

Response

Returns the downloaded document as a binary file.

The response object returned after downloading a document.

rawFile
file

Byte array of the document (PDF, image, or ZIP depending on the vendor download).

documentName
string

Suggested file name for the downloaded artifact. Mapped from the vendor Content-Disposition filename when present; otherwise a connector default (for example document). The same filename is also returned on the HTTP Content-Disposition response header. Callers can use either this body part or the response header to name the saved file.

Example:

"Signed_Contract.pdf"

contentType
string

Media type of the rawFile bytes. Mapped from the vendor Content-Type when present; otherwise application/octet-stream. Typical DocuSign values are application/pdf and application/zip. Callers can use this to distinguish PDF from ZIP without sniffing bytes.

Example:

"application/pdf"

downloadIdentifier
string

Optional identifier such as a link or ID that can be used to re-fetch the document. May echo the vendor document or envelope reference when useful to the caller.

Example:

"93be49ab-afa0-4adf-933c-f752070d71ec"

customFields
CustomField · object

custom fields object.