Files
Manage individual file assets
Get all files for a project
Retrieves a paginated list of all files associated with the current project. Files can be filtered using query parameters.
Authorization
Authorization
RequiredBearer <token>Requires a Bearer token in the Authorization header. Format: Authorization: Bearer YOUR_API_KEY
In: header
Query Parameters
page
integerPage number
1
Minimum: 1
limit
integerItems per page
20
Minimum: 1
Maximum: 100
Response Body
A paginated list of files.
TypeScript Definitions
Use the response body type in TypeScript.
meta
objectdata
array<object>links
objectCreate a new file record from a URL
Registers a file from a publicly accessible URL. The file will be ingested asynchronously.
Authorization
Authorization
RequiredBearer <token>Requires a Bearer token in the Authorization header. Format: Authorization: Bearer YOUR_API_KEY
In: header
Request Body
application/json
RequiredDetails of the file to create, including the source URL and optional metadata.
url
RequiredstringThe publicly accessible URL of the file to ingest.
"uri"
filename
stringOptional desired filename. If not provided, it may be derived from the URL.
folder
stringFolder path (optional)
media_id
stringOptional existing media ID to associate the file with.
label
stringOptional label for the file.
metadata
objectOptional user-defined key-value metadata.
async
booleanWhether to process the ingestion asynchronously.
true
Response Body
File created successfully.
TypeScript Definitions
Use the response body type in TypeScript.
meta
objectdata
objectlinks
objectGet a specific file by ID
Retrieves detailed information about a specific file identified by its unique ID, including its metadata, media associations, and technical properties.
Authorization
Authorization
RequiredBearer <token>Requires a Bearer token in the Authorization header. Format: Authorization: Bearer YOUR_API_KEY
In: header
Path Parameters
id
RequiredstringUnique identifier of the file to retrieve. Must be a valid file ID (e.g., file_7bKpN2950Dx4EW8T).
Response Body
Returns the file details
TypeScript Definitions
Use the response body type in TypeScript.
meta
objectdata
objectlinks
objectDemonstrates a successful response when retrieving a video file with all properties
Update file metadata
Updates metadata, filename, or folder properties of an existing file. Only the specified fields will be updated.
Authorization
Authorization
RequiredBearer <token>Requires a Bearer token in the Authorization header. Format: Authorization: Bearer YOUR_API_KEY
In: header
Request Body
application/json
RequiredFields to update on the file. Can include metadata properties, filename, and/or folder path.
metadata
objectAn object containing key-value pairs to set or update. Set a key to null to remove it.
filename
stringNew filename for the file.
folder
stringNew folder path for the file.
Path Parameters
id
RequiredstringUnique identifier of the file to update. Must be a valid file ID (e.g., file_abc123).
Response Body
File updated successfully.
TypeScript Definitions
Use the response body type in TypeScript.
meta
objectdata
objectlinks
objectDelete a file
Permanently removes a file from the system. This action cannot be undone. Associated media entries may still reference this file ID.
Authorization
Authorization
RequiredBearer <token>Requires a Bearer token in the Authorization header. Format: Authorization: Bearer YOUR_API_KEY
In: header
Path Parameters
id
RequiredstringUnique identifier of the file to delete. Must be a valid file ID (e.g., file_7bKpN2950Dx4EW8T).
Response Body
Confirmation that the file was deleted successfully.
TypeScript Definitions
Use the response body type in TypeScript.
response
Requiredunknown