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

# Create text post

> Publish a self post with a Markdown body.

<Warning>
  Reddit connections are temporarily unavailable while Automate.ax awaits
  Reddit's approval for commercial Data API access. You can connect a Reddit
  account after the integration is approved and enabled.
</Warning>

`reddit.createTextPost` publish a self post with a Markdown body.

```ts automations/reddit-create-text-post.automation.ts theme={null}
import { automation } from "automate.ax"
import { reddit } from "automate.ax/reddit"

export default automation("Create text post", () => {
  const result = reddit.createTextPost({
    subreddit: "AutomateAx",
    title: "Weekly update",
    text: "What shipped this week...",
  })
})
```

## Inputs

Set `subreddit`, `title`, and optional `text`. Titles are capped at 300 characters. Optional fields select `flairId`, NSFW and spoiler state, and reply notifications. Compatible signals are accepted. Use the optional second argument `{ account }` to select a named Reddit binding.

## Output

Returns the new post's fullname, short ID, and URL. Submission is not automatically replayed after an ambiguous provider failure.
