Mirra SDK
The Mirra SDK provides a REST API platform for building, deploying, and monetizing AI agents and serverless functions. Developers can create custom assistants, integrate external APIs, and publish reusable components to the Mirra marketplace.
What You Can Build
The Mirra SDK enables you to create and monetize four types of components:
- Agents
Custom AI assistants with access to tools, resources, and scripts. Agents can interact with users through natural language and execute complex workflows.
- Scripts
Serverless functions written in Node.js or Python that execute on-demand. Scripts can process data, call external APIs, and respond to events.
- Resources
API integrations and data sources that agents and scripts can access. Resources provide standardized interfaces to external services.
- Templates
Pre-configured bundles of pages, scripts, and resources that users can install and customize. Templates accelerate development of common use cases.
Quick Start
Core Features
The Mirra SDK provides a complete platform for building and monetizing AI services:
REST API
All operations use simple HTTP endpoints with JSON payloads. No client libraries required—use any HTTP client in any language.
Marketplace
Publish your agents, scripts, resources, and templates to the Mirra marketplace. Set your own pricing and earn revenue from users who install your work.
Pricing models:
- Free (build reputation and user base)
- Pay-per-use (charge per execution or API call)
- Subscription (monthly or annual recurring revenue)
Type Safety
Full TypeScript support with automatically generated types for all API endpoints. Catch errors at compile time and get intelligent autocomplete in your editor.
Version Management
Create and manage multiple versions of your scripts and templates. Users can upgrade at their own pace, and you can deprecate old versions gracefully.
Dependency Resolution
Scripts automatically resolve and install npm or pip packages. Specify dependencies in your code, and the platform handles installation and caching.
Developer Portal
Manage your published work through a dedicated developer dashboard. Track usage analytics, respond to reviews, configure pricing, and monitor revenue.
Getting Started
To start building with the Mirra SDK:
- Get an API key - API keys are generated when you create scripts
- Create your first script - Deploy a serverless function in minutes
- Deploy a component - Publish your first script, resource, or template
Your First Script
Create a serverless function with a single API call:
The response includes an API key that you can use for authenticated requests. Store this key securely—it will only be shown once.
Key Concepts
Before diving deeper, understand these core concepts:
- Authentication - API keys and bearer token authentication
- Scripts - Serverless functions with event handlers
- Resources - API integrations with OpenAPI specifications
- Templates - Bundled components for common use cases
- Error Handling - Standard error responses and status codes
Use Cases
The Mirra SDK is designed for:
- AI Developers - Build and monetize custom AI agents and assistants
- Integration Specialists - Create reusable API connectors for popular services
- Automation Experts - Develop serverless functions for data processing and workflows
- Template Creators - Package complete solutions for specific industries or use cases
Examples
See practical implementations in action:
- Script Examples - Data transformation, API orchestration, and event processing
- Resource Examples - CRM integrations, payment gateways, and data sources
- Template Examples - Complete applications with pre-configured components
Developer Portal
Once you're ready to publish and monetize your work:
- Introduction - Overview of the developer portal
- Getting Started - Set up your developer profile
- Creating Resources - Publish API integrations
- Creating Scripts - Deploy serverless functions
- Best Practices - Guidelines for successful components
Support
Get help and connect with the community:
- Documentation - Comprehensive guides and API reference (you're reading it!)
- Discord - Join our developer community for real-time help
- Email - Contact support@oznetworks.xyz for technical assistance
- FAQ - See frequently asked questions for common issues
See Also
- Quickstart Guide - Get started in 5 minutes
- Authentication - Set up API credentials
- Core Concepts - Understand the platform fundamentals
- API Reference - Complete endpoint documentation
- Developer Portal - Publish and monetize your work