Skip to main content

API Environments

This documentation is organized into two main environments to help you find the right API endpoints for your use case.

Production Environment​

Base URL: https://api.magfi.net

Use the production environment when you need to:

  • Work with real user data
  • Process live transactions
  • Deploy applications to production
  • Use production-grade APIs

Production Endpoints​

All core API operations are available in production:

  • Account management
  • Asset management
  • Fiat operations
  • Authentication & authorization

Navigate to the Production section for the complete list of production endpoints.

Sandbox Testing Environment​

Base URL: https://api.sandbox.magfi.dev

Use the sandbox environment when you need to:

  • Test API functionality without risk
  • Develop and debug applications
  • Test new features before production deployment
  • Experiment with API behavior

Sandbox-Specific Endpoints​

Some endpoints are only available in the sandbox environment and will not work in production:

  • Trigger Oracle Loan Sandbox Event
  • Other __sandbox prefixed endpoints

Navigate to the Sandbox Testing section for testing-specific tools.

Choosing the Right Environment​

Use CaseRecommended EnvironmentWhy
Development & TestingSandboxFree to use, no real money involved, isolated testnet
Production ApplicationProductionLive data, real transactions, production infrastructure
Production DeploymentProductionFinal testing before going live

Environment Indicators​

This documentation uses clear visual indicators to distinguish between environments:

  • 🟢 Production sections = Production-ready endpoints available for live use
  • 🟡 Sandbox Testing section = Testing-specific tools and sandbox-only endpoints
  • 🔧 Testing tools = Special debugging utilities

Always check the section name and URL in your browser to confirm you're using the right environment.