# Save a connection

Store the credentials a step needs to reach another service once, then reuse them in any automation.

Source: https://support.rework.com/article/save-a-connection

Many steps talk to another service: your billing system, a partner's API, a Google spreadsheet. Pasting a password or token into each of those steps would scatter secrets across the workspace and break everything the day the token changes. A **connection** saves the credentials once, encrypted, and every step that needs them simply picks the connection by name. Here's how to create and manage one.

> **Note:** Everyone in the workspace can see which connections exist and pick them in a step. Editing or deleting a connection is limited to the person who created it and to Automation app admins.

## Step 1: Open Connections

- In the left sidebar, click **Connections**.
  
- The page lists every connection in the workspace with its type, for example **Northwind Ops API** · **HTTP Bearer**.
  
- Click **New connection**.
  

![The Connections page with the New connection button and an existing connection](https://storage.googleapis.com/reworkv3-public/success/260923/hIAkSgPXY45gPcmsYkUv9gzFJY2GLfl6UsqRuWvkYyTT7231id8I1nGWb0q5pqJM/img.pvUFFbv36KGRXZhVBBk8MDhGQidVVKPSvtrN79pE4wsMXiieHLPv94iDRAAyqtkT.png)

## Step 2: Choose the type

Open **Type** and pick how the other service expects you to sign in:

| Type | Use it when the service asks for |
| --- | --- |
| **HTTP Basic Auth** | A username and a password |
| **HTTP Bearer Token** | A token sent as `Authorization: Bearer …` |
| **HTTP API Key** | A key sent in a header, for example `X-Api-Key` |
| **OAuth2 (manual tokens)** | An access token and refresh token you already have |
| **AI — Gemini** | A Gemini API key, for AI steps |
| **Google Sheets**, **Google Drive**, **Google Forms** | Access to your Google account |

![The Type list in the New connection dialog](https://storage.googleapis.com/reworkv3-public/success/260923/bg6rsq6tf2DW4hgY8qOUdwo7EI6p5meIOvHkIohsXBpoBsimKhyXlNvKKcANY6Er/img.SWFoNFN0KHTiAclkpHIIn05MTcb2Gg5nyO9P1m8ag6T4mp8Py8u6tV4bzIBnQSpT.png)

## Step 3: Enter the credentials

- Give the connection a **Name** that says what it reaches, for example _Northwind Ops API_. This is the name people pick in their steps.
  
- Fill in the fields for the type you chose. For **HTTP Bearer Token**, paste the **Bearer token**.
  
- Click **Create**.
  

![The New connection dialog filled in for an HTTP Bearer Token](https://storage.googleapis.com/reworkv3-public/success/260923/o4aKXsXe2vKceNWQKoPGYMFWcvkEB7Jte4B7OHJPgwDUiiMqJrScrd9yWqKKapLz/img.1wkSH267UH7yf5UUkm0G1uCJw317YXoRk7SA6lLwzUWE3ZlyWlvuxiVndOInuaIR.png)

For the Google types there's nothing to type: click **Connect with Google**, sign in to Google and allow access. The connection takes its name from the Google account you chose.

## Step 4: Update a connection

Credentials are stored encrypted and never shown again after you save them.

- Click the connection's name on the list to edit it.
  
- Leave the credential fields empty to keep what's saved, or type a new value to replace it.
  
- Click **Save**. Every automation that uses the connection picks up the change on its next run.
  

![Editing a connection, with the credential fields left blank to keep the current values](https://storage.googleapis.com/reworkv3-public/success/260923/4ql2KLdKozdsULLkeujy9rHEaUARN1zFsldCBgOYWC65P51f2HzD5GIDBzGjjbPD/img.1wi96e10lkK4sUzznBbdJKw1t9RblfpwZ4Qhdqy8eYnXhFDawUwGev5b4jhZKQnE.png)

If a Google connection stops working because access was revoked or expired, the list marks it **Expired — reconnect** and the **Overview** page flags the automations it affects. No problem: open it and click **Reconnect with Google**.

## Step 5: Use it in a step

Steps that call another service, such as **HTTP request**, have a **Connection** field. Pick the connection by name there. See [Call an API from a flow](https://support.rework.com/article/call-an-api-from-a-flow).

![The Connection field in an HTTP request step](https://storage.googleapis.com/reworkv3-public/success/260923/f7sQu4NEo6HdwAN51oq5hQdT4ngdUTLdIGbsR8x9hXnLiwJNOolsO2YOmB8UQS9s/img.xCYJ9Fl8ovWnac2f12ZtINUM5tuDZ8OGU1NdfWkjbX2b7WX1Bq5pEKM78twTjaQO.png)

## Delete a connection

Click the delete button on the connection's row and confirm with **Delete**. Automations that still use it will fail at their next run, so switch those steps to another connection first. 💡

![The Delete connection confirmation](https://storage.googleapis.com/reworkv3-public/success/260923/YnPg4l9tmpvEpwr7roXLpwZNKPoCp6JQ30zzsqmOnyI2wIUNCEYRrH5UM1hsvVhA/img.P1bPssypxT1PRuRFJ1Jd5bjeXqpjuVIuoguF9vfes11BKn2dwjYV0Qfdo4bbRXE0.png)
