logo

Chatbot

Learn how to generate and use API Keys for the DashX Chatbot platform to securely integrate and manage your bot.

Managing Your Chatbot API Keys

API Keys are required to authenticate requests to DashX's Chatbot APIs. You can create, regenerate, and delete API Keys directly from your dashboard.

How to Create a Chatbot API Key

  1. Visit our DashX Chatbot Dashboard at https://ai.dashx.xyz
  2. Login with your DashX Chatbot account credentials.
  3. Navigate to the Chatbot → API Keys section in the sidebar.
  4. Click the Add New Key button in the bottom-left.
  5. Generate Chatbot API Key
  6. Provide a title and description for your key (e.g. Production Bot) and click Add key.
  7. Generate Chatbot API Key
  8. Make sure to copy and store your API Secret Key securely. It will only be shown once.
  9. Only 3 API keys are allowed per account

Using Your API Keys

Authentication

X-API-KEY: xxxxxxxxxxxxxxxxxxxxx

These headers are required for each API request. You can retrieve your Chatbot ID in the API Keys section of the dashboard.

Supported Endpoints

1. Send Message to Chatbot

POST /chat/
X-API-KEY: xxxxxxxxxxxxxxxxxxxxx


{
  "user_message": "what's dashx all about"
}

Response

{
  "reply": "DashX is a DeFi payments platform that provides fast, chain-abstracted payments across multiple blockchains with cashbacks and rewards. It is built to be fast, secure, and efficient!"
}

2. Get Wallet Analysis

GET /chat/portfolio/
X-API-KEY: xxxxxxxxxxxxxxxxxxxxx

{
  "portfolio": [
    { "token": "ETH", "amount": 2.5 },
    { "token": "BTC", "amount": 1.0 }
  ],
  "risk_tolerance": "aggressive", // optional: 'conservative', 'balanced', 'aggressive'
  "time_horizon": "long" // optional: 'short', 'long'
}

Response

{
  "sentiment": "Overall, the market sentiment is bearish with most tokens predicted to go down.

Details:
ETH is predicted to go down by 1.62 USD.
BTC is predicted to go down by 120.00 USD.
SOL is predicted to go down by 138.58 USD.
ARB is predicted to go down by 0.30 USD.",
  "analysis": [
    {
      "token": "ETH",
      "amount": 2.5,
      "current_price": 1614.7171200904,
      "trend": "down",
      "recommendation": "Hold or Buy (aggressive)"
    },
    {
      "token": "BTC",
      "amount": 1.0,
      "current_price": 85080.809189512,
      "trend": "down",
      "recommendation": "Hold or Buy (aggressive)"
    }
  ],
  "diversification_warnings": [
    "Warning: BTC makes up more than 60% of your portfolio. Consider diversifying.",
    "All your tokens are moving in the same direction. Consider adding uncorrelated assets."
  ]
}