Spaces

Email API for AI agents

Connect your business mailbox and your AI agent can read the emails customers send you, answer them on the same thread, send one email to someone who expects it, and save drafts for you to check, from the address your customers already know.

What your agent can do on Email

Three steps

  1. Start a trial and connect Email. You sign in to Gmail or Outlook through a secure link and approve the connection, or enter your mail server details for any other mailbox.
  2. Add Spaces to your AI agent with one URL, https://api.spacesos.com/mcp/email, or use the REST API at https://api.spacesos.com/v1. Steps for each AI client.
  3. Your agent reads and answers. Spaces paces every message inside the limits that keep the account safe.

Or paste this into your agent and let it set things up with you:

Set up Spaces for me by following https://www.spacesos.com/agents

The core tools

What it doesMCP toolREST
Your emails, newest first. Filter by folder, by address or by date.list_emailsGET …/emails
One email, with its text and attachments.get_emailGET …/emails/{email_id}
Send one email to one person, or reply on a thread. Never a bulk send.send_emailPOST …/emails
A file attached to an email.get_email_attachmentGET …/emails/{email_id}/attachments/{attachment_id}
Save an email as a draft for you to check and send yourself.create_email_draftPOST …/email-drafts

Only on Email

What it doesMCP toolREST
The contacts saved in your mailbox.list_email_contactsGET …/email-contacts
Move an email to the trash.delete_emailDELETE …/emails/{email_id}
Mark an email read or unread, or move it to another folder.update_emailPATCH …/emails/{email_id}
Your mail folders, such as the inbox and sent mail.list_email_foldersGET …/email-folders
One mail folder.get_email_folderGET …/email-folders/{folder_id}

Every Email tool · Email MCP guide · Full reference

Limits that keep the account safe

Up to 80 messages a day per account, at least 30 seconds apart, with 40 new chats a day at most and a four-week warm-up for new accounts. Email limits in full · How accounts are kept safe.

FAQ

Which mailboxes work?

Gmail and Google Workspace, Outlook and Microsoft 365, and any other mailbox that lets you sign in with its mail server details.

Can I use this for email campaigns or newsletters?

No. Spaces sends one email at a time to one person, with no blind copies and no tracking. It is for answering customers and following up with people who expect to hear from you.

How many emails can my agent send a day?

Up to 80 a day per mailbox, at least 30 seconds apart, with at most 40 new threads a day and fewer while a new mailbox warms up. Replies to people who emailed you are not held back.

Does my agent see all my email?

Your agent can read the mailbox you connect. Connect a shared address such as hello@ or support@ if you want it to see only customer email.

How much does the Email API cost?

Plans from $19 a month for one connected account, with a trial. You pay per connected account, not per message or per contact.