Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions fern/pages/integrations/agent-onboarding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,34 @@ Alternatively, a human can create an account at [console.agentmail.to](https://c
AgentMail's free tier includes 3 inboxes and 3,000 emails/month. Your agent can start building immediately.
</Info>

## Create an API key

Once you have an account, create additional API keys via the API or the [Console](https://console.agentmail.to):

<CodeBlocks>

```python title="Python"
key = client.api_keys.create(name="my-agent-key")
print(key.api_key) # starts with am_, shown only once
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Avoid printing newly created API keys in examples; this can leak secrets via logs/history.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At fern/pages/integrations/agent-onboarding.mdx, line 83:

<comment>Avoid printing newly created API keys in examples; this can leak secrets via logs/history.</comment>

<file context>
@@ -72,6 +72,34 @@ Alternatively, a human can create an account at [console.agentmail.to](https://c
+
+```python title="Python"
+key = client.api_keys.create(name="my-agent-key")
+print(key.api_key)  # starts with am_, shown only once
+```
+
</file context>
Suggested change
print(key.api_key) # starts with am_, shown only once
api_key = key.api_key # starts with am_, shown only once; store securely
Fix with Cubic

```

```typescript title="TypeScript"
const key = await client.apiKeys.create({ name: "my-agent-key" });
console.log(key.apiKey); // starts with am_, shown only once
```

```bash title="CLI"
agentmail api-keys create --name "my-agent-key"
```

</CodeBlocks>

<Warning>
API keys are only shown once at creation. Store them securely.
</Warning>

You can also create keys scoped to a specific [pod](/core-concepts/pods) or [inbox](/core-concepts/inboxes). See the [API reference](/api-reference/api-keys/create-api-key) for details.

## AgentMail MCP Server

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. The AgentMail MCP server gives your AI agent tools to create inboxes, send emails, manage threads, and more.
Expand Down
Loading