Skip to main content

Overview

The Files API allows you to upload, manage, and retrieve files/assets in your Mavera workspaces. Files can include images, videos, documents, and other media that you want to use with other API features like responses, video analysis, or brand voice creation.

Direct Uploads

Upload files directly to storage using presigned URLs - no file data passes through the API server

Folder Organization

Create folders to organize files, with full CRUD operations via API

Favorites

Mark files and folders as favorites for quick access

Search

Search files and folders by name with case-insensitive matching

Upload Flow

The file upload process uses presigned URLs for efficient, direct-to-storage uploads:
1

Request Upload URL

Call POST /api/v1/files/upload-url with file metadata to get a presigned upload URL
2

Upload File

Use the presigned URL to upload the file directly to storage (PUT request)
3

Create File Record

Call POST /api/v1/files to create the database record and start tracking storage usage

Basic Usage

Uploading a File

Listing Files

Managing Favorites

Toggle favorite status on files to mark them for quick access:

Getting File Details

Deleting Files

Folders

Create and manage folders to organize your files.

Creating Folders

Listing Folders

Getting Folder Contents

Deleting Folders

Deleting a folder also deletes all files inside it and reclaims the storage quota.

Folder Favorites

File Size Limits

Storage Quota

File uploads count against your subscription’s storage quota. You can check your current usage via the dashboard or subscription API. When you delete a file, the storage is reclaimed and your quota is updated accordingly.

Using Files with Other APIs

Once uploaded, files can be referenced in other API calls:

With the Responses API

With Brand Voice

Best Practices

Include a SHA256 checksum when requesting upload URLs to ensure file integrity:
The presigned URL expires after 1 hour. If upload fails, request a new URL:
Use folder_id to organize files logically:
For large files, verify you have sufficient storage quota before uploading:

Files API Reference

See the full API specification for Files endpoints

Folders API Reference

See the full API specification for Folders endpoints