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

# List scheduled messages

> List pending messages scheduled through the connected Slack account.

`slack.listScheduledMessages` lists pending messages created with the same Slack token.

## Example

```ts automations/list-scheduled-messages.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("List scheduled messages", () => {
  onDashboardRun({ title: "List scheduled messages" })

  slack.listScheduledMessages({ conversationId: "C01234567", limit: 20 })
})
```

## Inputs

| Input            | Type     | Required | Description                           |
| ---------------- | -------- | -------- | ------------------------------------- |
| `conversationId` | `string` | No       | Restrict results to one conversation. |
| `cursor`         | `string` | No       | Cursor from the preceding page.       |
| `oldest`         | `number` | No       | Earliest scheduled Unix timestamp.    |
| `latest`         | `number` | No       | Latest scheduled Unix timestamp.      |
| `limit`          | `number` | No       | Maximum results to request.           |

## Output

Returns `scheduledMessages` with IDs, conversation IDs, text, creation times, post times, and blocks, plus `nextCursor` when another page exists.
