Agent Mail
Receive email directly into a mobilerun-hosted inbox. Query messages and extract email OTPs without an external account.
- Receive
- Yes
- Send
- Not in the documented API
- Best for
- Verification and machine-readable intake
Claim a permanent inbound email address over the API. Receive and filter messages, inspect the useful fields, and pull the best OTP without opening Gmail.
Inbound email by API. For outbound email, use Gmail automation.
onboarding-agent-42@… permanent Choose a local part or get a random, non-guessable one. The address stays reserved even when the mailbox is archived.
Filter by sender, receive time, or OTP presence. Retrieve sender, subject, text body, preview, and attachment metadata.
Ask for the strongest recent candidate and narrow it by sender, time, or code length. Leading zeros stay intact.
Agent Mail uses the same bearer key and generated SDKs as the rest of mobilerun. Claims are idempotent, so retries do not create another mailbox.
import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun();
const mailbox = await client.mailboxes.create({
clientRequestId: 'onboarding-agent-42',
localPart: 'onboarding-agent-42',
});
// Once active, check for the newest code. Repeat until it arrives.
const otp = await client.mailboxes.otp(mailbox.data.id, {
sender: 'accounts@vendor.example',
minLength: 6,
maxLength: 6,
});
if (!otp) {
console.log('No matching OTP yet. Poll again shortly.');
} else {
console.log(otp.data.code, otp.data.confidence);
} Agent Mail, Gmail and SMS work together, but they are not interchangeable.
Receive email directly into a mobilerun-hosted inbox. Query messages and extract email OTPs without an external account.
Drive your own Gmail account in the real mobile app. Read, triage, compose, send, reply, attach files, and complete app flows.
Use a real number and eSIM. Read inbox and outbox messages, group threads, track delivery state, and send SMS over the API.
Claim a permanent address, receive the next message, and let the run continue without opening another app.