DorkOS
ApiSessionsSessionidCanvas

Everything on this session’s canvas

GET
/api/sessions/{sessionId}/canvas

The documents open in this session's right panel, pinned first then most recently active — the same table on every device you open the session on. The stream is how an app stays current, not this route: a cold GET /api/sessions/{sessionId}/events carries the whole canvas in its snapshot and every later change arrives as a canvas event. This exists for a cold read without a stream.

Authorization

__Secure-better-auth.session_token<token>

The sign-in cookie a browser gets when a person signs in to DorkOS. An installed DorkOS on port 4242 names it __Secure-better-auth.session_token. On any other port the prefix carries a suffix for its data folder (better-auth-<hash>), and a development server leaves off __Secure-. From this computer, an operation that takes the sign-in cookie or a personal API key needs neither while "Ask for a password on this computer too" is off, which is how DorkOS installs (dorkos auth enable turns it on). A request from another device needs one, with one exception for now: a browser reaching a Docker container through its published port, while the container runs with DORKOS_ALLOW_INSECURE_BIND and has no owner account yet.

In: cookie

Path Parameters

sessionId*string
Length1 <= length

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/sessions/string/canvas"
{  "documents": [    {      "id": "string",      "scope": "string",      "roomId": "string",      "content": {        "type": "url",        "url": "http://example.com",        "title": "string"      },      "channel": {        "routes": [          {            "id": "string",            "on": "string",            "to": "log",            "turn": {              "mode": "none"            },            "coalescibleTypes": [              "string"            ]          }        ]      },      "title": "string",      "contentType": "string",      "authorId": "string",      "pinned": true,      "rev": 0,      "lastTouchedBy": "string",      "lastTouchedAt": "string",      "editingBy": "string",      "sourceLabel": "string",      "treeKind": "room-main",      "aheadOfMain": 0,      "openedAt": "string",      "lastActiveAt": "string",      "threadRootEntryId": "string",      "openedBy": {        "extensionId": "string"      }    }  ]}