Skip to content

List panes

GET
/api/panes
Code sample: Shell / cURL
curl --request GET \
--url http://127.0.0.1:8004/api/panes \
--header 'Authorization: Bearer <token>'

Every pane, with its window and session

Media typeapplication/json
Array<object>

One pane with its window and session, for GET /api/panes and the tmux-style CLI. Fields are named like tmux format variables.

object
session_id
required
string format: uuid
session_name
required
string
window_id
required
string format: uuid
window_index
required
integer
window_name
required
string
window_active
required
boolean
window_zoomed_flag
required
boolean
pane_id
required
string format: uuid
pane_index
required

Layout order, as prefix + q numbers panes.

integer
pane_active
required
boolean
pane_current_path
string | null
pane_title
string | null
pane_dead
required

Its program exited; only a pane created with keep_open stays.

boolean
pane_dead_status

The program’s exit status, 128 + N if signal N ended it.

integer | null format: int32

Example generated

[
{
"session_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"session_name": "example",
"window_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"window_index": 1,
"window_name": "example",
"window_active": true,
"window_zoomed_flag": true,
"pane_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"pane_index": 1,
"pane_active": true,
"pane_current_path": "example",
"pane_title": "example",
"pane_dead": true,
"pane_dead_status": 1
}
]

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)