How do I use Pods for multi-tenant email?
How do I use Pods for multi-tenant email?
How do I use Pods for multi-tenant email?
Pods provide tenant isolation for multi-tenant applications. Each Pod is an isolated workspace containing its own inboxes, domains, threads, and drafts, completely separated from other Pods.
Pods are designed for scenarios where you need to keep different customers’ or agents’ email data separate:
If you are only managing email for your own organization, Pods are optional. You can work directly with inboxes without creating them.
Everything inside a Pod is isolated. Customer A cannot see Customer B’s emails, threads, or drafts.
Use the client_id parameter when creating a Pod to set your own unique identifier. This way you can map Pods to your internal customer IDs without maintaining a separate mapping table.
You can list inboxes, threads, drafts, and domains scoped to a specific Pod:
This makes it easy to build features like “show all unread emails for Customer X” or “list all pending drafts for Customer Y.”
You cannot delete a Pod that still has inboxes or domains attached to it. Clean up child resources first:
When you delete an inbox, all associated messages, threads, and drafts are automatically cleaned up. You do not need to delete them individually.
POST /pods/{pod_id}/api-keys.POST /inboxes/{inbox_id}/api-keys.For more details, see the Pods core concept documentation.