> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Archive sequence

> Archive an Apollo sequence and finish its current contacts.

`archiveSequence` archives a sequence selected by exact name, ID, or `{ id }`.

```ts automations/archive-apollo-sequence.automation.ts theme={null}
import { archiveSequence } from "automate.ax/apollo"
import { automation, onHttpRequest } from "automate.ax"

export default automation("Archive an Apollo sequence", () => {
  onHttpRequest({ scope: "automation" })
  archiveSequence({ sequence: { id: "sequence-id" } })
})
```

`sequence` is required and optional `account` selects the binding. Returns a
mutation receipt with `sequenceId`, steps, and provider state.

<Warning>
  Archiving finishes the sequence's current contacts. Use `deactivateSequence`
  when you intend only to pause an active sequence.
</Warning>
