---
title: "Upload Multiple Files"
method: POST
path: "/api/files/upload-multiple"
tags: ["files"]
---

# Upload Multiple Files

`POST /api/files/upload-multiple`

Upload multiple files and optionally create a task (new format)

Args:
    files: List of uploaded files
    task_type: Type of task (e.g., "general")
    message: Optional message to include with the task
    task_id: Optional task ID to organize files in task-specific folder
    folder: Optional folder name within task directory (e.g., "input", "output")

Returns:
    Upload result with file info and optional task ID

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/66a05609bfdd/schema)
