---
title: "Execute all cells in notebook"
method: POST
path: "/v1/instance/{instance_id}/notebook/{notebook_id}/execute"
tags: ["notebook"]
---

# Execute all cells in notebook

`POST /v1/instance/{instance_id}/notebook/{notebook_id}/execute`

## Path parameters

- `instance_id` string, required
- `notebook_id` string, required

## Headers

- `x-api-key` string, required

## Request body

- TypeExecuteCellRequest
  - `timeout` integer

## Response `200`

Successful Response

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

## 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)
