API Reference
cURL
curl --request POST \ --url https://api.example.com/api/text2sql/predict \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "chartType": "<string>", "data": { "columns": [ "<string>" ], "rows": [ {} ] }, "mapping": { "xAxis": "<string>", "yAxis": "<string>", "valueAxis": "<string>" }, "predictPeriods": 5 } '
{ "success": true, "predictedData": [ { "period": "<string>", "predictedValue": 123, "confidenceLower": 123, "confidenceUpper": 123 } ], "chartType": "<string>", "confidence": "<string>", "trendAnalysis": "<string>", "error": "<string>" }
Generate prediction based on chart data
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request schema for data prediction
Chart type: bar, pie, line
Chart data
Show child attributes
Data mapping for axes
Number of periods to predict
Successful Response
Response schema for data prediction