Browser Session Upload File Presigned Url

Generate a secure presigned URL for uploading files to a browser session.

Authentication

X-Browser-Use-API-Keystring
API Key authentication via header

Path Parameters

session_idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
fileNamestringRequired1-255 characters
The name of the file to upload
contentTypeenumRequired
The content type of the file to upload
sizeBytesintegerRequired1-10485760

Response

Successful Response
urlstring
The URL to upload the file to.
method"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