/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
Approve access
Let the agent use agent registration first. Add a fallback API key only when needed.
Builder guides

Lovable
Add Migma to Lovable backend sends.

Bolt
Add Migma to Bolt app email triggers.

v0
Use Migma from server routes or server actions.

Replit
Use Migma from Replit apps, agents, and jobs.
Builder checklist
Prefer the handoff prompt
Use Set up Migma with agent instead of manually writing a long integration prompt.
Keep secrets server-side
Store
MIGMA_API_KEY in the builder’s server-side environment or secret manager.Create or choose a brand
Use a Migma brand/project so emails use the right logo, colors, sender, and audience context.
Prepare email IDs
Generate or select emails in Migma, then store returned
emailId values in backend config.Wire sends in backend code
Send only from server routes, jobs, or trusted functions. Do not send directly from browser code.
Suggested prompt
When to use each surface
| Surface | Use it for |
|---|---|
| Agent handoff | Copy the right setup prompt from Migma into the builder agent |
| Setup workflow | App audit, mapping existing emails, backend send wiring |
| REST API | Production app integration |
| SDK | Node.js and TypeScript apps |
| CLI | Terminal workflows and agent scripts |
| MCP | Agent 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.