---
title: "create session"
method: POST
path: "/dataapps/sqleditor/{cluster_id}/session"
tags: ["sqleditor"]
---

# create session

`POST /dataapps/sqleditor/{cluster_id}/session`

create session result

## Path parameters

- `cluster_id` string, required

## Request body

- SqleditorCreateSessionReq
  - `clusterID` string
  - `database` string

## Response `200`

OK

- SqleditorCreateSessionRes
  - `sessionID` string

---

[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)
