---
url: /premium/api-keys.md
description: >-
  Create, manage, and secure the rotki premium API key and secret credentials
  used to activate your subscription in the app, with security best practices.
---

# API Credentials

rotki premium uses API credentials to connect your subscription to the rotki application. This guide explains how to create, manage, and secure your API credentials.

## What are rotki Premium API Credentials?

The API Key and Secret are authentication credentials that:

* Link your rotki app to your premium subscription
* Enable premium features in the application
* Allow cloud backup and sync across devices
* Identify your account for device limit management

## Creating API Credentials

After purchasing a subscription, you need to manually generate your API credentials:

1. Go to your [subscription page](https://rotki.com/home/subscription)
2. Navigate to the **API Credentials** section
3. Click the **Create** button
4. Your credentials will be generated and displayed:
   * **API Key** - Your public identifier
   * **API Secret** - Your private authentication token
5. You can view both credentials anytime from your subscription page

::: info Manual Generation Required
API Credentials are not automatically created after payment. You must click the button to generate them for the first time.
:::

## Using API Credentials in the App

After creating your API credentials, add them to rotki:

1. Open the rotki application
2. Navigate to **API Keys** → **rotki Premium** in the sidebar
3. Enter your **API Key** and **API Secret**
4. Click **Setup**

![Set up rotki premium API key/secret pair in an existing account](/images/premium/api-keys/premium_set.webp)

## Managing API Credentials

### Viewing Your Credentials

From your [subscription page](https://rotki.com/home/subscription):

* Both your API Key and Secret are always visible
* You can copy them anytime you need
* You can see when the key was created

### Regenerating Credentials

If you need to create new credentials:

1. Go to your [subscription page](https://rotki.com/home/subscription)
2. Click the **Regenerate** button
3. Your new API Key and Secret will be generated and displayed
4. Update credentials on all your devices

::: tip When to Regenerate

* If you suspect your credentials have been compromised
* If you want to revoke access from all devices
  :::

## Security Best Practices

### Protecting Your Credentials

::: danger Keep Your Secret Safe

* **Never** share your API Secret with anyone
* **Never** post it in public forums or Discord
* **Never** commit it to version control (Git, etc.)
* **Never** send it via unencrypted channels
  :::

### Storage Recommendations

Store your API credentials securely:

* Use a password manager (1Password, Bitwarden, KeePass, etc.)
* Keep backups in a secure location
* Don't save them in plain text files
* Don't email them to yourself

### If Credentials are Compromised

If you believe your API credentials have been exposed:

1. **Immediately** regenerate your API credentials from the [subscription page](https://rotki.com/home/subscription) by clicking **Regenerate**
2. Update all your legitimate devices with the new credentials
3. Monitor your account for unusual activity

## API Keys and Device Limits

Each premium tier has a device limit. Each rotki app account where you add your
API credentials is registered as a new device and counts toward your device limit.

For more information about managing your devices, device limits, and what to do
when you exceed your device limit, see the [Device Management](/premium/devices) documentation.

## Troubleshooting

### Invalid API Key/Secret Error

If you see authentication errors:

1. Verify you copied the credentials correctly (no extra spaces)
2. Ensure your subscription is active (check [subscription page](https://rotki.com/home/subscription))
3. Verify your API credentials are still visible on the subscription page
4. Try regenerating your credentials

### Can't See My API Key/Secret

If you can't see your credentials on the subscription page:

1. Verify you're logged in to the correct rotki.com account
2. Ensure you've already generated API credentials (if not, click the generate button)
3. Refresh the page
4. Contact <info@rotki.com> if the issue persists

### Premium Features Not Working

If premium features aren't activating:

1. Verify API credentials are entered correctly in the app
2. Check your subscription is active and not expired
3. Ensure you haven't exceeded your device limit
4. Try removing and re-adding the credentials
5. Check the app logs for specific errors

When premium is successfully activated in the app you should see a `rotki Premium is active` banner in the rotki Premium view.

![Active rotki premium](/images/premium/api-keys/active_premium.webp)

### Multiple Devices Not Syncing

If sync isn't working across devices:

1. Verify all devices use the same API credentials
2. Ensure "Allow data sync with rotki Server" is enabled (see [Sync Guide](/usage-guides/#sync-data-with-rotki-server))
3. Check you haven't exceeded device limits
4. Manually trigger sync from the toolbar
