---
title: "Upload Agent Resources"
method: POST
path: "/v1/sessions/{sessionId}/agent/files"
tags: ["Agentic capabilities"]
---

# Upload Agent Resources

`POST /v1/sessions/{sessionId}/agent/files`

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

## Path parameters

- `sessionId` string, uuid, required

## Response `200`

Agent resources uploaded successfully

- object
  - `data` object
    - `status` string
    - `message` string

## Other responses

- `400` — Invalid request (no resource uploaded or file too large)
- `404` — Session not found
- `500` — Failed to upload or process agent resources

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) · [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchorbrowser/anchorbrowser-api/revisions/d0f5aa64f9f4/schema)
