---
title: "Execute a websocket on kubectl shell pod"
method: GET
path: "/websocket/kubernetes-shell"
tags: ["websocket"]
---

# Execute a websocket on kubectl shell pod

`GET /websocket/kubernetes-shell`

The request will be upgraded to the websocket protocol. The request will proxy input from the client to the pod via long-lived websocket connection.
**Access policy**: authenticated

## Query parameters

- `endpointId` integer, required

## Response `200`

Success

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — Environment not found
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
