User Upload File Presigned Url
Generate a secure presigned URL for uploading files that AI agents can use during tasks.
Path parameters
session_id
Headers
X-Browser-Use-API-Key
Request
This endpoint expects an object.
fileName
The name of the file to upload
contentType
The content type of the file to upload
sizeBytes
Response
Successful Response
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.
fileName
The name of the file to upload (should be referenced when user wants to use the file in a task).
expiresIn
The number of seconds until the presigned URL expires.