> ## 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.

# Fly.io connection

> Learn how to configure a Fly.io Connection for Infisical.

Infisical supports the use of [Access Tokens](https://fly.io/docs/security/tokens/) to connect with Fly.io.

## Create Fly.io access token

**1. Navigate to 'Access Tokens'**

![Dashboard Page](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/flyio/dashboard-page.png)

**2. Click 'Create Token'**

![Select Create Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/flyio/create-token.png)

**3. Provide Token Information**

Ensure that you give this token access to the correct app, then select 'Create Token'.

![Create Token Page](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/flyio/create-token-page.png)

**4. Save Token**

After clicking 'Create Token', a modal containing your access token will appear. Save this token for later steps.

## Create Fly.io 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 Fly.io Connection**
>
> Click the **+ Add Connection** button and select the **Fly.io Connection** option from the available integrations.
>
> ![Select Fly.io Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/flyio/app-connection-option.png)
>
> **3. Fill out the Fly.io Connection Modal**
>
> Complete the Fly.io Connection form by entering:
>
> * A descriptive name for the connection
> * An optional description for future reference
> * The Access Token from earlier steps
>
>   ![Fly.io Connection Modal](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/flyio/app-connection-modal.png)
>
> **4. Connection Created**
>
> After clicking Create, your **Fly.io Connection** is established and ready to use with your Infisical project.
>
> ![Fly.io Connection Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/flyio/app-connection-created.png)

> [tab] API
>
> To create a Fly.io Connection, make an API request to the [Create Fly.io Connection](https://infisical.com/docs/api-reference/endpoints/app-connections/flyio/create.md) API endpoint.
>
> ### Sample request
>
> ```bash Request theme={"dark"}
> curl    --request POST \
>         --url https://app.infisical.com/api/v1/app-connections/flyio \
>         --header 'Content-Type: application/json' \
>         --data '{
>             "name": "my-flyio-connection",
>             "method": "access-token",
>             "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
>             "credentials": {
>                 "accessToken": "[PRIVATE TOKEN]"
>             }
>         }'
> ```
>
> ### Sample response
>
> ```bash Response theme={"dark"}
> {
>   "appConnection": {
>       "id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
>       "name": "my-flyio-connection",
>       "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
>       "description": null,
>       "version": 1,
>       "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
>       "createdAt": "2025-04-23T19:46:34.831Z",
>       "updatedAt": "2025-04-23T19:46:34.831Z",
>       "isPlatformManagedCredentials": false,
>       "credentialsHash": "7c2d371dec195f82a6a0d5b41c970a229cfcaf88e894a5b6395e2dbd0280661f",
>       "app": "flyio",
>       "method": "access-token",
>       "credentials": {}
>   }
> }
> ```


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