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.
Enable WPE API
To enable the API for your account, you must be an account Owner. For more information on User Portal roles, check out this guide.
- Log in to the User Portal
- Expand Users in the lefthand menu
- Select API Access
- You can visit this page directly at: https://my.wpengine.com/profile/api_access
- Locate the account name you’d like to enable API access for
- Toggle the button to the ON position next to the account name
- Click the Generate Credentials button at the top right
- This will generate the user’s credential required to connect to WP Engine’s API, across all accounts that have API access enabled and they are authorized to access.
- Copy the username and password to a safe place.

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.
Example tasks that can be done with the WP Engine API
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
Developer Documentation
For full documentation including code samples and our Quick Start guide, please visit:


