Trello
Create cards, manage lists, and add comments in Trello boards.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("trello", "create_card", {
"board_id": "<board_id>",
"list_id": "<list_id>",
"name": "<task name>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Trello answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "trello-create-card",
name: "Trello: Create Card",
description: "Calls Trello when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("trello", {
"action": "create_card",
"board_id": "<board_id>",
"list_id": "<list_id>",
"name": "<task name>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});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_cardin catalog
Create Card. Create a new card in Trello
| Input | Type | Description |
|---|---|---|
board_idrequired | id (picked from your account) | List of boards |
list_idrequired | id (picked from your account) | Get lists from a board |
namerequired | text | The name of the card to create |
descriptionoptional | long text | The description of the card to create |
positionoptional | one of "top" | "bottom" | Place the card on top or bottom of the list |
labelsoptional | ids (picked from your account) | Assign labels to the card |
get_cardin catalog
Get Card. Gets a card by ID.
| Input | Type | Description |
|---|---|---|
cardIdrequired | text | The card ID |
update_cardin catalog
Update Card. Updates an existing card.
| Input | Type | Description |
|---|---|---|
card_idrequired | text | The ID of the card to update |
nameoptional | text | The new name of the card |
descriptionoptional | long text | The new description of the card |
board_idoptional | id (picked from your account) | List of boards |
list_idoptional | id (picked from your account) | Get lists from a board |
positionoptional | one of "top" | "bottom" | Move the card to a new position |
labelsoptional | ids (picked from your account) | Assign labels to the card |
closedoptional | boolean | Archive or unarchive the card |
dueoptional | date-time (ISO) | Set a due date for the card |
add_card_attachment
Add Card Attachment. Adds an attachment to a card.
| Input | Type | Description |
|---|---|---|
card_idrequired | text | The ID of the card to add attachment to |
attachmentrequired | file | Attachment File |
nameoptional | text | Attachment Name |
mime_typeoptional | text | MIME Type |
set_coveroptional | boolean | Set this attachment as the card cover |
delete_card
Delete Card. Deletes an existing card.
| Input | Type | Description |
|---|---|---|
card_idrequired | text | The ID of the card to delete. |
delete_card_attachment
Delete Card Attachment. Deletes an attachment from a card.
| Input | Type | Description |
|---|---|---|
card_idrequired | text | The ID of the card |
attachment_idrequired | text | The ID of the attachment to delete |
get_card_attachment
Get Card Attachment. Gets a specific attachment on a card.
| Input | Type | Description |
|---|---|---|
card_idrequired | text | The ID of the card |
attachment_idrequired | text | The ID of the attachment to retrieve |
get_card_attachments
Get All Card Attachments. Gets all attachments on a card.
| Input | Type | Description |
|---|---|---|
card_idrequired | text | The 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- Tier
- Built in