Skip to main content
POST
Upload Files

Authorizations

anchor-api-key
string
header
required

API key for your Anchor Browser account, sent as the anchor-api-key header on every request. Create one at app.anchorbrowser.io (API Access), or obtain one programmatically via the unauthenticated agent-access flow (POST /v1/agent-access).

Path Parameters

sessionId
string<uuid>
required

The browser session ID

Query Parameters

extract
enum<string>
default:true

Whether a .zip upload is unpacked into the uploads directory. Defaults to true. Set to false to keep the archive itself so it can be attached to a file input as-is. Any other value is treated as true. Has no effect on non-zip files.

Available options:
true,
false

Body

multipart/form-data
file
file
required

File to upload to the browser session

Response

File uploaded successfully

data
object