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

# On card restored

> Run an automation after a Trello card is restored.

`trello.onCardRestored` matches an `updateCard` action whose `closed` state changes from `true` to `false`.

```ts automations/watch-trello-restores.automation.ts theme={null}
import { automation } from "automate.ax"
import { trello } from "automate.ax/trello"

export default automation("Watch restored Trello cards", () => {
  trello.onCardRestored({ board: "board-id" })
})
```

Provide `board` as an ID, short link, or URL. Optional static `account` defaults to the project binding.

Returns the [shared Trello card event shape](/reference/integrations/trello/triggers/on-card-created#trigger-data) with `actionType: "updateCard"` and `card.closed: false`. The action also matches `trello.onCardUpdated`.
