---
title: "Execute code without notebook"
method: POST
path: "/v1/instance/{instance_id}/code/execute"
tags: ["code"]
---

# Execute code without notebook

`POST /v1/instance/{instance_id}/code/execute`

## Path parameters

- `instance_id` string, required

## Headers

- `x-api-key` string, required

## Request body

- object
  - `code` string, required
  - `kernel_name` string
  - `timeout` integer

## Response `200`

Successful Response

- unknown

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