Quickstart
Get started with Mirra in 5 minutes
Mirra enables you to build and deploy serverless scripts, API integrations, and automation workflows. This guide walks you through creating your first script.
Prerequisites
Before you begin, ensure you have:
- A Mirra account (sign up or download the app)
- An API key (from the web portal or mobile app)
Create your first script (UI)
The easiest way to create a script is through the browser-based interface:
-
Navigate to the Developer Dashboard
Visit https://store.getmirra.app/developer/scripts and sign in with your Mirra account.
-
Click "Create New Script"
This opens a guided 4-step wizard that walks you through the entire process.
-
Add basic information (Step 1)
- Name: Give your script a descriptive name
- Description: Explain what your script does
- Runtime: Choose Node.js 18 or Python 3.11
- Category: Select the most appropriate category
- Private: Toggle on if you want the script for personal use only
-
Write your code (Step 2)
The built-in Monaco editor provides syntax highlighting and autocomplete. A starter template is provided based on your chosen runtime:
Node.js example:
Python example:
-
Configure resource permissions (Step 3)
Select which integrations your script can access (Telegram, Gmail, Calendar, etc.). The UI auto-detects resources referenced in your code.
-
Set up automation (Step 4)
Configure how your script can be triggered (events, manual, scheduled), define user-facing variables, and set pricing if you're publishing to the marketplace.
-
Deploy
Click "Create Script" and your script is instantly deployed and ready to use!
The UI automatically handles deployment, configuration, and makes your script available immediately.
Create your first script (API)
For programmatic workflows and CI/CD pipelines, you can create scripts via the REST API.
Getting your API Key
Generate an API key from the web portal or the mobile app (Settings → Developer). Copy the key immediately. It's only shown once.
Store your API key securely. Never commit it to version control or expose it in client-side code.
See the Authentication guide for more details.
Create a script via API
Create a script by sending a POST request to the scripts endpoint:
Response:
Your script is now deployed and ready to execute!
Using the SDK
The Mirra SDK provides type safety and convenience for Node.js and TypeScript applications.
Installation
Create a script using the SDK
Execute a script
Troubleshooting
401 Unauthorized
Your API key is missing or invalid.
Check that:
- You include the
X-API-Keyheader in every request - Your API key starts with
mirra_ - The key hasn't been revoked
See Authentication for more details.
400 Validation Error
Your request data failed validation.
Example error response:
The details object indicates which field caused the validation error. Verify that all required fields are present and meet the documented constraints.
409 Conflict
The resource already exists (typically a naming conflict).
Example error response:
Choose a different name or verify that you do not already own the resource.
See the Error Codes reference for a complete list of error codes and handling strategies.
Next steps
Now that you have created your first script, explore more features:
- Browse the Mirra Store - Discover and install scripts created by the community
- Scripts Documentation - Learn about event-driven automation, triggers, and advanced features
- Resources - Create and publish API integrations
- Templates - Bundle scripts and resources into installable templates
- Authentication - API key management and security best practices
- Error Codes - Complete error reference and handling patterns