Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / Trello

Trello

Kanban boards: list boards, lists and cards; create, move and comment on cards.

8 actions API key 5 read3 write Calls api.trello.com

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "trello" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Add comment to cardwritetrello.add_commentAdd a comment to a card.
InputTypeDescription
card_idstringRequiredCard id
textstringRequiredComment text
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.add_comment",
  input: {
    "card_id": "<card_id>",
    "text": "<text>"
  },
});
Create cardwritetrello.create_cardCreate a card in a list.
InputTypeDescription
list_idstringRequiredId of the list to add the card to
namestringOptionalCard title
descstringOptionalCard description
duestringOptionalDue date, ISO 8601
posstringOptionalPosition: top, bottom or a number
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.create_card",
  input: {
    "list_id": "<list_id>"
  },
});
Get boardreadtrello.get_boardGet one Trello board by id, with its name, description and url.
InputTypeDescription
board_idstringRequiredBoard id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.get_board",
  input: {
    "board_id": "<board_id>"
  },
});
Get cardreadtrello.get_cardGet one Trello card by id, with its list, due date and description.
InputTypeDescription
card_idstringRequiredCard id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.get_card",
  input: {
    "card_id": "<card_id>"
  },
});
List board cardsreadtrello.list_board_cardsList the cards on a board, with their list ids.
InputTypeDescription
board_idstringRequiredBoard id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.list_board_cards",
  input: {
    "board_id": "<board_id>"
  },
});
List board listsreadtrello.list_board_listsList the lists (columns) of a board.
InputTypeDescription
board_idstringRequiredBoard id
filterstringOptionalWhich lists
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.list_board_lists",
  input: {
    "board_id": "<board_id>"
  },
});
List my boardsreadtrello.list_my_boardsList the boards the authorized Trello user belongs to.
InputTypeDescription
filterstringOptionalWhich boards
fieldsstringOptionalComma-separated board fields, e.g. name,url
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.list_my_boards",
  input: {},
});
Move card to listwritetrello.move_cardMove a card to another list (and optionally change its position).
InputTypeDescription
card_idstringRequiredCard id
list_idstringRequiredId of the destination list
posstringOptionalPosition: top, bottom or a number
TypeScript
await setu.execute({
  userId: "user_1",
  action: "trello.move_card",
  input: {
    "card_id": "<card_id>",
    "list_id": "<list_id>"
  },
});