---
title: "Run bash actions"
method: POST
path: "/v1/instance/{instance_id}/bash"
tags: ["instance"]
---

# Run bash actions

`POST /v1/instance/{instance_id}/bash`

## Path parameters

- `instance_id` string, required

## Headers

- `x-api-key` string, required

## Request body

- object
  - `command` string
  - `session` integer
  - `restart` boolean
  - `list_sessions` boolean
  - `check_session` integer
  - `timeout` number, double

## Response `200`

Successful Response

- TypeBashResponse — Response model for bash actions.
  - `output` string
  - `error` string
  - `base64_image` string
  - `system` string

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