Wire MultiMail's pending queue into a Retool app and give your operations team a clean interface to review, approve, or reject AI-drafted email before it sends.
Retool is where operations teams build the internal tools that run their business — dashboards, approval queues, and workflow forms layered on top of APIs and databases. When you add AI agents to that picture, Retool becomes the natural surface for humans to stay in the loop.
MultiMail's graduated oversight modes let AI agents draft and queue outbound email without sending autonomously. The `gated_send` and `gated_all` modes hold email in a pending queue until a human approves. Retool can query that queue, surface full email content and agent metadata, and let reviewers approve or reject with a single click.
The integration requires no custom backend. Retool queries MultiMail's REST API directly. A resource pointing to `https://api.multimail.dev` with your Bearer token is all the infrastructure you need — no proxy, no Lambda, no middleware.
MultiMail's `GET /v1/oversight/pending` endpoint returns structured JSON — an emails array with id, subject, from, to, body_markdown, and status — that maps directly to Retool table columns with no transformation layer.
The `POST /v1/oversight/decide` endpoint takes an `email_id` and an `action` of `approve` or `reject`. Wire it to a Retool button and the queue drains without any custom middleware.
MultiMail fires webhooks when new emails enter the pending queue. A Retool Workflow can receive those events and post to Slack or trigger in-app notifications so reviewers don't have to poll.
Every approve and reject is logged with a timestamp. MultiMail surfaces this through the audit log (`GET /v1/audit-log`), giving you a complete chain of custody suitable for SOC 2 and GDPR data processing reviews.
Different mailboxes can run different oversight modes. High-stakes outbound — sales, legal, external partners — stays in `gated_send`. Internal notifications can run `monitored` or `autonomous`. Retool surfaces only what needs human review.
No code, no dashboard. Paste this to your AI agent — it connects MultiMail, creates an inbox, and builds the flow for you.
In Retool, go to Resources → Create New → REST API. Set Base URL to `https://api.multimail.dev` and add a default header: `Authorization: Bearer {{ retoolContext.environmentVariables.MULTIMAIL_API_KEY }}`. Store your `mm_live_...` key as a Retool environment variable so it is encrypted at rest and not exposed to app end users.
Provision the mailbox with oversight set to hold outbound email for review rather than delivering immediately. Agents writing to this mailbox will have their messages queued until a Retool reviewer approves. (Set oversight_mode at creation, or change it later in the MultiMail dashboard.)
Create a Retool app with a Table component. Add a REST API query to your MultiMail resource: GET `/v1/oversight/pending`. Set the table's data source to `{{ getPendingEmails.data.emails }}` and add columns for id, from, to, subject, status, and received_at.
Add two buttons below the table. For Approve, create a JavaScript query that calls `POST /v1/oversight/decide` with `{ email_id: table1.selectedRow.data.id, action: 'approve' }`. For Reject, send `{ email_id: table1.selectedRow.data.id, action: 'reject' }`. On success, trigger `getPendingEmails` to refresh the queue.
Create a Retool Workflow on a cron schedule (e.g. every 5 minutes) that polls `GET /v1/oversight/pending` and counts the emails awaiting approval. When the count crosses a threshold, notify your team via Slack or email before they open the review app. (For inbound delivery, subscribe a webhook to `email.received` instead.)
Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a hosted MCP server. Formally verified in Lean 4.