> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://en.megaport.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://en.megaport.ferndocs.com/_mcp/server.

# Environments

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

* [https://api.megaport.com](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](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](https://api-staging.megaport.com)).

You can define [environment variables](https://learning.postman.com/docs/sending-requests/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](/api-reference).