---
title: "Attach To Page"
method: POST
path: "/agent/documents/{doc_id}/attach"
---

# Attach To Page

`POST /agent/documents/{doc_id}/attach`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/agent/documents/{doc_id}/attach`
- Auth: none declared

Upload (base64/url) or reuse (asset_id) a file and place it in the page as
one block — an embed for images, a file card otherwise (as_="auto"). Returns
{asset_id, block_id, markdown, kind, placed_as[, caption_block_id]}.

## Path parameters

- `doc_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/wunel/apis/wunel-api.md) · [All operations](https://skmtc.dev/wunel/apis/wunel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wunel/apis/wunel-api/revisions/872fe0687a60?raw)
