POST
/
api
/
v1
/
uploads
/
presigned-url
curl --request POST \
  --url https://api.browser-use.com/api/v1/uploads/presigned-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file_name": "<string>",
  "content_type": "<string>"
}'
{
  "upload_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

file_name: Name of the file to upload (e.g. 'file1.txt', 'file2.csv'). content_type: Content type of the file to upload (e.g. 'image/png', 'application/pdf', 'text/plain'). Only images and documents are supported.

Response

200
application/json

Successful Response

upload_url: Presigned URL for uploading a file to the user's files bucket.

Note: Make a PUT presigned URL request to upload the file.