Upload campaign file
upload_campaign_attachmentAttach one file to a campaign the caller's organization owns: a PDF, a GIF, JPEG, PNG, or WebP image, a CSV, a JSON, or a plain text file, at most 4 MB, sent as base64. The campaign, the organization, and the user each have a file limit, and uploads per hour are limited; past either it returns a tool error naming the reason. A campaign outside the organization returns not_found. Needs a credential.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>",
"content": "<content>",
"contentType": "<contentType>",
"fileName": "<fileName>"
},
"name": "upload_campaign_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file bytes in base64, at most 4 MB once decoded | |
| fileName | Yes | The file name with its extension, such as brief.pdf | |
| campaignId | Yes | Campaign id from list_campaigns | |
| contentType | Yes | The media type of the file |