Get a presigned URL for uploading files that AI agents can use during tasks.
This endpoint generates a secure, time-limited upload URL that allows you to upload files directly to our storage system. These files can then be referenced in AI agent tasks for the agent to work with.
Supported use cases:
The upload URL expires after 2 minutes for security. Files are automatically organized by user ID and can be referenced in task creation using the returned file name.
Args:
Returns:
Raises:
Request model for uploading a file to the user's files bucket
Attributes: file_name: The name of the file to upload content_type: The content type of the file to upload size_bytes: The size of the file to upload
Successful Response
Response model for a presigned upload URL
Attributes: url: The URL to upload the file to method: The HTTP method to use for the upload fields: The form fields to include in the upload request file_name: The name of the file to upload (should be referenced when user wants to use the file in a task) expires_in: The number of seconds until the presigned URL expires