---
title: "Stage Attachment"
method: POST
path: "/attachments/stage"
---

# Stage Attachment

`POST /attachments/stage`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/attachments/stage`
- Auth: none declared

Stage an attachment for later association with a chat message.

Uploads file to temporary staged storage. Returns staged_id for use with
chat endpoint's staged_attachment_ids parameter. Staged files are promoted
to documents when the chat message is sent.

REQUIREMENT: Must return 200 within 2 seconds

Authentication: JWT required via Authorization header

Args:
    file: Single file to stage
    child_id: UUID of child this attachment belongs to

Returns:
    JSON with staged_id, filename and file_size for tracking

## Request body `multipart/form-data`

- BodyStageAttachmentAttachmentsStagePost
  - `file` string, binary, required
  - `child_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
