Mailbuttons Email API gives you a production-ready inbox layer that drops into your stack. Provision agent mailboxes, monitor every run, and ship human-quality replies—all through a single, standards-aligned API surface with optional vector memory so agents remember every thread.
Request a session and execute standard JMAP operations with a single endpoint—Mailbuttons extensions are opt-in for agent context:
# Save the payload once; reuse as needed
cat <<'EOF' >/tmp/mailbox-create.json
{
"using": [
"urn:ietf:params:jmap:core",
"urn:ietf:params:jmap:mail"
],
"methodCalls": [
[
"Mailbox/set",
{
"accountId": "{{accountId}}",
"create": {
"agent-inbox": {
"name": "Agent Inbox",
"parentId": null,
"isSubscribed": true
}
}
},
"c1"
]
]
}
EOF
# Fetch the tenant-scoped JMAP session
curl -s https://emailapi.mailbuttons.com/api/v1/jmap/session -H "Authorization: Bearer <TENANT_API_KEY>"
# Issue a JMAP request (email query in this example)
curl -s https://emailapi.mailbuttons.com/api/v1/jmap -H "Authorization: Bearer <TENANT_API_KEY>" -H "Content-Type: application/json" --data @/tmp/mailbox-create.jsonNote: Tenants can scope requests to specific agent mailboxes using the optional _mailbuttons.account hint inside the JSON body.