> ## Documentation Index
> Fetch the complete documentation index at: https://docs.potpie.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate an API Key

In this tutorial, you'll learn how to generate an API key in Potpie to authenticate access and interact with any repository, agent, or conversation .

To understand how API access works, see the [API Access page](/agents/api-access).

## Generating an API Key

<Steps>
  <Step title="Sign in to the dashboard">
    Open <a href="https://app.potpie.ai" className="mode-link" target="_blank" rel="noopener noreferrer">Potpie</a> and sign in.

    <img src="https://mintcdn.com/potpieai/gJ4EwDE1Ctkm-zsd/images/new-chat-interface1.png?fit=max&auto=format&n=gJ4EwDE1Ctkm-zsd&q=85&s=3b87e642e79f7745126145c7c2d4c9ce" alt="Potpie Dashboard" width="1438" height="815" data-path="images/new-chat-interface1.png" />
  </Step>

  <Step title="Open Settings">
    Click the account menu in the bottom-left corner and select **Settings**.

    <img src="https://mintcdn.com/potpieai/kPBQNCG3fVdRW31K/images/api-key-username-menu.png?fit=max&auto=format&n=kPBQNCG3fVdRW31K&q=85&s=89cfe874dc4bd4bb773da161552af360" alt="Username menu" width="1438" height="787" data-path="images/api-key-username-menu.png" />
  </Step>

  <Step title="Generate an API key">
    In the **API Key** section, click **+ Generate API Key**.

    <img src="https://mintcdn.com/potpieai/kPBQNCG3fVdRW31K/images/api-key-management-page.png?fit=max&auto=format&n=kPBQNCG3fVdRW31K&q=85&s=aa1cd44a1cb59af34d54ad3ebbc38354" alt="API Key Management" width="1438" height="787" data-path="images/api-key-management-page.png" />
  </Step>

  <Step title="Copy the key">
    Copy and store the key securely.

    <img src="https://mintcdn.com/potpieai/kPBQNCG3fVdRW31K/images/api-key-generated.png?fit=max&auto=format&n=kPBQNCG3fVdRW31K&q=85&s=eaccb9ee079678fdce802fe14e1cff61" alt="Generated API Key" width="1438" height="787" data-path="images/api-key-generated.png" />
  </Step>
</Steps>
