Upload File

keap.upload_file
ActionCRM & salesconnection required

Calls the Keap API with the connection's credentials.

Upload a base64-encoded file into the Keap file box, optionally attaching it to a contact record.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Keap
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"}
Config it needs
base_url, default_user_id
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
file_name
The name to store the file under, including its extension.
stringYes——welcome.pdf
file_data
The file's bytes, base64-encoded — the same shape Mantle's file nodes emit as file_content.
stringYes——{{ $json.file_content }}
contact_id
Attach the file to this Keap contact; required for a CONTACT association.
stringNo——12345
file_association
Whether the file belongs to a contact, a user or the company.
stringNo—one of "CONTACT", "USER", "COMPANY"—
is_public
Make the file publicly viewable in Keap.
booleanNofalse——

Example configuration

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

{
  "contact_id": "12345",
  "file_data": "{{ $json.file_content }}",
  "file_name": "welcome.pdf",
  "is_public": false
}

Output

One shape.

result

FieldTypeExample
file_descriptor
Keap's descriptor for the stored file.
object—
file_name
The name Keap stored the file under.
string—
file_size
The stored size in bytes, as Keap reported it.
number—
download_url
Keap's download URL for the file.
string—
contact_id
The contact it was attached to, when one was.
number—
{
  "contact_id": 0,
  "download_url": "",
  "file_descriptor": {},
  "file_name": "",
  "file_size": 0
}

See Upload File run in a workflow.

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