---
title: "Write images into a running session's worktree and return their paths"
method: POST
path: "/api/v1/sessions/{sessionId}/attachments"
tags: ["sessions"]
---

# Write images into a running session's worktree and return their paths

`POST /api/v1/sessions/{sessionId}/attachments`

## Path parameters

- `sessionId` string, required — Session identifier, e.g. project-1.

## Request body

- StageSessionAttachmentsRequest
  - `attachments` ControllersSpawnAttachmentInput[], required
    - `data` string, required
    - `mimeType` string

## Response `201`

Created

- StageSessionAttachmentsResponse
  - `paths` string[], required
  - `sessionId` string, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error
- `501` — Not Implemented

---

[API](https://skmtc.net/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.net/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/versions/0754881ee8f4/schema)
