You need an API key to authenticate requests to the AgentMail API. API keys start with am_ and are created in the AgentMail Console.
Your API key is only shown once when it is created. If you lose it, you will need to create a new one. Never commit API keys to version control or share them publicly.
Store your API key in an environment variable to keep it out of your source code:
Then initialize the SDK using the environment variable:
In addition to organization-level keys, you can create keys scoped to a single pod or inbox. Scoped keys restrict access so that the key can only operate on resources within that pod or inbox.
POST /pods/{pod_id}/api-keys or client.pods.api_keys.create()POST /inboxes/{inbox_id}/api-keys or client.inboxes.api_keys.create()See the Multi-Tenancy guide for details.
No credit card required to get started. The free tier includes:
To create more inboxes or send higher volumes, see the pricing page.