Codevisor Docs
Api reference

GET Workspace Snapshot

GET/v1/workspace-snapshot

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspace-snapshot"
{  "workspaces": [    {      "id": "string",      "serverId": "string",      "projectId": "string",      "name": "string",      "hasCustomName": true,      "rootDirectory": "string",      "isArchived": true,      "archivedAt": "string",      "createdAt": "string",      "updatedAt": "string",      "sidebarPosition": "string",      "sidebarOrderRevision": 0,      "labels": {        "property1": "string",        "property2": "string"      },      "git": {        "branch": "string",        "detachedHead": "string",        "pullRequest": {          "number": 0,          "title": "string",          "state": "open",          "isDraft": true,          "url": "string",          "checks": "passing"        }      },      "mainSessionId": "string",      "defaultCheckoutId": "string"    }  ],  "panes": [    {      "id": "string",      "workspaceId": "string",      "providerId": "string",      "paneType": "string",      "title": "string",      "resourceKind": "string",      "resourceId": "string",      "resourceServerId": "string",      "checkoutId": "string",      "metadata": "string",      "liveTitle": "string",      "terminalActivity": "working",      "revision": 0,      "position": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "checkouts": [    {      "id": "string",      "serverId": "string",      "projectId": "string",      "path": "string",      "worktreeId": "string",      "worktreeName": "string",      "git": {        "branch": "string",        "detachedHead": "string",        "pullRequest": {          "number": 0,          "title": "string",          "state": "open",          "isDraft": true,          "url": "string",          "checks": "passing"        }      },      "createdAt": "string",      "updatedAt": "string",      "retiredAt": "string"    }  ]}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}