Quickstart
Get started with Mirra in 5 minutes
Mirra is the infrastructure of ambition. Connect any tool, automate any process, and ship new capability without rebuilding your stack. 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 app under Settings → API Keys, or the mobile app)
Create your first script
Scripts are created through the REST API, shown below. You can also work with them conversationally by asking Mirra in any space, or with the SDK — see Writing Scripts.
Getting your API Key
Generate an API key from the web app (Settings → API Keys) 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:
- Scripts Documentation - Learn about event-driven automation, triggers, and advanced features
- Writing Scripts - Handler signature, the
mirraclient, and testing - Flows - Schedule scripts and wire them to events
- Integrations - Connect Telegram, Gmail, Calendar, and more
- Authentication - API key management and security best practices
- Error Codes - Complete error reference and handling patterns