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

# Northflank connection

> Learn how to configure a Northflank Connection for Infisical.

Infisical supports the use of [API Tokens](https://northflank.com/docs/v1/api/use-the-api) to connect with [Northflank](https://northflank.com).

> [!TIP]
>
> Infisical recommends creating a specific API role for the app connection and only giving access to projects that will use the integration.

## Create a Northflank API token

**1. Create an API Role**

Navigate to your team page and select **Create token**.

![Create API Role](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-1.png)

Click on **Create API role**.

![Create API Role](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-2.png)

Select all the projects you want this role to have access to, or leave this unchecked if you want to give access to all projects.

![Create API Role](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-3.png)

Add the **Projects** -> **Manage** -> **Read** permission.

![Create API Role](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-4-1.png)

Add the **Config & Secrets** -> **Secret Groups** -> **List**, **Update**, **Read Keys**, and **Read Values** permissions.

![Create API Role](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-4-2.png)

Scroll to the bottom and save the API role.

**2. Create an API Token**

Select the **API** -> **Tokens** menu on the left and then select the **Create API token** button.

![Create API Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-5.png)

Give a name to the API token and click the **Use role** button for the new API role you just created.

![Create API Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-6.png)

Click the **View API token** icon to view and copy your token.

![Create API Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/step-7.png)

## Create a Northflank connection in Infisical

> [tab] Infisical UI
>
> **1. Navigate to App Connections**
>
> In your Infisical dashboard, navigate to the **Integrations** tab in the desired project, then select **App Connections**.
>
> ![App Connections Tab](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/general/add-connection.png)
>
> **2. Select Northflank Connection**
>
> Click **+ Add Connection** and choose **Northflank Connection** from the list of integrations.
>
> ![Select Northflank Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/northflank-app-connection-option.png)
>
> **3. Fill out the Northflank Connection form**
>
> Complete the form by providing:
>
> * A descriptive name for the connection
> * An optional description
> * The API Token from the previous step
>
>   ![Northflank Connection Modal](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/northflank-app-connection-form.png)
>
> **4. Connection created**
>
> After submitting the form, your **Northflank Connection** will be successfully created and ready to use with your Infisical project.
>
> ![Northflank Connection Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/northflank/northflank-app-connection-generated.png)

> [tab] API
>
> To create a Northflank Connection via API, send a request to the [Create Northflank Connection](https://infisical.com/docs/api-reference/endpoints/app-connections/northflank/create.md) endpoint.
>
> ### Sample request
>
> ```bash Request theme={"dark"}
> curl    --request POST \
>         --url https://app.infisical.com/api/v1/app-connections/northflank \
>         --header 'Content-Type: application/json' \
>         --data '{
>             "name": "my-northflank-connection",
>             "method": "api-token",
>             "projectId": "abcdef12-3456-7890-abcd-ef1234567890",
>             "credentials": {
>                 "apiToken": "[API TOKEN]"
>             }
>         }'
> ```
>
> ### Sample response
>
> ```bash Response theme={"dark"}
> {
>   "appConnection": {
>       "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
>       "name": "my-northflank-connection",
>       "description": null,
>       "projectId": "abcdef12-3456-7890-abcd-ef1234567890",
>       "version": 1,
>       "orgId": "abcdef12-3456-7890-abcd-ef1234567890",
>       "createdAt": "2025-01-23T10:15:00.000Z",
>       "updatedAt": "2025-01-23T10:15:00.000Z",
>       "isPlatformManagedCredentials": false,
>       "credentialsHash": "d41d8cd98f00b204e9800998ecf8427e",
>       "app": "northflank",
>       "method": "api-token",
>       "credentials": {}
>   }
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.