Skip to navigation

Environments

View as Markdown

There are two server environments that can be accessed using different URLs:

  • https://api.megaport.com - this is the live Production environment. You will be liable for any services ordered in this system.

  • https://api-staging.megaport.com - this is a test Staging environment and is expected to have lower availability requirements. You can test any action in this environment and the API calls and responses mirror the production system, but the services will not be deployed and you will not be billed for any activity. The staging environment is reset (to match the production environment) every 24 hours.

You can use the Environments menu in the upper-left corner of this site to toggle the examples between No Environment (which shows baseUrl) and Staging (https://api-staging.megaport.com).

You can define environment variables in your Postman collection to automatically populate the baseUrl value in API requests and easily switch between staging and production environments.

For more information about authenticating users in these environments, see Megaport Authentication - API Keys.