Skip to main content
API reference sections

Schema

CreateSessionRequest

Type object

Shape

FieldTypeDescription
idempotency_keyrequiredIdempotencyKey
profilerequiredSessionProfileKey

Stable identity for a launch profile. Built-ins remain readable across machines; user-created profiles are opaque UUIDs.

parent_session_idTerminalSessionId or null
modeSessionMode

Raw remains the compatibility default. Managed creation is accepted only for a profile whose provider passes the rooted host handshake.

Default {"kind":"raw_pty"}

working_directoryrequiredstring

An absolute local path. The Agent-owned host validates it at spawn.

sizerequiredGridSize
Example
{
  "idempotency_key": "00000000-0000-4000-8000-000000000000",
  "profile": {
    "kind": "built_in",
    "value": "string"
  },
  "parent_session_id": "00000000-0000-4000-8000-000000000000",
  "mode": {
    "kind": "raw_pty"
  },
  "working_directory": "string",
  "size": {
    "columns": 0,
    "rows": 0
  }
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Used by

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.