Skip to content
File Uploads

Get File Download URL

Exchanges the owning business and file key for a signed download URL, to preview or download an uploaded attachment.

The signed URL serves the response type given by content_type. When opening a PDF in a native viewer, pass application/pdf to get a new URL; otherwise the file may render as garbled text. Do not cache signed URLs for long; call this endpoint again after one expires. If the request fails, show a file name placeholder instead of blocking the page. This endpoint is also used to preview attachments in stock transfer-in record details, account documents, and other features.

GEThttps://api.lbkrs.com/v1/file/download

Parameters

servicestringqueryRequired

Business that owns the file, which determines where it is stored. Use the same value when uploading and when getting the download URL later. Known values:

  • lb.portfolio.atm - Attachments for funding services such as stock transfers in
  • user.account - Account opening and account documents
  • form.service - Forms and agreement signatures
keystringqueryRequired

File key, taken from key in Get File Upload URL.

content_typestringquery

MIME type of the download response, such as application/pdf. Omit it or pass an empty string to use the default.

content_dispositionstringquery

Content-Disposition of the download response. Omit it or pass an empty string to use the default.

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get File Download URL” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
urlstring

Signed download URL.

Whale Docs