---
title: "Create pod terminal session"
method: GET
path: "/kapis/terminal.kubesphere.io/v1alpha2/namespaces/{namespace}/pods/{pod}/exec"
tags: ["Web Terminal"]
---

# Create pod terminal session

`GET /kapis/terminal.kubesphere.io/v1alpha2/namespaces/{namespace}/pods/{pod}/exec`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`

## Path parameters

- `namespace` string, required
- `pod` string, required

## Response `200`

OK

## Changes

- **2026-07-17** `0451c8cec9b1`: 3 info
  - api operation id `handleTerminalSession` removed and replaced with `create-pod-exec`
  - api tag `Web Terminal` added
  - api tag `Terminal` removed
- **2020-11-24** `0c93e009781f`: 1 info
  - endpoint added
- **2019-09-02** `6d6e730a2d14`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/kubesphere/apis/ks-api/changes/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/exec/get.md)

---

[API](https://skmtc.dev/kubesphere/apis/ks-api.md) - [All operations](https://skmtc.dev/kubesphere/apis/ks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubesphere/apis/ks-api/revisions/0451c8cec9b1?raw)
