Skip to main content
POST
Create a new kernel context

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Machine ID (e.g. mch_a1b2c3d4)

Body

application/json
language
string
default:python3
cwd
string

Working directory for the kernel. Must be an absolute machine path such as /workspace/project, /tmp/notebooks, /data/notebooks, or /context/demo where present. Values are normalized before kernel startup, must resolve to an existing directory in the running machine, and reserved runtime paths under /workspace/.nullspace are rejected.

Response

Context created

id
string
required
language
string
required
cwd
string
required

Normalized kernel working directory for this context.