POST
/
v1
/
sessions
/
{sessionId}
/
uploads
Upload Files
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions/{sessionId}/uploads \
  --header 'Content-Type: multipart/form-data' \
  --header 'anchor-api-key: <api-key>' \
  --form file=@example-file
{
  "data": {
    "status": "success",
    "message": "File saved at /uploads/example.txt"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

sessionId
string<uuid>
required

The browser session ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

multipart/form-data

Response

200
application/json

File uploaded successfully

The response is of type object.