User Upload File Presigned Url

Generate a secure presigned URL for uploading files that AI agents can use during tasks.

Path parameters

session_idstringRequiredformat: "uuid"

Headers

X-Browser-Use-API-KeystringRequired

Request

This endpoint expects an object.
fileNamestringRequired>=1 character<=255 characters
The name of the file to upload
contentTypeenumRequired
The content type of the file to upload
sizeBytesintegerRequired>=1<=10485760

Response

Successful Response
urlstring
The URL to upload the file to.
method"POST"Defaults to POST
The HTTP method to use for the upload.
fieldsmap from strings to strings
The form fields to include in the upload request.
fileNamestring

The name of the file to upload (should be referenced when user wants to use the file in a task).

expiresIninteger
The number of seconds until the presigned URL expires.

Errors