Skip to content
WP Engine logo

Connectors / Developer tools · HTTP Connector

WP Engine integration and API

Create a site, create an install and create a domain in WP Engine. Connect WP Engine to the rest of your developer tools stack with Tray.ai.

What can you do with WP Engine on Tray.ai?

WP Engine is a managed WordPress hosting platform where agencies and businesses run sites, environments, domains, backups, and caching for their WordPress installs. Tray.ai connects to WP Engine through the HTTP Connector, so your workflows can call the WP Engine API alongside the rest of your stack.

  • Purge the cache when new content is published in your content system.
  • Create a backup before each release your engineering team ships.
  • Create an account user when a new agency staff member joins in your HR system.
Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://api.wpengineapi.com/v1

Set it up

Connect WP Engine to Tray.ai

Each step uses WP Engine's own API details, from its documentation.

Step 1

Save WP Engine's username and password

Save the credentials WP Engine gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.wpengineapi.com/v1 as the base URL. Or paste a cURL example from WP Engine's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List sites”

It's one of 22 documented actions, under Sites. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Create a site” and “Update a site” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with WP Engine

Connect WP Engine with GitHub, Okta and Slack

Each one uses actions and events from WP Engine's own API documentation.

Back up WP Engine installs before each GitHub release

When

A release is published in GitHub

Then

  1. Create a backup of the production install
  2. Purge the cache after the deploy

With GitHub

Add WP Engine account users from Okta

When

A user is added to the web team group in Okta

Then

  1. List account users to check for a match
  2. Create an account user

With Okta

Post a weekly WP Engine backup list to Slack

When

On a schedule

Then

  1. List installs
  2. List backups for each install
  3. Post the summary to the web team channel in Slack

With Slack

Apps you can build on WP Engine data

Internal tools your team can build with an AI assistant, each one using WP Engine calls from its API documentation.

Site and install inventory

Lists sites with their installs and domains so an agency sees every client environment in one view.

Backup and restore desk

Lists backups for an install and lets a developer create a backup or restore one.

Account user access review

Lists account users and lets an admin update roles or remove users who have left.

Give your AI agents WP Engine tools

Build an MCP server on WP Engine in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List sites
  • List installs
  • List domains
  • List backups
  • Purge the cache
  • List account users
  • Create a site
  • Update a site

What the WP Engine API covers

6 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Sites

  • List sites
  • Create a site
  • Update a site
  • Delete a site

Installs

  • List installs
  • Create an install
  • Update an install
  • Copy an install

Domains

  • List domains
  • Create a domain
  • Update a domain
  • Delete a domain

Backups

  • List backups
  • Create a backup
  • Restore a backup

Cache

  • Purge the cache
  • List cache exclusions
  • Replace cache exclusions

Account users

  • List account users
  • Create an account user
  • Update an account user
  • Delete an account user

Checked against WP Engine's own documentation on 2026-11-07

developers.wpengine.com/docs/managed-hosting-platform/api

Frequently asked questions

What can a Tray.ai workflow do in WP Engine?

+

The WP Engine API documents 22 actions across 6 resources (Sites, Installs, Domains, Backups, Cache, Account users). For example: List sites; List installs; List domains. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with WP Engine?

+

The WP Engine API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See WP Engine working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.