Skip to content

List sessions

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

Every session

Media typeapplication/json
Array<object>

One entry per session for the StatusBar and the session picker.

object
id
required
string format: uuid
name
required
string
runtime
required

Where a session’s shells run.

One of:
object
type
required
string
Allowed values: local

Example

[
{
"runtime": {
"type": "local"
}
}
]

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)