JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.pty.list({
...
})[
{
"id": "<string>",
"title": "<string>",
"command": "<string>",
"args": [
"<string>"
],
"cwd": "<string>",
"status": "running",
"pid": 123
}
]API Reference
List PTY sessions
Get a list of all active pseudo-terminal (PTY) sessions managed by Cognitio.
GET
/
pty
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.pty.list({
...
})[
{
"id": "<string>",
"title": "<string>",
"command": "<string>",
"args": [
"<string>"
],
"cwd": "<string>",
"status": "running",
"pid": 123
}
]