---
title: "Export Doc"
method: POST
path: "/reports/export-doc"
tags: ["reports"]
---

# Export Doc

`POST /reports/export-doc`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/reports/export-doc`
- Auth: API key in header `X-Agent-Key`

Export an analysis report as a Google Doc.

Creates the doc in the user's own Google Drive using their OAuth
refresh token (same one used for GSC access).

## Query parameters

- `email` string, nullable

## Request body

- ExportDocRequest
  - `url` string, required
  - `report_data` object, required
  - `site_id` string, nullable

## Response `200`

Successful Response

- ExportDocResponse
  - `doc_id` string, required
  - `doc_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
