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

# Arnica Instructions

> Instructions on how to generate credentials for Arnica.

For Leen to authenticate with Arnica, we require the following:

1. **Access Token**: Arnica API Key used to authenticate requests to Arnica.

Leen requires this access token to have the scope **risks:read**. In the following section, we will cover how to create an Arnica API Key with the minimum required permissions.

## Setup and Permissions

<Steps>
  <Step title="Create a new API key">
    From your Arnica Console, open up the sidebar menu and navigate to the **API** page.

    <img src="https://mintcdn.com/leen/vQ2Rhs44KY1LGMJC/images/arnica/api-page.png?fit=max&auto=format&n=vQ2Rhs44KY1LGMJC&q=85&s=230a10044b8d8ac8748d5a2dfd279853" alt="" width="2536" height="1418" data-path="images/arnica/api-page.png" />

    Here, you can see a list of existing API Keys. If you already have an API key with the required permissions, you can use that. Otherwise, click on the **Create API key** button to create a new one.

    <img src="https://mintcdn.com/leen/vQ2Rhs44KY1LGMJC/images/arnica/create-api-key.png?fit=max&auto=format&n=vQ2Rhs44KY1LGMJC&q=85&s=b6f6ebd95e50b2ca906539f6c28e3f9f" alt="" width="2504" height="1318" data-path="images/arnica/create-api-key.png" />
  </Step>

  <Step title="Select Permissions">
    To create a new API Key, give it a name and select only the **risks:read** permissions.

    <img src="https://mintcdn.com/leen/vQ2Rhs44KY1LGMJC/images/arnica/api-permissions.png?fit=max&auto=format&n=vQ2Rhs44KY1LGMJC&q=85&s=d998e908006719d5ddcef362a6e18035" alt="" width="2494" height="1414" data-path="images/arnica/api-permissions.png" />
  </Step>

  <Step title="Copy API Key">
    Once you have selected the permissions and created the API key, copy the key and use it to create a new connection in Leen.

    <img src="https://mintcdn.com/leen/vQ2Rhs44KY1LGMJC/images/arnica/api-key.png?fit=max&auto=format&n=vQ2Rhs44KY1LGMJC&q=85&s=78e998a62535a04b1fef5372209dfa1c" alt="" width="2490" height="578" data-path="images/arnica/api-key.png" />
  </Step>
</Steps>
