Learn how to generate and use API Keys for the DashX Chatbot platform to securely integrate and manage your bot.
API Keys are required to authenticate requests to DashX's Chatbot APIs. You can create, regenerate, and delete API Keys directly from your dashboard.
Production Bot
) and click Add key.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.
1. Send Message to Chatbot
POST /chat/ X-API-KEY: xxxxxxxxxxxxxxxxxxxxx { "user_message": "what's dashx all about" }
{ "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' }
{ "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." ] }