> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/llms.txt
> - v0: https://docs.butterix.com/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# 可导出的内容

`GET /sites/{site}/export`

线上版本的语言、版本、标签页与分组，以及各有多少页。还没有可导出的内容时 `outline` 为 `null`。

Base URL: https://api.butterix.com/v1

Authentication: bearer token in Authorization header or API key in cookie `biti_session`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `site` | string | yes | 站点 slug 或 id |

## Example request

```bash
curl https://api.butterix.com/v1/sites/acme-payments/export \
     -H "Authorization: Bearer <token>"
```

## Responses

### 200

可导出的内容

Content type: `application/json`

| Field | Type | Required | Description |
|---|---|---|---|
| `outline` | object | no | May be null. |
| `outline.title` | string | no |  |
| `outline.variants` | list of objects | no |  |
| `outline.variants[].key` | string | no |  |
| `outline.variants[].locale` | string | no |  |
| `outline.variants[].version` | string | no |  |
| `outline.variants[].product` | string | no |  |
| `outline.variants[].default` | boolean | no |  |
| `outline.variants[].pages` | integer | no |  |
| `outline.variants[].tabs` | list of objects | no |  |
| `outline.variants[].tabs[].id` | string | no |  |
| `outline.variants[].tabs[].title` | string | no |  |
| `outline.variants[].tabs[].pages` | integer | no |  |
| `outline.variants[].tabs[].sections` | list of objects | no |  |

### Example response (200)

```json
{
  "outline": {
    "title": "Acme",
    "variants": [
      {
        "key": "zh||v1",
        "locale": "zh",
        "version": "v1",
        "product": "string",
        "default": true,
        "pages": 194,
        "tabs": [
          {
            "id": "guides",
            "title": "指南",
            "pages": 44,
            "sections": [
              {}
            ]
          }
        ]
      }
    ]
  }
}
```
