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

# Set up service accounts for applications

> In RisingWave Cloud, a user account typically represents an individual user who interacts with resources via the user interface. On the other hand, a service account represents an application. It accesses RisingWave Cloud resources on the application's behalf, using API keys for authentication.

This article will guide you through the process of setting up a service account for your applications and generating an API key.

## Create a service account

**Steps:**

1. Go to the [**Org.**](https://cloud.risingwave.com/organization/) tab and select **Service accounts**.
2. Click **New service account**.

<Frame>
  <img src="https://mintcdn.com/risingwavelabs/9WnDe1wUSbIzC8ce/images/cloud/service-account/org-create-service-account.png?fit=max&auto=format&n=9WnDe1wUSbIzC8ce&q=85&s=630bc996bd67dd67c688d397655c1812" width="942" height="1262" data-path="images/cloud/service-account/org-create-service-account.png" />
</Frame>

3. Enter a descriptive name for your service account and write a short description.
4. Click **Confirm**.

<Frame>
  <img src="https://mintcdn.com/risingwavelabs/9WnDe1wUSbIzC8ce/images/cloud/service-account/org-service-account.png?fit=max&auto=format&n=9WnDe1wUSbIzC8ce&q=85&s=59fdb268a78b000b32a3453ff08ff220" width="2238" height="584" data-path="images/cloud/service-account/org-service-account.png" />
</Frame>

## Generate an API key

You can generate multiple API keys for a service account. Each API key will have a unique key ID and secret.

**Steps:**

1. In the account list, click the name of the service account you want to generate API keys for.
   <Frame>
     <img src="https://mintcdn.com/risingwavelabs/9WnDe1wUSbIzC8ce/images/cloud/service-account/org-service-account-1.png?fit=max&auto=format&n=9WnDe1wUSbIzC8ce&q=85&s=ef2c2bba86d0e2628861dbb65159a3c1" width="10124" height="2642" data-path="images/cloud/service-account/org-service-account-1.png" />
   </Frame>

2. Select the **API Keys** tab.
   <Frame>
     <img src="https://mintcdn.com/risingwavelabs/9WnDe1wUSbIzC8ce/images/cloud/service-account/org-service-account-api-empty.png?fit=max&auto=format&n=9WnDe1wUSbIzC8ce&q=85&s=214b2dfa1591b262ad4fb4f90e39598f" width="9260" height="4688" data-path="images/cloud/service-account/org-service-account-api-empty.png" />
   </Frame>

3. Click **Add new API Key**.

4. Enter a descriptive name for your API key and click **Submit**.

5. A new API key will be generated. Please save the secret along with the ID to a safe place.
   <Warning>
     The secret will be shown only once. After you close the dialog, you won't be able to retrieve it. If you lose the secret, you have to generate a new API key.
   </Warning>
   <Frame>
     <img src="https://mintcdn.com/risingwavelabs/9WnDe1wUSbIzC8ce/images/cloud/service-account/org-service-account-api-key.png?fit=max&auto=format&n=9WnDe1wUSbIzC8ce&q=85&s=eebc6b9112d80850eb74ab63a0abc3b8" width="8416" height="5302" data-path="images/cloud/service-account/org-service-account-api-key.png" />
   </Frame>
