---
title: "Interrupt the running cell, like Ctrl-C. The context keeps its state."
method: POST
path: "/v1/sandboxes/{id}/interpreter/contexts/{context}:interrupt"
tags: ["interpreter"]
---

# Interrupt the running cell, like Ctrl-C. The context keeps its state.

`POST /v1/sandboxes/{id}/interpreter/contexts/{context}:interrupt`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/sandboxes/{id}/interpreter/contexts/{context}:interrupt`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: Resource identifier (UUID).
- `context` string, required: A context's id; each language's name is its default context, started on first use.

## Headers

- `Idempotency-Key` string

## Response `200`

Success

- object
  - `interrupted` boolean, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
