---
title: "import data to tidb cluster"
method: POST
path: "/clusters/import"
tags: ["cluster import"]
---

# import data to tidb cluster

`POST /clusters/import`

import

## Request body

- MessageDataImportReq
  - `accessKey` string
  - `bucketUrl` string
  - `clusterId` string
  - `comment` string
  - `endpointUrl` string
  - `password` string
  - `recordId` string
  - `secretAccessKey` string
  - `storageType` string
  - `userName` 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)
