-
Notifications
You must be signed in to change notification settings - Fork 17
Configuring the Management API
The Dashboard of the Moesif Developer Portal is powered by Moesif Embedded Templates which utilizes Moesif's Management API. This functionality enables charts and visualizations in Moesif to be seamlessly displayed within the developer portal. Additionally, the management API allows Stripe to display plans and prices within the developer portal.
To enable API access for Stripe to retrieve plans and prices, and for the Developer Portal to utilize embedded templates, follow these steps to create a management token:
-
Navigate to Your Moesif Profile:
- Go to Profile > API Keys.
-
Configure Token Permissions:
- Set read access for the following resources:
- User
- Company
- Plans
- Price
- Workspaces
- Public Workspaces
- Set read access for the following resources:
-
Set an Expiration Date (Optional):
- Specify an expiration date for the token if needed.
-
Generate the Token:
- Click Generate Token to complete the process.
Copy the generated key for later use. The generated token will be essential for integrating Moesif Embedded Templates and Stripe into the Developer Portal.
To integrate the management token and templates, update the environment variables for your development setup.
- Open the
my-dev-portal-api/.envfile. - Replace the following lines with the correct values:
MOESIF_MANAGEMENT_TOKEN="your Moesif management token"- Save the
.envfile to ensure the updated values are persisted.
- Open the
distribution/docker-compose.ymlfile. - Add or update the following entries in the relevant service configuration under
environment:
dev-portal-api:
environment:
- MOESIF_MANAGEMENT_TOKEN="your Moesif management token"- Save the
docker-compose.ymlfile to ensure the updated values are persisted.
After updating the environment variables, save the changes and proceed to Configuring the Dashboards.
- Home
- Developer Portal Overview
- Configure Auth0 for Identity
- Configure Okta for Identity
- Configure Stripe for Checkout
- Set up Auth0 M2M Plugin
- Set up Custom Provisioning (JWT)
- Set up Kong Gateway Plugin
- Set up Kong Konnect Plugin
- Set up Tyk Plugin
- Set up Custom Billing Provider
- Using the Developer Portal
- Configuring the Management API
- Configuring the Dashboards
- Next Steps