AgentMail CLI
Install the CLI and provide the API key through the environment.
A resource nested under another is a nested subcommand, e.g. inboxes messages, inboxes threads, pods inboxes, pods threads (CLI 1.x; the colon form inboxes:messages is rejected). Run agentmail <resource> --help to list what a resource supports.
Inboxes
Confirm the exact inbox before running the destructive delete command.
Messages and threads
Use a message ID for replies. Fetch the full message before relying on body content.
Drafts
Pods
Pods group inboxes together.
Webhooks
Domains
Global flags
Output formats
--format accepts: auto (default), pretty, json, jsonl, yaml, raw, explore.
Run agentmail --help and the relevant resource's --help before using an administrative command not covered here.

