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

# Spacelift connection

> Learn how to configure a Spacelift Connection for Infisical.

Infisical supports connecting to Spacelift using an API key ID and API key secret for secure access to your Spacelift account.

## Create an API key in Spacelift

**1. Navigate to Organization Settings**

Select your profile name and select **Organization Settings** at the bottom left side of the Spacelift dashboard.

![Navigate to Organization Settings](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-navigate-to-org-settings.png)

**2. Open API Keys**

Select **API Keys** under the identity management section.

![Open API Keys](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-open-api-keys.png)

**3. Create API Key**

Select **Create API Key**.

![Create API Key](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-create-api-key.png)

**4. Set a Name**

Set a name for the API key, choose the type **Secret** and select **Continue**.

![Set API Key Name](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-set-api-key-name.png)

**5. Configure Roles, Space, and Create**

Select the **Space admin** role (or a custom role with at least **Space reader**, **Space writer**, and **Context update** permissions), choose the Space that will be managed by this credential, then select **Add** and **Create API Key**. A file will be downloaded containing your credentials.

![Select Roles](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-select-roles.png)

**6. Extract Credentials**

Open the downloaded file and extract the `api_key_id` and `api_key_secret` values.

## Setup Spacelift connection in Infisical

**1. Navigate to App Connections**

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/revamped-app-connection-tab.png)

**2. Add Connection**

Select the **Spacelift Connection** option from the connection options modal.

![Select Spacelift Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-app-connection-select.png)

**3. Input Credentials**

Enter your Spacelift API URL, API Key ID, and API Key Secret in the provided fields and
select **Connect to Spacelift** to establish the connection.

> [!NOTE]
>
> The API URL is the base URL of your Spacelift account (e.g., `https://myorgname.app.us.spacelift.io/`).

![Connect to Spacelift](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-app-connection-form.png)

**4. Connection Created**

Your **Spacelift Connection** is now available for use in your Infisical projects.

![Spacelift Connection Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/spacelift/spacelift-app-connection-created.png)


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