---
title: "Stop Run Endpoint"
method: POST
path: "/auto-agent/run/{run_id}/stop"
tags: ["auto-agent"]
---

# Stop Run Endpoint

`POST /auto-agent/run/{run_id}/stop`

Stop a running Auto Agent by terminating its Modal sandbox.

Args:
    request: FastAPI request (required by rate limiter).
    run_id: UUID of the run to stop.
    auth: Authenticated user (ownership is enforced).

Raises:
    HTTPException: 404 if run not found, 400 if not running.

## Path parameters

- `run_id` string, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
