Read a Caveman Code session

GET /api/v1/code/sessions/{sessionId} on the Caveman Cloud control plane. Requires the code:read scope. Not exposed to autonomous agents: Caveman Code's registry is driven by the Code app and the runtimes it enrolls. An agent works inside a Code session and reaches its tree through the session mailbox, never by listing, starting or archiving workspaces or enrolling runtimes from a control-plane connection.

get/code/sessions/{sessionId}

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/sessions/{sessionId}
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: code:read
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Response

The session

idstring uuid required
organization_idstring uuid
workspace_idstring uuid required
computer_idstring uuid nullable
origin'person' | 'api' | 'automation' required
service_account_idstring uuid nullable
repostring
branchstring
enginestring
modelstring
titlestring
status'starting' | 'running' | 'requires_action' | 'idle' | 'terminated' required
stop_reason'end_turn' | 'requires_action' | 'budget_reached' | 'error' | 'interrupted' | 'null' nullable
created_atstring date-time required
updated_atstring date-time required
ended_atstring date-time nullable
metadataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.