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

# Execute a websocket on pod

`GET /websocket/pod`

The request will be upgraded to the websocket protocol.
**Access policy**: authenticated

## Query parameters

- `endpointId` integer, required
- `namespace` string, required
- `podName` string, required
- `containerName` string, required
- `command` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal 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)
