Get File
Retrieve file metadata by ID
GET
Returns metadata for a specific file.
Path Parameters
idstringrequiredThe file ID.
curl -X GET "https://api.example.com/v1/files/file_xyz" \
-H "Authorization: Bearer $TOKEN"{
"data": {
"id": "file_xyz",
"name": "image.png",
"size": 102400,
"mimeType": "image/png",
"path": "uploads/images/image.png",
"url": "https://cdn.example.com/files/image.png",
"public": true,
"createdAt": "2024-01-15T10:30:00Z"
}
}