Add Attachment to Card

trello.add_attachment
ActionBusiness appsconnection required

Calls the Trello API with the connection's credentials.

Attach a URL to a card, optionally using it as the card's cover image.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Trello
Secret shape
{"api_key", "token"}
Resolved by
config.connection_id, else node.connection_id

Configuration

5 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
card_id
The id or short link of the card to attach to.
stringYes———
url
The URL to attach; it must start with http:// or https://.
stringYes—url format—
name
A display name for the attachment, up to 256 characters.
stringNo—≤ 256 characters—
mime_type
The attachment's MIME type, up to 256 characters, when Trello should not guess.
stringNo—≤ 256 characters—
set_cover
Whether the new attachment becomes the card's cover image.
booleanNofalse——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "set_cover": false
}

Output

One shape.

result

FieldTypeExample
id
The attachment's id.
string—
name
The attachment's display name.
string—
url
The attached URL.
string—
bytes
The attachment's size in bytes, or null for a link.
number—
date
When the attachment was added, ISO-8601.
string—
mimeType
The attachment's MIME type.
string—
isUpload
True when the file lives in Trello rather than at a URL.
boolean—
{
  "bytes": 0,
  "date": "",
  "id": "",
  "isUpload": false,
  "mimeType": "",
  "name": "",
  "url": ""
}

Notes

  • Only URL attachments are supported; Trello's file upload needs multipart/form-data.

See Add Attachment to Card run in a workflow.

In a technical demo we add the Trello connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.