Skip to main content
AI app builders can use Migma when an app needs real email creation, sending, campaign workflows, contacts, webhooks, or delivery logs. Use agent registration first for agent access. If a fallback key is needed, create it from Settings → Developers → API Keys. Create webhooks from Settings → Developers → Webhooks. Start with Create → Set up Migma with agent when the builder has a coding agent or repo-aware assistant. Migma copies the /setup handoff prompt so the agent audits the app, creates or reuses emails, and wires backend sends safely. Use the surface your builder supports:
  • Agent handoff for first-time app setup from Migma
  • REST API for production app code
  • SDK for TypeScript and Node.js apps
  • CLI for terminal-capable builders
  • Setup workflow when a coding agent can inspect and edit the repository
  • MCP when the builder supports MCP tools

Best path

1

Copy the setup handoff

In Migma, open Create, click Set up Migma with agent, then copy the prompt.
2

Paste into the builder agent

Use the agent that can inspect and edit the app repository.
3

Approve access

Let the agent use agent registration first. Add a fallback API key only when needed.
4

Review the dry-run

Before live sends, confirm the agent mapped each trigger to the right emailId and added a smoke test.

Builder guides

https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/lovable.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=20f45e55be5abfd91b95783e7afb197e

Lovable

Add Migma to Lovable backend sends.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/bolt.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=9ac9f2cac4dd8d9ee15cf14a66419d6a

Bolt

Add Migma to Bolt app email triggers.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/v0.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=74822a0a928a8a979d846c29a9d3c418

v0

Use Migma from server routes or server actions.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/replit.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=152058a6cf2a2ce13566c147cca9eade

Replit

Use Migma from Replit apps, agents, and jobs.

Builder checklist

1

Prefer the handoff prompt

Use Set up Migma with agent instead of manually writing a long integration prompt.
2

Keep secrets server-side

Store MIGMA_API_KEY in the builder’s server-side environment or secret manager.
3

Create or choose a brand

Use a Migma brand/project so emails use the right logo, colors, sender, and audience context.
4

Prepare email IDs

Generate or select emails in Migma, then store returned emailId values in backend config.
5

Wire sends in backend code

Send only from server routes, jobs, or trusted functions. Do not send directly from browser code.
6

Add dry-run checks

Test that each app trigger selects the right emailId without sending duplicates.

Suggested prompt

Use Migma's /setup workflow for this app.
Fetch https://docs.migma.ai/llms.txt first.
Use agent registration before asking me for an API key.
Audit email triggers, templates, providers, queues, webhooks, and jobs.
Create or reuse Migma emails, store emailId values server-side, and add a dry-run before live sends.

When to use each surface

SurfaceUse it for
Agent handoffCopy the right setup prompt from Migma into the builder agent
Setup workflowApp audit, mapping existing emails, backend send wiring
REST APIProduction app integration
SDKNode.js and TypeScript apps
CLITerminal workflows and agent scripts
MCPAgent work inside MCP-capable builders

Next

Setup Workflow

Agent-guided app wiring.

Agent Handoff

Copy setup and selected-email prompts from Migma.

API Quickstart

Send your first API request.

SDK

Use Migma from Node.js or TypeScript.

Webhooks

Trigger app workflows from Migma events.