Files
Download File
Download a file by its ID or return its content as a string/bytes.
Args: file_id: UUID of the file. current_user: Authenticated user. session: Database session. storage_service: File storage service. return_content: If True, return raw content (str) instead of StreamingResponse.
Returns: 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"}