Register email identities on domains you control. AI Maestro manages the identity, your external gateway handles the transport.
AI Maestro handles email identity (who the agent is), not email transport (sending/receiving). You need an external email gateway or mail processor (like Mandrill, SendGrid, Postmark, or your own SMTP server) to actually deliver emails.
Three simple steps to give your agents email identity
Register domains you control in Settings. These become available for creating agent email addresses.
Assign email addresses to agents using name@domain format. Each address is globally unique.
Set up webhook subscriptions to notify your email gateway when addresses are created, updated, or deleted.
RESTful endpoints for managing domains, email addresses, and webhooks
/api/domains
List all domains
curl http://localhost:23000/api/domains
/api/domains
Add a domain
curl -X POST http://localhost:23000/api/domains \
-H "Content-Type: application/json" \
-d '{"domain": "example.com", "isDefault": true}'
/api/domains/:id
Remove a domain
curl -X DELETE http://localhost:23000/api/domains/domain-uuid
/api/agents/:id/emails
List agent's emails
curl http://localhost:23000/api/agents/{agentId}/emails
/api/agents/:id/emails
Add email to agent
curl -X POST http://localhost:23000/api/agents/{agentId}/emails \
-H "Content-Type: application/json" \
-d '{"address": "support@example.com", "displayName": "Support Bot"}'
/api/email-lookup?address=:email
Find agent by email
curl "http://localhost:23000/api/email-lookup?address=support@example.com"
/api/webhooks
Subscribe to events
curl -X POST http://localhost:23000/api/webhooks \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-gateway.com/webhook",
"events": ["email.created", "email.deleted"],
"secret": "your-webhook-secret"
}'
email.created
New address registered
email.updated
Address modified
email.deleted
Address removed
domain.created
Domain added
Example payloads sent to your gateway
{
"event": "email.created",
"timestamp": "2026-01-27T14:30:00.000Z",
"data": {
"emailAddress": {
"id": "email-uuid",
"address": "support@example.com",
"displayName": "Support Bot",
"createdAt": "2026-01-27T14:30:00.000Z"
},
"agent": {
"id": "agent-uuid",
"name": "support-agent"
}
},
"signature": "sha256=..."
}
Set up email identity for your agents
Go to Settings โ Domains and add a domain you control (e.g., yourdomain.com).
Select an agent, go to Email Addresses, and click "Add Email Address". Choose a name and domain.
Set up a webhook in Settings โ Webhooks to notify your email gateway (Mandrill, SendGrid, Postmark, etc.) when email addresses are created or deleted.
Configure your gateway to forward inbound emails to AI Maestro using the
/api/email-lookup endpoint to resolve which agent should receive the email.