List Files
Retrieve a paginated list of files from your storage. You can filter by folder, file type, and other criteria.Endpoint
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | number | No | Page number (default: 1) |
limit | number | No | Number of files per page (default: 20, max: 100) |
folderId | string | No | Filter files by folder ID |
type | string | No | Filter by file type (e.g., “image”, “document”, “video”) |
search | string | No | Search files by name |
sortBy | string | No | Sort field (“name”, “size”, “uploadedAt”, “updatedAt”) |
sortOrder | string | No | Sort order (“asc” or “desc”, default: “desc”) |
Example Request
Response
File Object Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique file identifier |
name | string | Original filename |
size | number | File size in bytes |
type | string | MIME type |
url | string | Direct download URL |
folderId | string | Parent folder ID (null if in root) |
uploadedAt | string | ISO 8601 timestamp of upload |
updatedAt | string | ISO 8601 timestamp of last update |
metadata | object | Additional file metadata |