---
title: "Stop And Archive Bot"
method: POST
path: "/bot-orchestration/stop-and-archive-bot/{bot_name}"
tags: ["Bot Orchestration"]
---

# Stop And Archive Bot

`POST /bot-orchestration/stop-and-archive-bot/{bot_name}`

Gracefully stop a bot and archive its data in the background.
This initiates a background task that will:
1. Stop the bot trading process via MQTT
2. Wait 15 seconds for graceful shutdown
3. Monitor and stop the Docker container
4. Archive the bot data (locally or to S3)
5. Remove the container

Returns immediately with a success message while the process continues in the background.

## Path parameters

- `bot_name` string, required

## Query parameters

- `skip_order_cancellation` boolean
- `archive_locally` boolean
- `s3_bucket` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.net/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/5347fe79537f/schema)
