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

# Portal Setup

> Create an account and get your Premium API key

## Getting Started with Premium API

Access the Raze.bot Portal to manage your Premium API subscription.

<Card title="Open Portal" icon="arrow-up-right-from-square" href="https://raze.bot">
  Go to raze.bot
</Card>

## Setup Steps

<Steps>
  <Step title="Create an Account">
    Visit [raze.bot](https://raze.bot) and create your account.

    * Enter your email address
    * Create a secure password
    * Verify your email
  </Step>

  <Step title="Choose Your API">
    Select the API plan that fits your needs:

    * **Swap API**: Quote and swap endpoints for trading
    * **Data API**: Trades, tokens, alerts, and sentiment data
    * **Full Access**: All Premium features
  </Step>

  <Step title="Top Up Your Account">
    Add funds to your account using cryptocurrency:

    * Click "Top Up" or "Add Funds"
    * Select your payment amount
    * Complete payment via [Way.cash](https://way.cash) gateway

    See [Payment Methods](/portal/payment) for supported chains.
  </Step>

  <Step title="Choose Subscription">
    Select your subscription plan:

    * Monthly or annual billing
    * Different tiers based on usage needs
    * Upgrade or downgrade anytime
  </Step>

  <Step title="Generate API Key">
    Create your API key:

    * Navigate to "API Keys" section
    * Click "Generate New Key"
    * Copy and securely store your key

    <Warning>
      Your API key is shown only once. Store it securely!
    </Warning>
  </Step>
</Steps>

## Using Your API Key

Include your API key as a query parameter in all Premium API requests:

```javascript theme={null}
// Example: Get quote
const mint = 'TOKEN_MINT_ADDRESS';
const apiKey = process.env.RAZE_API_KEY;

const response = await fetch(
  `https://router.raze.bot/sol/quote/${mint}?apiKey=${apiKey}`
);
```

```python theme={null}
# Python example
import requests
import os

mint = 'TOKEN_MINT_ADDRESS'
api_key = os.getenv('RAZE_API_KEY')

response = requests.get(
    f'https://router.raze.bot/sol/quote/{mint}',
    params={'apiKey': api_key}
)
```

## API Key Security

<Warning>
  Keep your API key secure. Never share it or expose it in client-side code.
</Warning>

Best practices:

* Store in environment variables
* Never commit to version control
* Rotate keys periodically
* Use separate keys for development and production

## Managing Your Subscription

In the portal you can:

* View usage statistics
* Upgrade or downgrade plans
* Add additional API keys
* View billing history
* Cancel subscription

## Need Help?

<CardGroup cols={2}>
  <Card title="Discord Support" icon="discord" href="https://discord.com/invite/RNK5v92XpB">
    Join our community
  </Card>

  <Card title="Telegram" icon="telegram" href="https://t.me/razesolana">
    Get quick support
  </Card>
</CardGroup>
