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

# Ona connection

> Learn how to configure an Ona Connection for Infisical.

Infisical supports connecting to [Ona](https://www.gitpod.io/) (Gitpod's cloud development environment platform) using a Personal Access Token (PAT).

## Create an Ona personal access token

**1. Open your user settings on Ona**

In the lower-left corner of Ona, select your name, then select the gear icon to open user settings.

![Open Account setting](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-account-settings.png)

**2. Select the Personal Access Tokens tab**

![PAT tab](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-access-token-tab.png)

**3. Create the token**

Select the **New Token** button and add a description for the token (e.g., "infisical integration"). The token must have Read & Write access so that Infisical can apply changes in Ona.

> [!NOTE]
>
> Personal access tokens have an expiration date, so you will need to manually rotate them before they expire to avoid integration downtime. Consider setting a calendar reminder for this task.

![Open PAT section](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-pat-section.png)

![New token modal](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-pat-creation-modal.png)

**4. Copy the token**

Make sure to save the token, as it won't be shown again.

![Copy Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-pat-copy.png)

## Create an Ona connection in Infisical

> [tab] Infisical UI
>
> **1. Navigate to App Connections**
>
> In your Infisical dashboard, open the **Integrations** tab for the desired project and select **App Connections**. Select **+ Add Connection**.
>
> ![App Connections Tab](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/general/add-connection.png)
>
> **2. Select Ona Connection**
>
> Choose **Ona Connection** from the list of integrations.
>
> ![Select Ona Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-app-connection-option.png)
>
> **3. Fill out the Ona Connection form**
>
> Complete the form by providing:
>
> * A descriptive **Name** for the connection.
> * An optional **Description**.
> * The **Personal Access Token** you generated in Ona.
>
>   ![Ona Connection Modal](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-app-connection-form.png)
>
> **4. Connection created**
>
> After submitting the form, your **Ona Connection** will be created.
>
> ![Ona Connection Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/ona/ona-app-connection-generated.png)

> [tab] API
>
> To create an Ona Connection via API, send a request to the [Create Ona Connection](https://infisical.com/docs/api-reference/endpoints/app-connections/ona/create.md) endpoint.
>
> ### Sample request
>
> ```bash Request theme={"dark"}
> curl    --request POST \
>         --url https://app.infisical.com/api/v1/app-connections/ona \
>         --header 'Content-Type: application/json' \
>         --data '{
>             "name": "my-ona-connection",
>             "method": "personal-access-token",
>             "projectId": "abcdef12-3456-7890-abcd-ef1234567890",
>             "credentials": {
>                 "personalAccessToken": "[PERSONAL ACCESS TOKEN]"
>             }
>         }'
> ```
>
> ### Sample response
>
> ```bash Response theme={"dark"}
> {
>   "appConnection": {
>       "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
>       "name": "my-ona-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": "ona",
>       "method": "personal-access-token",
>       "credentials": {}
>   }
> }
> ```


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