Upload Agent Resources
Changed onUpload files as agent resources to a browser session using multipart/form-data. If you upload a ZIP file, it will be automatically extracted and the files will be made available as agent resources (pass extract=false to keep the archive itself instead). If you upload a single file, it will be saved directly as an agent resource. Resources are then accessible to AI agents for task completion and automation.
Request
- Base URLhttps://api.anchorbrowser.io
- AuthAPI key in header anchor-api-key
Path parameters
The browser session ID
Query parameters
Whether a .zip upload is unpacked into the uploads directory. Defaults to true. Set to false to keep the archive itself. Any other value is treated as true. Has no effect on non-zip files.
Request body multipart/form-data
Response
Agent resources uploaded successfully
Changes
- info
added the new optional
queryrequest parameterextract - info
added the optional property
/to the response with the status
- info