curl --request GET \
--url https://api.example.com/cases/files/{case_id}{
"files": [
{
"files[].file_id": "<string>",
"files[].case_id": 123,
"files[].file_name": "<string>",
"files[].file_type": "<string>",
"files[].file_size": 123,
"files[].file_url": "<string>",
"files[].file_category": "<string>",
"files[].uploaded_at": "<string>"
}
],
"404 Not Found": {},
"400 Bad Request": {},
"500 Internal Server Error": {}
}Retrieve all files associated with a specific medical case
curl --request GET \
--url https://api.example.com/cases/files/{case_id}{
"files": [
{
"files[].file_id": "<string>",
"files[].case_id": 123,
"files[].file_name": "<string>",
"files[].file_type": "<string>",
"files[].file_size": 123,
"files[].file_url": "<string>",
"files[].file_category": "<string>",
"files[].uploaded_at": "<string>"
}
],
"404 Not Found": {},
"400 Bad Request": {},
"500 Internal Server Error": {}
}curl -X GET "https://api.medmitra.com/cases/files/12345" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"files": [
{
"file_id": "f1e2d3c4-5678-90ab-cdef-1234567890ab",
"case_id": 12345,
"file_name": "lab_report.pdf",
"file_type": "application/pdf",
"file_size": 245678,
"file_url": "lab_files/a1b2c3d4-5678-90ab-cdef-1234567890ab/lab_report.pdf",
"file_category": "lab",
"uploaded_at": "2026-03-04T10:30:15Z"
},
{
"file_id": "a9b8c7d6-5432-10fe-dcba-0987654321ab",
"case_id": 12345,
"file_name": "chest_xray.jpg",
"file_type": "image/jpeg",
"file_size": 1234567,
"file_url": "radiology_files/a1b2c3d4-5678-90ab-cdef-1234567890ab/chest_xray.jpg",
"file_category": "radiology",
"uploaded_at": "2026-03-04T10:31:20Z"
},
{
"file_id": "c8d7e6f5-4321-09ed-cba9-876543210fed",
"case_id": 12345,
"file_name": "ecg_report.pdf",
"file_type": "application/pdf",
"file_size": 98765,
"file_url": "/files/12345/ecg_report.pdf",
"file_category": "lab",
"uploaded_at": "2026-03-04T11:15:45Z"
}
]
}
{
"detail": "Case not found"
}
{
"detail": "Error message describing the issue"
}
{
"detail": "Internal server error: {error details}"
}
file_url to download or display the actual file content