MainWP

Free, Self-hosted, Open Source WordPress Management Plugin

Go to site
Explore
/
Apps
/
MainWP

MainWP API Integrations

Build and run workflows using the MainWP API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mainwp: {
      type: "app",
      app: "mainwp",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.mainwp.$auth.url}/wp-json/mainwp/v1/updates/available-updates`,
      params: {
        consumer_key: `${this.mainwp.$auth.customer_key}`,
        consumer_secret: `${this.mainwp.$auth.customer_secret}`,
      },
    })
  },
})

Authentication

MainWP uses API keys for authentication. When you connect your MainWP account, Pipedream securely stores the keys so you can easily authenticate to MainWP APIs in both code and no-code steps.

To retrieve your API keys,

  • Navigate to your WordPress site account and sign in
  • Go to your MainWP plugin menu
  • Go to “Settings” > “REST API”

The url field below is your WordPress site's domain where MainWP is installed.
For example, if you have a Wordpress.org site hosted at https://example.com, then enter example.com in the url field below.