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

# Get an auth token

> This page will help you get an auth token and use it to call databrain apis.

<Steps>
  <Step title="Go to Embed Settings and generate token">
    Go to the **Settings** page then in the **"Embed Settings"** tab, click on **"Generate api token"** button.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/6oHBukEqmXlHScVq/images/guides/image-gaat1.png?fit=max&auto=format&n=6oHBukEqmXlHScVq&q=85&s=097c16513a4ac28e6fa530f220f9cc93" width="1366" height="640" data-path="images/guides/image-gaat1.png" />
    </Frame>
  </Step>

  <Step title="Fill out API Token details">
    In the popup modal give a name to the API Token, then provide an optional description of why you are creating this token.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/6oHBukEqmXlHScVq/images/guides/image-gaat2.png?fit=max&auto=format&n=6oHBukEqmXlHScVq&q=85&s=5a2ba1ba7cfcc3cc7d3ac4cccf886185" width="1363" height="638" data-path="images/guides/image-gaat2.png" />
    </Frame>
  </Step>

  <Step title="Set permissions and generate API Key">
    Provide the necessary permissions to the token from the dropdown list. Then click on **"Generate API Key"** button.
  </Step>

  <Step title="Copy your newly created API Key">
    You will be able to view the newly created API key in the table, then click on the copy icon.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/6oHBukEqmXlHScVq/images/guides/image-gaat3.png?fit=max&auto=format&n=6oHBukEqmXlHScVq&q=85&s=e257e949deb8d5278416aa4f87276ba4" width="1366" height="640" data-path="images/guides/image-gaat3.png" />
    </Frame>
  </Step>

  <Step title="Use the API Key in your app">
    Now you can use this API Key as a Bearer Token Authorization header and call the Databrain APIs from your app.
  </Step>

  <Step title="You're done!">
    Yahoo! You have successfully created the API Key which you use to connect Databrain APIs from your app.
  </Step>
</Steps>
