> ## Documentation Index
> Fetch the complete documentation index at: https://docs.okrapdf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export Document

> Download a pre-formatted export of a document.

## Overview

Returns a document export in the requested format. Does not require authentication for public documents.

## Request

<ParamField path="id" type="string" required>
  Document ID.
</ParamField>

<ParamField path="format" type="string" required>
  Export format: `snapshot`, `markdown`, `excel`, `docx`, or `audit`.
</ParamField>

<RequestExample>
  ```bash theme={null}
  curl https://api.okrapdf.com/exports/doc-abc123/markdown \
    -H "Authorization: Bearer okra_YOUR_KEY"
  ```
</RequestExample>

### Response (200)

Response content type varies by format:

* `snapshot` -- `application/json`
* `markdown` -- `text/markdown`
* `excel` -- `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
* `docx` -- `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
* `audit` -- `application/json`
