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

> Create a rich Trello card or copy an existing card.

`createCard` adds a card to a list with optional dates, assignees, labels, location, attachment, or copied content.

```ts automations/create-trello-card.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { createCard } from "automate.ax/trello"

export default automation("Create Trello launch card", () => {
  onHttpRequest({ scope: "automation" })
  createCard({
    listId: "list-id",
    name: "Publish release",
    description: "Complete the launch checklist.",
    dueAt: "2026-09-01T17:00:00-07:00",
    labelIds: ["label-id"],
    memberIds: ["member-id"],
    position: "top",
  })
})
```

## Inputs

`listId` and non-empty `name` are required. Optional fields are `address`, `description`, `locationName`, `dueAt`, `startAt`, `dueComplete`, `labelIds`, `memberIds`, `position`, `sourceCard`, `keepFromSource`, `sourceUrl`, and `account`. Dates accept `Date` or an ISO timestamp with an offset. `position` accepts `"top"`, `"bottom"` (default), or a nonnegative number. `sourceCard` accepts an ID, short link, or URL. `keepFromSource` is an array containing `"all"`, `"attachments"`, `"checklists"`, `"comments"`, `"due"`, `"labels"`, `"members"`, `"none"`, or `"stickers"`. `sourceUrl` must be a valid URL.

## Output

Returns the created `TrelloCard`. Label and member inputs are stable IDs, not names. The connected account needs access to the destination list and any copied card.
