---
title: "Upload Attachment"
method: POST
path: "/v1/attachments/upload"
tags: ["v1", "attachments"]
---

# Upload Attachment

`POST /v1/attachments/upload`

## Request

- Base URL: `https://api.superdocs.app`
- URL: `https://api.superdocs.app/v1/attachments/upload`
- Auth: HTTP bearer

Upload a document attachment to a session for AI reference.

The file is processed asynchronously — text is extracted, converted, and indexed
so the AI can search and reference it during chat. Use GET /v1/attachments/status/{session_id}
to check processing progress.

Supported file types: .pdf, .docx, .txt, .rtf, .md, .html, .htm, .tex (plus .zip LaTeX project archives) (max 50 MB).
Returns a job_id for tracking the processing status.

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/superdocs/apis/universal-document-ai-api.md) · [All operations](https://skmtc.dev/superdocs/apis/universal-document-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superdocs/apis/universal-document-ai-api/revisions/37d03122940b?raw)
