create_contact | Create a contact. Args: email (string, required); firstName, lastName, source, userGroup, userId (strings); subscribed (boolean); mailingLists (object { mailingListId: boolean }, ids from list_mailing_lists); properties (object of custom property name → string | number | boolean, names from list_contact_properties). |
create_contact_property | Create a custom contact property. Args: name (string, camelCase, e.g. “planName”); type (one of “string”, “number”, “boolean”, “date”). |
send_event | Send an event to trigger workflows for a contact. Args: eventName (string, required); email or userId (string, at least one); eventProperties (object of string | number | boolean values, available in the emails sent); mailingLists (object { mailingListId: boolean }); contactProperties (object of contact property name → string | number | boolean, updated on the contact); idempotencyKey (string, max 100 chars, avoids duplicates). |
send_transactional_email | Send a transactional email from a published template. Args: transactionalId (string, required, from list_transactional_emails); email (string, required, recipient); addToAudience (boolean, creates the contact if missing); dataVariables (object of template variable name → string | number, or array for array blocks); idempotencyKey (string, max 100 chars, avoids duplicate sends). Attachments are not supported. |
update_contact | Update a contact by email or userId (at least one; creates the contact if none matches). To change an email, pass userId plus the new email. Args: email, userId (strings); firstName, lastName, source, userGroup (strings); subscribed (boolean — omit unless (un)subscribing); mailingLists (object { mailingListId: boolean }); properties (object of custom property name → string | number | boolean). |