> ## 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.

# Cancel deployment

> Stop a Vercel deployment that is still building.

`cancelVercelDeployment` stops a deployment before it reaches a terminal state.

```ts automations/cancel-vercel-deployment.automation.ts theme={null}
import { automation } from "automate.ax"
import { cancelVercelDeployment } from "automate.ax/vercel"

export default automation("Cancel Vercel deployment", () => {
  const deployment = cancelVercelDeployment({ deploymentId: "dpl_123" })
  deployment.readyState
})
```

`deploymentId` is required. Optional `teamId` overrides the OAuth installation team, and optional `account` selects the binding. Vercel rejects deployments that are already ready, errored, or canceled. The output is the complete typed canceled-deployment response.
