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

# Authentication

> Learn how to authenticate your API requests using your API key.

All requests to the Starleads API must include a valid API key in the `X-Api-Key` header.

<Warning>API keys are **secrets** shared only between you and Starleads. Never expose them in client-side code, public repositories, or share them with anyone.</Warning>

## Get your API key

<Steps>
  <Step title="Log in to Starleads" icon="right-to-bracket">
    Go to [app.starleads.co](https://app.starleads.co) and sign in to your account.
  </Step>

  <Step title="Open API Access" icon="key">
    In the sidebar, navigate to **Configuration → API Access**.

    <Frame caption="Navigate to Configuration → API Access in the sidebar.">
      <img src="https://mintcdn.com/locuta/BvpOAfEagpoQQjYS/images/api-menu-option-screenshot.png?fit=max&auto=format&n=BvpOAfEagpoQQjYS&q=85&s=b57f8b898a147d3ca76f8c4dd7f7f826" alt="API Access menu" width="428" height="1550" data-path="images/api-menu-option-screenshot.png" />
    </Frame>
  </Step>

  <Step title="Copy your API key" icon="copy">
    Copy the API key displayed on the page. You'll need it for every request.
  </Step>
</Steps>

## Using your API key

Include the `X-Api-Key` header in every request:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET https://api.starleads.co/Campaign \
    -H "X-Api-Key: YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.starleads.co/Campaign",
      headers={"X-Api-Key": "YOUR_API_KEY"}
  )
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.starleads.co/Campaign", {
    headers: { "X-Api-Key": "YOUR_API_KEY" }
  });
  ```
</CodeGroup>

<Tip>You're all set! Head over to the [API Reference](/api-reference) to explore the available endpoints.</Tip>
