Compliance mail agents
Agents with their own name and email address that chase onboarding and RFIs until customers respond.
Compliance mail agents email your customers from their own address on your subdomain (for example sarah@acme.checkmy-id.com). They follow people up until they finish onboarding, ask for information (RFIs) and remind them until they answer, and reply to customer emails. Anything sensitive is handed to your team. Every email in and out is kept, and you can switch any agent on or off. You can have up to 10 agents per account. They check for due work every 5 minutes, around the clock.
Claim your subdomain in the console first (Agent mail → Subdomain). Agent addresses live on it.
#Agents
/v3/mail-agents/{configured, ai, subdomain, max_agents, results: [agent]}/v3/mail-agents/{name, local_part, title, persona, signature, tasks, options}. Returns the agent with its address. 409 agent_limit past 10 agents, 409 no_subdomain before a subdomain is claimed/v3/mail-agents/{id}/One agent/v3/mail-agents/{id}/Any of the fields above, or status: active (on) or paused (off)/v3/mail-agents/{id}/pause/Switch the agent off. It sends nothing and its conversations wait for it/v3/mail-agents/{id}/resume/Switch it back on/v3/mail-agents/{id}/Delete the agent and its mailbox. Its open conversations are closedtasks: onboarding (follow up until the customer finishes verifying), rfi (ask for information and remind until they answer), replies (answer customer replies). options: after_hours (4–168, time between messages), max_followups (0–6, follow-ups or reminders per person), max_auto_replies (0–20). New work goes to the least busy active agent with that task. A customer stays with the same agent.
curl -X POST https://{{HOST}}/v3/mail-agents/ -H "x-api-key: sk_live_..." -H "Content-Type: application/json" \
-d '{"name":"Sarah","local_part":"sarah","title":"Onboarding team","tasks":{"onboarding":true,"rfi":true,"replies":true},"options":{"after_hours":24,"max_followups":3}}'#Requests for information (RFIs)
/v3/mail-agents/rfi/{request, session_id, email, name, agent_id}. The agent writes and sends the request, then reminds the customer until they answer. With session_id the email carries a secure link to the verification. Returns the conversation (201)Resubmit requests (PATCH /v3/session/{id}/update-status/ with Resubmitted) are emailed automatically by an agent with the rfi task. The conversation closes once the customer provides what was asked.
curl -X POST https://{{HOST}}/v3/mail-agents/rfi/ -H "x-api-key: sk_live_..." -H "Content-Type: application/json" \
-d '{"session_id":"ver_...","request":"Source of funds for the £50k deposit"}'#Conversations
/v3/mail-agents/threads/{results, counts}. Filter with status (attention, open, waiting, needs_human, closed), agent_id, session_id, q, limit/v3/mail-agents/threads/{id}/The conversation with every messages[] entry: direction (in/out), author (agent, customer, staff:…), subject, text, status/v3/mail-agents/threads/{id}/reply/{text, include_link, hand_back}. Your team's reply, sent from the agent's address/v3/mail-agents/threads/{id}/agent-reply/Let the agent answer the latest customer email now/v3/mail-agents/threads/{id}/status/{status, reason}: open, waiting, needs_human or closed/v3/mail-agents/run/Send every due follow-up, RFI and reminder now. Returns {rfi, rfi_reminders, followups, completed}Agents say they are an AI assistant. They never reveal results or risk, and never ask for documents by email. Each email an agent writes costs one AI agent action. The same tools are on the MCP server.