> ## Documentation Index
> Fetch the complete documentation index at: https://risingwavelabs-wyx-add-timestamp-dedicated-page.mintlify.site/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-wyx-add-timestamp-dedicated-page/qTWoSW8PfgF4lEVu/images/cloud/service-account/org-create-service-account.png?fit=max&auto=format&n=qTWoSW8PfgF4lEVu&q=85&s=d2b4de2c3cc674a7dd4688a0bf051459" 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-wyx-add-timestamp-dedicated-page/qTWoSW8PfgF4lEVu/images/cloud/service-account/org-service-account.png?fit=max&auto=format&n=qTWoSW8PfgF4lEVu&q=85&s=31964170115546eab1e6310a8fd29cfc" 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-wyx-add-timestamp-dedicated-page/qTWoSW8PfgF4lEVu/images/cloud/service-account/org-service-account-1.png?fit=max&auto=format&n=qTWoSW8PfgF4lEVu&q=85&s=d1ed24133e36180c01f2dc7656144e79" width="10124" height="2642" data-path="images/cloud/service-account/org-service-account-1.png" />
</Frame>

1. Select the **API Keys** tab.

<Frame>
  <img src="https://mintcdn.com/risingwavelabs-wyx-add-timestamp-dedicated-page/qTWoSW8PfgF4lEVu/images/cloud/service-account/org-service-account-api-empty.png?fit=max&auto=format&n=qTWoSW8PfgF4lEVu&q=85&s=5070e08d83ae86702d1ec882fc05a161" width="9260" height="4688" data-path="images/cloud/service-account/org-service-account-api-empty.png" />
</Frame>

1. Click **Add new API Key**.
2. Enter a descriptive name for your API key and click **Submit**.
3. 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-wyx-add-timestamp-dedicated-page/qTWoSW8PfgF4lEVu/images/cloud/service-account/org-service-account-api-key.png?fit=max&auto=format&n=qTWoSW8PfgF4lEVu&q=85&s=f47069adf5866ac422126f566850647e" width="8416" height="5302" data-path="images/cloud/service-account/org-service-account-api-key.png" />
</Frame>
