Trello

Create cards, manage lists, and add comments in Trello boards.

ProductivityAPI key8 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (8)
  4. create_card
  5. get_card
  6. update_card
  7. add_card_attachment
  8. delete_card
  9. delete_card_attachment
  10. get_card_attachment
  11. get_card_attachments
  12. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("trello", action, input) resolves with the provider's answer and rejects when Trello isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "trello"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Trello when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellTrello = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Trello isn't connected.
  const output = await step.run("Trello", () =>
    step.ctx.integrations.invoke("trello", "create_card", {
      "board_id": "<board_id>",
      "list_id": "<list_id>",
      "name": "<task name>"
    }),
  );
  step.ctx.log("Trello answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "trello",
    "piece_action": "create_card",
    "input": {
      "board_id": "<board_id>",
      "list_id": "<list_id>",
      "name": "<task name>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/trello/create_card" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"board_id":"<board_id>","list_id":"<list_id>","name":"<task name>"}}'

Actions

create_card

Create Card. Create a new card in Trello

InputTypeDescription
board_idrequiredid (picked from your account)List of boards
list_idrequiredid (picked from your account)Get lists from a board
namerequiredtextThe name of the card to create
descriptionoptionallong textThe description of the card to create
positionoptionalone of "top" | "bottom"Place the card on top or bottom of the list
labelsoptionalids (picked from your account)Assign labels to the card

get_card

Get Card. Gets a card by ID.

InputTypeDescription
cardIdrequiredtextThe card ID

update_card

Update Card. Updates an existing card.

InputTypeDescription
card_idrequiredtextThe ID of the card to update
nameoptionaltextThe new name of the card
descriptionoptionallong textThe new description of the card
board_idoptionalid (picked from your account)List of boards
list_idoptionalid (picked from your account)Get lists from a board
positionoptionalone of "top" | "bottom"Move the card to a new position
labelsoptionalids (picked from your account)Assign labels to the card
closedoptionalbooleanArchive or unarchive the card
dueoptionaldate-time (ISO)Set a due date for the card

add_card_attachment

Add Card Attachment. Adds an attachment to a card.

InputTypeDescription
card_idrequiredtextThe ID of the card to add attachment to
attachmentrequiredfileAttachment File
nameoptionaltextAttachment Name
mime_typeoptionaltextMIME Type
set_coveroptionalbooleanSet this attachment as the card cover

delete_card

Delete Card. Deletes an existing card.

InputTypeDescription
card_idrequiredtextThe ID of the card to delete.

delete_card_attachment

Delete Card Attachment. Deletes an attachment from a card.

InputTypeDescription
card_idrequiredtextThe ID of the card
attachment_idrequiredtextThe ID of the attachment to delete

get_card_attachment

Get Card Attachment. Gets a specific attachment on a card.

InputTypeDescription
card_idrequiredtextThe ID of the card
attachment_idrequiredtextThe ID of the attachment to retrieve

get_card_attachments

Get All Card Attachments. Gets all attachments on a card.

InputTypeDescription
card_idrequiredtextThe ID of the card to get attachments from

Details

Id
trello
Category
Productivity
Tags
kanban, boards, cards, project-management
Package
@activepieces/piece-trello@0.4.4
Runs
Through the integration runner