Skip to main content
Use Migma with Replit when an app or agent needs transactional emails, 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 Replit Agent.
2

Approve agent access

Use agent registration first. Add MIGMA_API_KEY to Replit Secrets only if the agent cannot complete registration.
3

Add a fallback secret

Store MIGMA_API_KEY in Replit Secrets.
4

Choose a surface

Use the SDK for Node.js apps, REST for any backend runtime, or CLI for terminal workflows.
5

Wire backend sends

Send from server code, jobs, or trusted functions only.

Prompt

Use this only if you cannot copy the in-app handoff prompt.

Next

Agent Handoff

In-app setup prompt and Copy for AI flow.

CLI

Use Migma from terminal workflows.

Webhooks

Trigger app workflows from Migma events.