List Files
Get a list of uploaded files
GET
Returns a list of files, optionally filtered by path or MIME type.
Query Parameters
pathstringFilter by path prefix.
mimeTypestringFilter by MIME type.
curl -X GET "https://api.example.com/v1/files?path=uploads/images&mimeType=image/png" \
-H "Authorization: Bearer $TOKEN"{
"data": [
{
"id": "file_xyz",
"name": "image.png",
"size": 102400,
"mimeType": "image/png",
"url": "https://cdn.example.com/files/image.png",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "file_abc",
"name": "logo.png",
"size": 51200,
"mimeType": "image/png",
"url": "https://cdn.example.com/files/logo.png",
"createdAt": "2024-01-14T09:15:00Z"
}
],
"meta": {
"total": 2,
"limit": 20,
"offset": 0
}
}