---
title: "Download file by ID"
slug: "download-file-by-id"
updated: 2026-04-01T03:43:19Z
published: 2026-04-01T03:43:19Z
canonical: "docs.xendit.co/download-file-by-id"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xendit.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Download file by ID

Get/files/{file_id}/download

Retrieves file details

SecurityHTTPType Basic

Path parametersfile_idstringRequired

Unique ID generated by Xendit for the particular file

Responses200

Successful operation

<select class='api-response-data' aria-label='Media type'><option value='759e0650-30cb-4398-aba7-969db6e682cb'>application/octet-string</option>
</select>string  (binary)    

404

The provided `id` does not exist. Please review the `id` and try again

<select class='api-response-data' aria-label='Media type'><option value='594729ba-1a9a-4902-8eb5-0dadf848cec2'>application/json</option>
</select>object  error_codestring    Valid values[
  "RATE_LIMIT_EXCEEDED"
]
messagestring    
errors Array  OneOfstringstring
objectobject
