Pods
Pods are workspace containers that group inboxes, domains, and other resources together.
Create a Pod
suspend fun createPodExample() {
val client = AgentMailClient()
val pod = client.createPod()
println("Pod ID: ${pod.podId}")
client.close()
}
List Pods
suspend fun listPodsExample() {
val client = AgentMailClient()
val result = client.listPods {
limit = 10
}
for (pod in result.pods) {
println("Pod: ${pod.podId}")
}
client.close()
}
Get a Pod
suspend fun getPodExample() {
val client = AgentMailClient()
val pod = client.getPod("pod-id")
println("Pod ID: ${pod.podId}")
client.close()
}
Delete a Pod
suspend fun deletePodExample() {
val client = AgentMailClient()
client.deletePod("pod-id")
println("Pod deleted")
client.close()
}
See Scoped Access for working with resources within a pod.
Next Steps
- Domains — register and manage custom domains
- Lists — manage mailing lists and subscribers
- Scoped Access — work with resources within an inbox or pod