Skip to content

List a pane's listening ports

GET
/api/panes/{pane_id}/ports
Code sample: Shell / cURL
curl --request GET \
--url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ports \
--header 'Authorization: Bearer <token>'

The TCP ports that the pane’s programs listen on, including its popups’, as btmux forward can forward them.

pane_id
required
string format: uuid

Pane ID

The listeners, by port

Media typeapplication/json
Array<object>
object
port
required
integer format: int32
address
required

The address it listens on, such as 127.0.0.1 or 0.0.0.0.

string
pid
integer | null format: int32
process

The listening process’s name.

string | null

Example generated

[
{
"port": 1,
"address": "example",
"pid": 1,
"process": "example"
}
]

A malformed ID

Media typetext/plain
string

Missing or wrong access token

Media typetext/plain
string

The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)

No such pane

The pane is in a sandboxed session

Media typetext/plain
string