Connect legacy tools to an agent mailbox over IMAP/SMTP Nylas has introduced Agent Accounts that expose the same mailbox over IMAP and SMTP submission alongside its v3 API, enabling legacy tools that only support email protocols to interact with the same mailbox as AI agents. The feature allows developers to connect ticketing systems, backup scripts, and monitoring tools without rewriting them to use HTTP APIs. Nylas hosts the mailbox, manages deliverability, and eliminates the need for OAuth token refreshes, though the mailbox is Nylas-hosted rather than tied to existing Google Workspace or Microsoft 365 accounts. Most "AI email" integrations assume everything on the other side speaks REST. You wire up a webhook, you call POST /messages/send , and you move on. That works right up until you remember how much of your stack doesn't speak REST and never will: the ticketing system that ingests mail over IMAP, the backup script your predecessor wrote in 2014, the monitoring tool that only knows how to send SMTP, the compliance archiver that polls a mailbox every five minutes. None of those are getting rewritten to call an HTTP API for your demo. So here's the trick that makes a Nylas Agent Account genuinely useful in a real environment: it's not API-only. You can expose the same mailbox over IMAP and SMTP submission , hand the host, port, and credentials to one of those legacy tools, and let it read and send like it's talking to any old mail server. Meanwhile your agent drives that identical mailbox over the v3 API. Both surfaces hit one storage layer. A flag, move, or delete on either side shows up on the other within seconds. I work on the Nylas CLI, so the terminal commands below are the exact ones I reach for. As usual I'll show both angles for every operation — the raw curl against the API and the nylas command — because half the point of an Agent Account is that you can mix them freely. An Agent Account is just a grant . It has a grant id , and that grant id works with every grant-scoped endpoint you already know — Messages, Drafts, Threads, Folders, Attachments, Contacts, Calendars, Events. There's nothing new to learn on the data plane. The IMAP/SMTP layer doesn't change that model. It adds a second door into the same room: That last point is the one that surprises people, so I'll be blunt about it later: this is shared mutable state across two protocols. It's a feature, but you should design for it. You could, in theory, stand up Dovecot, bolt on Postfix, wire in DKIM and SPF and DMARC, warm an IP, and expose that to your legacy tools yourself. People do. It's also a multi-week project with an on-call rotation attached. With an Agent Account you skip all of it. Nylas hosts the mailbox, runs the IMAP and SMTP submission servers, handles TLS, manages deliverability, and gives you the API on top. The part I like as an SRE: there's no OAuth token to refresh. A connected Gmail or Microsoft grant lives and dies by its refresh token. An Agent Account has no upstream provider, so the grant doesn't silently expire on you at 3 a.m. — it just keeps being a mailbox. The honest tradeoff: this is a Nylas-hosted mailbox, not your existing Google Workspace or Microsoft 365 account. If your goal is to put an agent on a human's real inbox, that's a connected-grant problem, not this. Agent Accounts are for mailboxes the agent and your tooling owns — support@ , notifications@ , intake@ , the address a workflow lives behind. You need three things: .nylas.email trial subdomain. New domains warm over roughly four weeks before they're sending at full reputation. grant id .If you don't have the account yet, create one. Over the API it's a POST /v3/connect/custom with "provider": "nylas" : curl --request POST \ --url "https://api.us.nylas.com/v3/connect/custom" \ --header "Authorization: Bearer $NYLAS API KEY" \ --header "Content-Type: application/json" \ --data '{ "provider": "nylas", "name": "Support Bot", "settings": { "email": "support@yourcompany.com" } }' The response carries the grant id . The optional top-level name sets the display name on outbound mail. No refresh token, no redirect dance. From the CLI it's one line: nylas agent account create support@yourcompany.com --name "Support Bot" The API auto-creates a default workspace and policy for the account, so you don't pass a workspace on create — there's no --workspace flag. If you later want a custom policy governing limits and spam, you attach it to the workspace with nylas workspace update