thincms_create_integration
Set up a new email platform integration for a site, supporting ActiveCampaign, Kit, Mailchimp, and GoHighLevel. Provide platform, name, and platform-specific configuration.
Instructions
Configure a new email platform integration (one per site). Platform: activecampaign, kit, mailchimp, gohighlevel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | User-facing label (e.g. 'My ActiveCampaign') | |
| config | Yes | Platform-specific config. ActiveCampaign: { apiUrl, apiKey, listId, fromEmail?, fromName?, addressId? }. GoHighLevel: { apiKey (Private Integration Token), locationId, listId? (a Workflow ID enrolled on submission) } — note GoHighLevel has no lists and email campaigns are managed inside GoHighLevel, not via ThinCMS campaigns. | |
| siteId | No | Override the active site for this single call. Pass to target a specific tenant without mutating shared active-site state — the right pattern when running concurrent agent sessions managing different tenants. Must match a siteId from your THINCMS_SITES config (use thincms_list_sites to inspect). When omitted, the call uses the active site set by thincms_switch_site. | |
| platform | Yes | Platform identifier (e.g. 'activecampaign') | |
| confirmProductionWrite | No | Acknowledge that this call may write to a configured production site (THINCMS_PRODUCTION_SITE_IDS env var). Required for any POST/PUT/PATCH/DELETE against a production-listed site; ignored otherwise. The error message lists which site triggered the requirement and recommends thincms_snapshot before any production write. |