Get File

Retrieve file metadata by ID

GEThttps://api.jamdesk.com/api/v1/files/:id

Returns metadata for a specific file.

Path Parameters

idstringrequired

The 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"
  }
}