cURL
curl --request GET \ --url https://api.example.com/v1/files/{id}
{ "id": "<string>", "url": "<string>", "name": "<string>", "folder": "<string>", "size": 123, "type": "<string>", "private": true, "expires_at": "<string>", "created_at": "<string>" }
Get metadata for a specific file.
f_abc123xyz
curl https://api.stashfyle.com/v1/files/f_abc123xyz \ -H "Authorization: Bearer sk_live_xxx"
{ "id": "f_abc123xyz", "url": "https://cdn.stashfyle.com/live/user_123/f_abc123xyz/photo.jpg", "name": "photo.jpg", "folder": null, "size": 248000, "type": "image/jpeg", "private": false, "expires_at": null, "created_at": "2024-01-15T10:30:00Z" }
unauthorized
not_found