# Create a Board — Trello

> Create a new Trello board or copy from an existing one. See the documentation.

- Key: `trello-create-board`
- Type: Action (Write)
- Version: 0.2.8
- App: Trello (`trello`) — https://pipedream.com/apps/trello.md
- This page (HTML): https://pipedream.com/apps/trello/actions/create-board
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/trello/actions/create-board/create-board.mjs

## Description

Create a new Trello board or copy from an existing one. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-post).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | Yes | The new name for the board. 1 to 16384 characters long. |
| `defaultLabels` | `boolean` | No | Determines whether to use the default set of labels. |
| `defaultLists` | `boolean` | No | Determines whether to add the default set of lists to a board (To Do, Doing, Done). It is ignored if idBoardSource is provided. |
| `desc` | `string` | No | A new description for the board, 0 to 16384 characters long |
| `idOrganization` | `string` | Yes | The id or name of the team the board should belong to. Options are loaded from the connected account. |
| `idBoardSource` | `string` | No | The id of a board to copy into the new board. Options are loaded from the connected account. |
| `keepFromSource` | `string` | No | To keep cards from the original board pass in the value cards. |
| `powerUps` | `string` | No | The Power-Ups that should be enabled on the new board. One of: all, calendar, cardAging, recap, voting. |
| `prefsPermissionLevel` | `string` | No | The permissions level of the board. One of: org, private, public. |
| `prefsVoting` | `string` | No | Who can vote on this board. One of disabled, members, observers, org, public. |
| `prefsComments` | `string` | No | Who can comment on cards on this board. One of: disabled, members, observers, org, public. |
| `prefsInvitations` | `string` | No | Determines what types of members can invite users to join. One of: admins, members. |
| `prefsSelfJoin` | `boolean` | No | Determines whether users can join the boards themselves or whether they have to be invited. |
| `prefsCardCovers` | `boolean` | No | Determines whether card covers are enabled. |
| `prefsBackground` | `string` | No | The id of a custom background or one of: blue, orange, green, red, purple, pink, lime, sky, grey. |
| `prefsCardAging` | `string` | No | Determines the type of card aging that should take place on the board if card aging is enabled. One of: pirate, regular. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "trello",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "trello-create-board",
  arguments: {
    name: "Name",
    defaultLabels: true,
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "trello-create-board",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    trello: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    defaultLabels: true,
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "trello-create-board",
    "configured_props": {
      "trello": { "authProvisionId": "apn_xxxxxxx" },
      "name": "Name",
      "defaultLabels": true
    }
  }'
```

---

- App: https://pipedream.com/apps/trello.md · All apps: https://pipedream.com/apps
