Codevisor Server
Api reference

POST Sessions

POST/v1/sessions

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

id?string|null
projectId*string
harnessId*string
harnessAccountId?string|null
agentSessionId?string|null
deferAgentSession?boolean|null
title?string|null
origin?|null
isArchived?boolean|null
worktreeName?string|null
createdAt?string|null
updatedAt?string|null

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/sessions" \  -H "Content-Type: application/json" \  -d '{    "projectId": "string",    "harnessId": "string"  }'
{  "id": "string",  "projectId": "string",  "serverId": "string",  "harnessId": "string",  "harnessAccountId": "string",  "agentSessionId": "string",  "title": "string",  "origin": "codevisor",  "isArchived": true,  "worktreeName": "string",  "cwd": "string",  "createdAt": "string",  "updatedAt": "string",  "usage": {    "used": 0,    "size": 0,    "costAmount": 0,    "costCurrency": "string"  }}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}