v2

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-272589173.5 KB
Memories

Get presigned URL for large file upload

Get a presigned URL for uploading large files directly to S3.

Use this for files larger than 5MB that cannot be sent inline as base64. After uploading, reference the file in memory creation using S3FileReference.

Args: filename: Original filename (e.g., "image.jpg") content_type: MIME type (e.g., "image/jpeg", "application/pdf") file_size: Expected file size in bytes (max 100MB)

Returns: dict with: - upload_url: Presigned URL for PUT request (expires in 1 hour) - upload_headers: Headers that must be sent with the presigned PUT request - s3_key: The S3 key to reference in memory creation - bucket: S3 bucket name - expires_in: Seconds until URL expires - max_size: Maximum allowed file size

post/v1/memories/upload

Query parameters

filenamestring required

Original filename (e.g., 'image.jpg')

Original filename (e.g., 'image.jpg')

content_typestring required

MIME type (e.g., 'image/jpeg', 'application/pdf')

MIME type (e.g., 'image/jpeg', 'application/pdf')

file_sizeinteger required

Expected file size in bytes (max 100MB)

Expected file size in bytes (max 100MB)

Response

Successful Response