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
__sandboxprefixed endpoints
Navigate to the Sandbox Testing section for testing-specific tools.
Choosing the Right Environment
| Use Case | Recommended Environment | Why |
|---|---|---|
| Development & Testing | Sandbox | Free to use, no real money involved, isolated testnet |
| Production Application | Production | Live data, real transactions, production infrastructure |
| Production Deployment | Production | Final 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.