Files
Download File
Download a file by its ID or return its content as a string/bytes.<br><br>Args:<br> file_id: UUID of the file.<br> current_user: Authenticated user.<br> session: Database session.<br> storage_service: File storage service.<br> return_content: If True, return raw content (str) instead of StreamingResponse.<br><br>Returns:<br> StreamingResponse for client downloads or str for internal use.
get/api/v2/files/{file_id}
Path parameters
file_idstring uuid required
Query parameters
return_contentboolean
Response
Successful Response
{"stackTrail":"paths:/api/v2/files/{file_id}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}