API Documentation

Getting Started

The Moonba Mirro API provides programmatic access to production-ready reinforcement learning environments. Our API follows the OpenGym interface standard, making it easy to integrate with existing RL frameworks.

Base URL

https://ORGANIZATION_PREFIX.moonba.ai/v1

Authentication

All API requests require an API key. Include your API key in the request header:

Authorization: Bearer YOUR_API_KEY

How to Get an API Key

To get started with the Moonba Mirro API, you'll need an API key.

Contact us to request your API key:

Please include information about your use case and expected usage volume in your request.

API Endpoints

POST/environments

Create a new training environment instance.

POST/environments/{environment_id}/reset

Reset the environment to its initial state.

POST/environments/{environment_id}/step

Execute one step in the environment with the given action.

GET/environments/{environment_id}

Get information about a specific environment instance.

GET/environments

List all available environment templates.

DELETE/environments/{environment_id}

Close and cleanup an environment instance.

Error Codes

CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
404Not Found - Environment not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Something went wrong

Support

Need help? We're here to support you: