---
title: "Export a document as markdown"
method: POST
path: "/documents.export"
tags: ["Documents"]
---

# Export a document as markdown

`POST /documents.export`

## Request body

- object
  - `id` string — Unique identifier for the document. Either the UUID or the urlId is acceptable.

## Response `200`

OK

- object
  - `data` string — The document content in Markdown formatting

## Other responses

- `401` — The API key is missing or otherwise invalid.
- `403` — The current API key is not authorized to perform this action.
- `404` — The specified resource was not found.

---

[API](https://skmtc.dev/defaulr/apis/outline-api.md) · [All operations](https://skmtc.dev/defaulr/apis/outline-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/defaulr/outline-api/revisions/be4f4b1ba5e8/schema)
