---
title: "export data from tidb cluster"
method: POST
path: "/clusters/export"
tags: ["cluster export"]
---

# export data from tidb cluster

`POST /clusters/export`

export

## Request body

- MessageDataExportReq
  - `accessKey` string
  - `bucketUrl` string
  - `clusterId` string
  - `comment` string
  - `endpointUrl` string
  - `fileType` string
  - `filter` string
  - `password` string
  - `secretAccessKey` string
  - `sql` string
  - `storageType` string
  - `userName` string
  - `zipName` string

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `recordId` string
    - `workFlowId` string — Asynchronous task workflow ID
  - `message` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.net/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
