Use Power Pages admin APIs
The Power Pages admin APIs are available through the Microsoft Power Platform API.
Note
The following limitations apply when configuring the steps to get the authentication token while using the admin APIs for Power Pages:
- Username and password flow is supported.
- Service Principal flow support is not currently available.
- Ensure the
username
used to request the token has the appropriate roles required for portal administration assigned.
Call a REST API method for Power Pages admin APIs
Microsoft Power Platform APIs allow users to invoke using REST API methods in following format. The namespace for Power Pages APIs is powerpages.
{HTTP method} https://api.powerplatform.com/powerpages/{resource}?api-version={version}
To learn more about the request format and request components, go to Call a REST API method.
Power Pages operations
Operation | Details |
---|---|
Create Website | Trigger the creation of a new Power Pages website. Note: It isn't recommended to create a site in the default environment as it is shared across all the users in the tenant, and has a risk of sharing data with unintentional users. |
Delete Website | Trigger the deletion of a Power Pages site from the given website ID. |
Get Website by Id | Get website details from Website ID. |
Get Websites | Get a list of all the Power Pages websites in your environment. |
Restart Website | Restart the Power Pages website for the given site ID. |