File Endpoints
Complete API reference for file management endpoints.
File endpoints are part of the Admin API tier. All endpoints are under /api/v1/files and require API key authentication.
/filesList files in a space with cursor pagination.
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
space_id | Yes | Space to list files from |
limit | No | Items per page |
cursor | No | Pagination cursor |
/files/:idGet a single file by ID.
/files/by-refLook up a file by its custom reference.
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
space_id | Yes | Space to search in |
ref | Yes | Custom reference string |
/filesUpdate a file's properties.
Parameters:
| Field | Type | Required | Validation |
|---|---|---|---|
id | string | Yes | Must exist |
name | string | No | Max 255 |
original_name | string | No | Max 255 |
mime_type | string | No | Max 255 |
size | integer | No | Min 1 |
storage_path | string | No | Max 255 |
space | string | No | Must be valid space handle |
folder_path | string | No | Must be valid folder path |
folder_id | string | No | Must be valid folder ID |
/files/:idDelete a file and all its transformed variants.
Removes the file from the database, cloud storage, and all cached transformed variants.
/files/:id/access-controlUpdate file-level access control.
/files/:id/access-controlReset file access control to inherited defaults.
/files/:id/signed-urlGenerate a signed delivery URL for the file.
Returns a time-limited CDN URL with HMAC-SHA256 signature. Default expiration: 1 hour.
/files/urlsGenerate batch URLs for multiple files.
/files/:id/signed-accessValidate and access a file using a signed URL.
Auth required: No (validated via signed URL parameters)
This endpoint is used for direct file access with a previously generated signed URL.