Agentic capabilities

Upload Agent Resources

Changed on

Upload 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.

post/v1/sessions/{sessionId}/agent/files

Request

  • Base URL
    https://api.anchorbrowser.io
  • Auth
    API key in header anchor-api-key

Path parameters

sessionIdstring uuid required

The browser session ID

Query parameters

extract'true' | 'false'

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

filestring binary required

File to upload as agent resource (ZIP files are extracted unless extract=false)

Response

Agent resources uploaded successfully

Changes

    • info

      added the new optional query request parameter extract

    • info

      added the optional property / to the response with the status