Overview
The KPI Dashboard API provides comprehensive metrics tracking and visualization for your automotive dealership operations. Monitor sales performance, inventory metrics, customer satisfaction, and create custom KPIs tailored to your business needs.Endpoints
Get All KPIs
/kpis
Get Visible KPIs Only
/kpis/visible
isVisible: true.
Get KPI by ID
/kpis/
KPI UUID
Create Custom KPI
/kpis
Unique identifier key (lowercase, underscores)
Display title for the KPI
Detailed description of what this KPI measures
Formula or calculation logic
Type:
BUILTIN, CUSTOMData type:
NUMBER, CURRENCY, PERCENTAGE, DURATION, TEXTIcon identifier (FontAwesome icon name)
Hex color code for visualization
Sort order for dashboard display
Whether KPI is visible on dashboard (default: true)
Aggregation method:
sum, average, count, min, maxDatabase model to aggregate from
Field to aggregate
Update KPI
/kpis/
KPI UUID
Delete KPI
/kpis/
KPI UUID
Reorder KPIs
/kpis/reorder
Toggle KPI Visibility
/kpis//toggle
KPI UUID
Reset to Default KPIs
/kpis/reset
- Restore all built-in KPIs to default settings
- Remove all custom KPIs
- Reset display order and visibility
Update KPI Chart Configuration
/kpis//chart
KPI UUID
Chart type:
NONE, DONUT, BAR, LINE, AREA, RADIALEnable/disable chart display
Chart-specific configuration options
Get KPI Chart Data
/kpis//chart-data
KPI UUID
Time range:
7d, 30d, 90d (default: 30d)Built-in KPIs
Steer AI provides the following built-in KPIs out of the box:| Key | Title | Data Type | Description |
|---|---|---|---|
avg_days_to_sell | Average Days to Sell | DURATION | Time from listing to sale |
avg_selling_price | Average Selling Price | CURRENCY | Mean vehicle sale price |
gross_profit_margin | Gross Profit Margin | PERCENTAGE | Revenue minus COGS percentage |
avg_age_of_inventory | Average Age of Inventory | DURATION | Days vehicles stay in inventory |
inventory_turnover_ratio | Inventory Turnover Ratio | NUMBER | How quickly inventory sells |
customer_satisfaction_score | Customer Satisfaction | PERCENTAGE | Customer satisfaction rating |
customer_retention_rate | Customer Retention Rate | PERCENTAGE | Repeat customer percentage |
total_repair_cost | Total Repair Cost | CURRENCY | Sum of all repair expenses |
Data Types
NUMBER
Raw numeric values (e.g., 1234, 567.89)CURRENCY
Monetary values formatted with currency symbols (e.g., $1,234.56, MAD 5,000.00)PERCENTAGE
Values displayed as percentages (e.g., 18.5%, 92.3%)DURATION
Time periods in days or hours (e.g., 28 days, 3.5 hours)TEXT
String values for non-numeric KPIsChart Types
DONUT
Circular chart showing proportional distributionBAR
Vertical or horizontal bar chart for comparisonsLINE
Line graph showing trends over timeAREA
Area chart showing cumulative trendsRADIAL
Radial/gauge chart for single-value metricsNONE
No chart visualizationUse Cases
Example 1: Track Sales Performance
Example 2: Create Custom Conversion Rate KPI
Example 3: Get Historical Chart Data
Best Practices
Start with built-in KPIs
Start with built-in KPIs
Use the provided built-in KPIs before creating custom ones. They’re optimized and battle-tested.
Limit dashboard KPIs to 6-8
Limit dashboard KPIs to 6-8
Too many KPIs create clutter. Focus on your most critical metrics.
Use consistent time ranges
Use consistent time ranges
Compare KPIs using the same time periods for meaningful insights.
Document custom KPI formulas
Document custom KPI formulas
Clearly document how custom KPIs are calculated for team understanding.
Review and adjust regularly
Review and adjust regularly
KPIs should evolve with your business. Review quarterly and adjust as needed.
Error Codes
| Code | Status | Description |
|---|---|---|
KPI_NOT_FOUND | 404 | KPI ID does not exist |
CANNOT_DELETE_BUILTIN | 400 | Cannot delete built-in KPIs |
CANNOT_MODIFY_BUILTIN_LOGIC | 400 | Cannot change calculation of built-in KPIs |
DUPLICATE_KPI_KEY | 400 | KPI key already exists |
INVALID_CHART_TYPE | 400 | Chart type not supported |
Dashboard KPIs Guide
Learn more about optimizing your KPI dashboard