---
title: "Create new notebook"
method: POST
path: "/v1/instance/{instance_id}/notebook/create"
tags: ["notebook"]
---

# Create new notebook

`POST /v1/instance/{instance_id}/notebook/create`

## Path parameters

- `instance_id` string, required

## Headers

- `x-api-key` string, required

## Request body

- object
  - `name` string, required
  - `kernel_name` string

## Response `200`

Successful Response

- TypeNotebook
  - `id` string, required
  - `name` string, required
  - `kernel_name` string, required
  - `cells` TypeNotebookCell[], required
    - `id` string, required
    - `type` 'code' | 'markdown' | 'raw', required
    - `content` string, required
    - `metadata` object
    - `outputs` object[]
    - `execution_count` integer
  - `metadata` object

## Other responses

- `422` — Validation Error

---

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