---
title: "Stop a sequence (header stop; sent history preserved)"
method: POST
path: "/sequences/{sequenceId}/stop"
tags: ["Sequences"]
---

# Stop a sequence (header stop; sent history preserved)

`POST /sequences/{sequenceId}/stop`

Branches: nothing-to-stop (fresh draft) / stopped / noop (already
stopped). `?dryRun=true` reports the would-be effect with no writes.

## Query parameters

- `dryRun` boolean

## Headers

- `Idempotency-Key` string

## Response `200`

{ sequenceId, action } — or the dryRun report.

## Other responses

- `404` — SEQUENCE_NOT_FOUND.

---

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