SureTriggers is an automation platform that connects plugins and apps together. With over 200 integrations including MainWP, you can automate tasks like adding child sites from form submissions or syncing site data to external services.
What You’ll Learn
- How to connect MainWP Dashboard to SureTriggers
- How to create automation workflows
- Available MainWP triggers and actions
Prerequisites
- MainWP Dashboard with REST API access
- SureTriggers account
- WordPress site for form collection (if using form-based automation)
Use Case Example
This guide demonstrates adding a child site automatically when a client submits a form. The form collects site URL, admin username, and site title, then triggers MainWP to add the site.Connect MainWP to SureTriggers
Generate MainWP API Key
Set Up SureTriggers Connection
Install SureTriggers plugin
On your WordPress site (where forms are collected), install and activate the SureTriggers plugin.
Create the Contact Form
Use any SureTriggers-compatible form plugin (WS Form, Gravity Forms, WPForms, etc.).Create form fields
Add these required fields:
- Site URL (required)
- Admin username (required)
- Site title
Create the Workflow
Start a new workflow
In SureTriggers, go to Workflows and click Create New. Name the workflow and click Start Building.
Test trigger
Submit a test form entry. SureTriggers fetches the sample data to understand the form fields. Click Save.
Map form fields
Connect each form field to the corresponding MainWP field:
- Site URL → Site URL
- Admin username → Administrator username
- Site title → Site name
@ to see available data points from the form submission.Test the Integration
Available Triggers and Actions
| Type | Event |
|---|---|
| Trigger | New Site Connected |
| Action | Add New Site |
| Action | Disconnect Site |
| Action | Remove Site |
| Action | Suspend Site |
| Action | Unsuspend Site |
Automation Ideas
| Workflow | Trigger | Action |
|---|---|---|
| Add client sites | Form submission | Add New Site |
| Track new sites | New Site Connected | Add row to Google Sheet |
| Suspend for non-payment | Payment failed webhook | Suspend Site |
| Notify on new site | New Site Connected | Send Slack/email notification |
Self-Check Checklist
- MainWP REST API key generated with full permissions
- SureTriggers plugin installed and authorized
- MainWP Dashboard connected to SureTriggers
- Contact form created with required fields
- Workflow trigger configured and tested
- Action mapped to correct form fields
- Workflow published and tested end-to-end
Related Resources
- REST API Overview - API documentation
- WP-CLI Commands - Command-line automation