# List MatrixOne destination table names

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

With a MatrixOne connector and database, returns destination table-name strings. Successful reads do not establish that exported data was written.


```http
POST https://api.moi.matrixorigin.cn/v5/connectors/mo/database/table/list
```

## Before you call this API

Set `BASE_URL` to the product API prefix `https://api.moi.matrixorigin.cn/v5`. For private deployments, use the corresponding product API URL.

[Prepare the connector and identity in the same environment](objects.md#prepare). Example IDs/databases/results are fixed illustrative values. Current source does not mark these six paths deprecated; public scope and actual deployment still require verification.

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl --request POST \
  "$BASE_URL/connectors/mo/database/table/list" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID" \
  --header "Content-Type: application/json" \
  --data '{"connector_id": "target-connector", "database": "target_db"}'
```

:::::
:::::{tab-item} Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `connector_id` | string | Yes | Saved connector ID usable by the current identity. |
| `database` | string | Yes | Selected database name. |

:::::
::::::
:::::::

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "tables": [
      "orders_target"
    ]
  }
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | OK on success. Do not check HTTP200 alone. |
| `msg` | string | Response description. |
| `data` | object | [Legacy response objects](objects.md#responses). |

:::::
::::::
:::::::

## Errors and protocol selection

Choose the call path after [Comparing metadata protocols](protocol-comparison.md). Parameter locations and response shapes are not interchangeable. See [Errors and empty results](objects.md#errors) for error handling.
