Skip to main content
Use Migma with v0 when generated app code needs production email sending, campaign drafts, contacts, webhooks, or delivery logs.
1

Start from Migma handoff

In Migma, open Create, click Set up Migma with agent, and paste the copied /setup prompt into the coding agent editing your v0 app.
2

Approve agent access

Use agent registration first. Add MIGMA_API_KEY to server environment variables only if the agent cannot complete registration.
3

Keep fallback key server-side

Store MIGMA_API_KEY in server environment variables. Do not put it in client components.
4

Use email IDs

Prepare emails in Migma and store emailId values in server config.
5

Send from backend routes

Wire sends through route handlers, server actions, or trusted jobs.

Prompt

Use this only if you cannot copy the in-app handoff prompt.
Use Migma's /setup workflow for this v0 app.
Use agent registration before asking me for an API key.
Use server routes or server actions only.
Map every email trigger to a Migma emailId.
Add a dry-run test path before live sending.

Next

Agent Handoff

In-app setup prompt and Copy for AI flow.

API Quickstart

Send your first API request.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/npm.svg?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=1839361b0494d7d3199cdaa3575846ac

SDK

Use Migma from Node.js or TypeScript.