Skip to content

Add 'Create an API key' section to agent onboarding page#133

Open
fern-api[bot] wants to merge 1 commit into
mainfrom
fern/api-key-info
Open

Add 'Create an API key' section to agent onboarding page#133
fern-api[bot] wants to merge 1 commit into
mainfrom
fern/api-key-info

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented Apr 7, 2026

Requested by: Fern Support


Summary by cubic

Adds a "Create an API key" section to the agent onboarding page with Python, TypeScript, and CLI examples. Includes a one-time visibility warning and guidance on scoping keys to a pod or inbox, with links to the Console and API reference.

Written for commit 07191e6. Summary will update on new commits.

@fern-api
Copy link
Copy Markdown
Contributor Author

fern-api Bot commented Apr 7, 2026

Requested by: Tanishq Khurana
Slack thread: View conversation

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="fern/pages/integrations/agent-onboarding.mdx">

<violation number="1" location="fern/pages/integrations/agent-onboarding.mdx:83">
P1: Avoid printing newly created API keys in examples; this can leak secrets via logs/history.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.


```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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants