---
title: "POST /api/kernel/instantiate"
method: POST
path: "/api/kernel/instantiate"
---

# POST /api/kernel/instantiate

`POST /api/kernel/instantiate`

## Headers

- `Marimo-Session-Id` string, required

## Request body

- InstantiateNotebookRequest
  - `autoRun` boolean
  - `codes` object, nullable
  - `objectIds` UIElementId[], required
  - `values` unknown[], required
    - unknown

## Response `200`

Instantiate a component. Only allowed in edit mode; in run mode, instantiation happens server-side automatically.

- SuccessResponse
  - `success` boolean

---

[API](https://skmtc.dev/marimo-team/apis/marimo-api.md) · [All operations](https://skmtc.dev/marimo-team/apis/marimo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marimo-team/marimo-api/revisions/a39082aac3ce/schema)
