List all files in your account with optional filtering and pagination.
Query Parameters
Filter by folder path. Example: images/avatars
Max files to return (1-100).
Pagination cursor from previous response.
Response
Whether more files exist.
Cursor for next page, or null if no more.
Example
curl https://api.stashfyle.com/v1/files \
-H "Authorization: Bearer sk_live_xxx"
{
"files": [
{
"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"
}
],
"has_more": true,
"cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0wMS0xNVQxMDozMDowMFoifQ"
}
Filtering by Folder
curl "https://api.stashfyle.com/v1/files?folder=images/avatars" \
-H "Authorization: Bearer sk_live_xxx"
# First page
curl "https://api.stashfyle.com/v1/files?limit=20" \
-H "Authorization: Bearer sk_live_xxx"
# Next page using cursor from previous response
curl "https://api.stashfyle.com/v1/files?limit=20&cursor=eyJ..." \
-H "Authorization: Bearer sk_live_xxx"