> ## 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. # Get file by ID > Make a GET request to this endpoint to get file details ## OpenAPI ````json GET /files/{file_id} { "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}": { "get": { "operationId": "GetFileById", "security": [ { "BasicAuth": [] } ], "tags": [ "Files" ], "summary": "Get file by ID", "description": "Make a GET request to this endpoint to get file details", "parameters": [ { "$ref": "#/components/parameters/FileIdPathParam" } ], "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileObject" }, "examples": { "getFile": { "value": { "id": "file-ec700c1c-db17-4496-b1fb-04ebe551b412", "business_id": "ec700c1c-db17-4496-b1fb-04ebe551b412", "purpose": "CHARGEBACK_EVIDENCE", "created": "2020-10-08T06:38:33.479Z", "updated": "2020-10-08T06:38:33.479Z", "type": "image/png", "size": 10000, "url": "https://files.xendit.co/file-ec700c1c-db17-4496-b1fb-04ebe551b412" } } } } } }, "404": { "$ref": "#/components/responses/ErrorStatusCode404Response" } }, "x-stoplight": { "id": "g5kcrysiv9d6w" } } } }, "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" } } }, "schemas": { "FileObject": { "type": "object", "properties": { "id": { "$ref": "#/components/schemas/Id" }, "business_id": { "$ref": "#/components/schemas/BusinessId" }, "purpose": { "$ref": "#/components/schemas/Purpose" }, "created": { "$ref": "#/components/schemas/FileCreated" }, "updated": { "$ref": "#/components/schemas/FileUpdated" }, "type": { "$ref": "#/components/schemas/FileType" }, "size": { "$ref": "#/components/schemas/Size" }, "url": { "$ref": "#/components/schemas/FileURL" } } }, "FileId": { "type": "string", "description": "File ID" }, "Id": { "type": "string", "description": "Unique ID generated by Xendit for the particular file" }, "BusinessId": { "type": "string", "description": "Unique ID generated by Xendit for the particular file" }, "Purpose": { "type": "string", "description": "Purpose of the file", "enum": [ "KYC_DOCUMENT", "CHARGEBACK_EVIDENCE" ] }, "FileCreated": { "type": "string", "description": "UTC Timestamp of file upload in ISO format" }, "FileUpdated": { "type": "string", "description": "UTC Timestamp of last file update in ISO format" }, "FileType": { "type": "string", "description": "Type of the file" }, "Size": { "type": "integer", "description": "Size of the file in bytes" }, "FileURL": { "type": "string", "description": "URL to download the file" }, "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" } ] } } }, "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" } } } } ````