cURL
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": "<string>", "message": "<string>" } }
Upload files directly to a browser session for use with web forms and file inputs.
Files are saved to the session’s uploads directory and can be referenced in CDP commands.
API key passed in the header
The browser session ID
File to upload to the browser session
File uploaded successfully
Show child attributes
Was this page helpful?