> ## 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 scheduled email message

> Cancels one scheduled email before delivery.

`highlevel.cancelScheduledEmailMessage` cancels one scheduled email before delivery. Pass the `emailMessageId` returned by `highlevel.sendMessage` for an email.

```ts automations/highlevel-cancel-scheduled-email-message.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { highlevel } from "automate.ax/highlevel"

export default automation("Cancel scheduled email", () => {
  markSignificant(
    highlevel.cancelScheduledEmailMessage({
      emailMessageId: "ve9EPM428h8vShlRW1KT",
    }),
  )
})
```

## Input

| Field            | Type     | Required | Description                 |
| ---------------- | -------- | -------- | --------------------------- |
| `emailMessageId` | `string` | Yes      | Scheduled email message ID. |

Automate.ax supplies the connected sub-account's location ID. Optional second argument `{ account }` selects a named HighLevel binding.

## Output

| Field     | Type     | Required | Description                 |
| --------- | -------- | -------- | --------------------------- |
| `status`  | `number` | Yes      | HighLevel response status.  |
| `message` | `string` | Yes      | HighLevel response message. |

This action calls `DELETE /conversations/messages/email/{emailMessageId}/schedule` with HighLevel API version `2021-07-28` and requires `conversations/message.write`. HighLevel validation and permission errors fail the action. Rate limits honor the provider's retry timing.
