[Go to site: main page, start]

WP Engine Hosting API

Tags:

Key Takeaways

  • WP Engine API enables programmatically interacting with the platform. Users can generate API credentials per account to manage tasks like listing accounts, adding users, and creating backups.

  • Certain tasks like managing SSL and themes cannot be done via WP Engine API. This limitation requires manual intervention for specific account actions.

  • User access in the WP Engine User Portal dictates API call permissions. Understanding roles and permissions is crucial for effective API utilization.

  • Explore API code samples for practical implementation. Developers can refer to code samples for seamless integration and efficient API usage.

The WP Engine API allows you the ability to interact with our platform programmatically. API credentials need to be generated on a per-user basis. In this article, we will show you how to enable the WP Engine API on your account and how to generate your own API credentials.

To enable the API for your account, you must be an account Owner. For more information on User Portal roles, check out this guide.

  1. Log in to the User Portal
  2. If you have access to more than one account, use the account switcher at the top of the sidebar to select the appropriate account.
  3. Go to the Settings menu in the left sidebar.
  4. Scroll down to the API access section and toggle the button to the On position.
  1. In the User Portal, dropdown the Users menu in the sidebar and select API Access.
  2. Click the Generate Credentials button in the top right of the page.
    • This will generate your user credentials required to connect to WP Engine’s API, for all of your accounts that have API access enabled.
  3. In the popup window, copy the API Username and API Password.
    • Your password will only be shown once and is not stored by WP Engine, so be sure to save it somewhere safe.

Finally, go to https://developers.wpengine.com/docs/managed-hosting-platform/api to learn how to authenticate with the API and learn more about the endpoints available.

Information

Note

Users can only make API calls to environments they have access to in the User Portal. Review User Portal roles and permissions.

The WP Engine API allows you to perform basic account management tasks.

The terms install and environment are interchangeable in the below context.

  • List your WP Engine accounts
  • List account users
  • Add account user
  • Delete account user
  • Update account user
    • User role in the WP Engine User Portal
    • Install IDs that a user can access for Partial users
  • List your sites
  • Add site
  • Rename site
  • Delete site
  • List your installs
  • Add environment
  • Delete environment
  • Add domain(s)
  • Delete domain
  • Set domain as primary
  • Check domain status
  • Create backup
  • Purge cache
  • List your SSH keys
  • Add SSH key
  • Delete SSH key

For full documentation including code samples and our Quick Start guide, please visit: