Add Task Attachment
clickup.add_task_attachment
ActionBusiness appsconnection required
Calls the ClickUp API with the connection's credentials.
Upload a file and attach it to a task by its task id. The body is plain text, or a base64 blob from an upstream download node.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- ClickUp
- Secret shape
- the API token (pk_…), or {"token": "…"}
- Config it needs
- list_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
task_id The task id, e.g. '9hx' — the last segment of the task's URL. | string | Yes | — | — | — |
filename The name to store the attachment under, including its extension. | string | Yes | — | — | — |
body The file content — plain text, or a base64 blob when content_encoding is 'base64'. | string | Yes | — | — | — |
content_encoding Set to 'base64' when body is a base64 blob (e.g. from a download_archive node). Defaults to the upstream file's encoding, else text. | string | No | — | one of "text", "base64" | — |
content_type MIME type to send the part with, such as 'application/pdf'. Defaults to application/octet-stream for binary. | string | No | — | — | — |
custom_task_ids Treat task_id as the Workspace's custom task id (e.g. 'ABC-123') rather than ClickUp's own id. team_id becomes required when this is on. | boolean | No | false | — | — |
team_id The Workspace (team) id. Only needed — and then required — when custom_task_ids is on. | string | Conditional | — | only with custom_task_ids | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"custom_task_ids": false
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The attachment id ClickUp assigned. | string | — |
title The stored file name. | string | — |
extension The file extension ClickUp detected. | string | — |
url URL the attachment can be downloaded from. | string | — |
date Upload time as a Unix timestamp in milliseconds. | number | — |
{
"date": 0,
"extension": "",
"id": "",
"title": "",
"url": ""
}Notes
- The file is bounded by Mantle's inline-binary cap (MANTLE_BINARY_MAX_BYTES) as well as ClickUp's own attachment limit.
See Add Task Attachment run in a workflow.
In a technical demo we add the ClickUp connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.