Skip to main content

Download

Downloads a PDF document created using the Create File endpoint.

This endpoint is part of the asynchronous document generation flow.

  • HTTP Method: GET
  • Endpoint: https://eledo.online/api/RESTv1/Download/{file_id}

Path parameters

NameTypeRequiredDescription
file_idStringYesFile identifier

Response

Success

  • Content-Type: application/pdf
  • Body: Binary PDF data

Headers

HeaderDescription
Content-DispositionContains the generated filename

Example:

content-disposition: attachment; filename="0_0.pdf"; filename*=UTF-8''0_0.pdf

Error

  • Content-Type: application/json
NameTypeDescription
errorsArrayList of errors

How it works

  1. Create a file using Create File
  2. Retrieve the file_id or download URL
  3. Call this endpoint to download the generated PDF

Observed behavior

Temporary files

  • If the file was created with temporary=true, it is removed after download
  • Subsequent download attempts may fail

Response handling

  • Successful responses return binary PDF data
  • Errors return JSON
  • Response type should be detected via Content-Type

Filename handling

  • The filename is provided in Content-Disposition
  • Two variants may be present:
    • filename="..."
    • filename*=UTF-8''...

Recommendation:
Handle both formats when extracting filenames


When to use Download

Use this endpoint when:

  • you are using the Create File workflow
  • you need to retrieve a previously generated document

Next steps

Was this article helpful?

Yes
No