> ## 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 > Retrieves file details ## OpenAPI ````json GET /files/{file_id}/download { "openapi": "3.0.0", "info": { "title": "Others", "version": "3.0.0", "description": "These APIs provide merchants with customer management, file operations, and bill payment capabilities.\n\nThey cover:\n- Customer profile management\n- File upload, retrieval, and management\n- Bill payment services for utility providers and billers in Indonesia\n", "contact": { "name": "Xendit API Support", "email": "help@xendit.co", "url": "https://www.xendit.co/support" }, "license": { "name": "Proprietary", "url": "https://www.xendit.co/terms-and-conditions/" } }, "servers": [ { "url": "https://api.xendit.co", "description": "Xendit API" } ], "tags": [ { "name": "Customers", "description": "Operations for managing customer profiles and information" }, { "name": "Files", "description": "Operations for file upload, retrieval, and management" }, { "name": "Bill Payments", "description": "Bill payment services for utility providers and billers in Indonesia" } ], "paths": { "/files/{file_id}/download": { "get": { "operationId": "DownloadFileById", "summary": "Download file by ID", "security": [ { "BasicAuth": [] } ], "tags": [ "Files" ], "description": "Retrieves file details", "parameters": [ { "$ref": "#/components/parameters/FileIdPathParam" } ], "responses": { "200": { "description": "Successful operation", "content": { "application/octet-string": { "schema": { "type": "string", "format": "binary" } } } }, "404": { "$ref": "#/components/responses/ErrorStatusCode404Response" } } } } }, "components": { "parameters": { "FileIdPathParam": { "in": "path", "name": "file_id", "description": "Unique ID generated by Xendit for the particular file", "required": true, "schema": { "$ref": "#/components/schemas/FileId" } } }, "responses": { "ErrorStatusCode404Response": { "description": "The provided `id` does not exist. Please review the `id` and try again", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error403Schema" } } } } }, "securitySchemes": { "BasicAuth": { "type": "http", "scheme": "Basic" } }, "schemas": { "FileId": { "type": "string", "description": "File ID" }, "Error403Schema": { "type": "object", "required": [ "error_code", "message" ], "properties": { "error_code": { "type": "string", "enum": [ "RATE_LIMIT_EXCEEDED" ] }, "message": { "type": "string" }, "errors": { "$ref": "#/components/schemas/XenditArrayOfErrors" } } }, "XenditArrayOfErrors": { "nullable": true, "type": "array", "items": { "oneOf": [ { "type": "string" }, { "type": "object" } ] } } } } } ````