Tier 2 — Pull Stats

Metrics

Query the same aggregated metric engine that powers your Callix dashboard report widgets. Pass a comma-separated list of metric keys and a date range, and receive computed values back.

Coming soon

This endpoint is documented but not yet live. The reference below shows the final API shape — we'll update these docs when it ships.

Endpoints

GET/metricsQuery aggregated stats for a date range

GET /metrics

Query parameters

metricsstringComma-separated metric keys (see table below)
startDatenumberUnix ms — start of the date range (inclusive)
endDatenumberUnix ms — end of the date range (inclusive)
repIdstring?Filter metrics to a specific rep's calls and deals

Example request

bash
curl "https://<deployment>.convex.site/api/v1/metrics?metrics=calls_showed,close_rate,total_revenue&startDate=1745000000000&endDate=1748000000000" \
  -H "Authorization: Bearer callix_<key>"

Example response

json
{
  "metrics": [
    { "key": "calls_showed", "name": "Calls Showed", "value": 42 },
    { "key": "close_rate", "name": "Close Rate", "value": 0.31 },
    { "key": "total_revenue", "name": "Total Revenue", "value": 84500 }
  ],
  "startDate": 1745000000000,
  "endDate": 1748000000000
}

Available metric keys

calls_totalTotal number of calls recorded
calls_showedCalls where the prospect showed up
calls_no_showCalls where the prospect did not show
show_ratecalls_showed / calls_total
close_rateClosed deals / calls_showed
offers_madeCalls where an offer was made
total_revenueSum of all payment amounts
new_customersCount of prospects who made a payment
refundsSum of refunded payment amounts
closed_dealsCount of deals meeting the account's minimum payment threshold
dials_totalTotal number of dialer calls attempted
pickup_rateDials answered / dials_total
lead_countTotal number of prospects created
site_visitorsUnique tracked visitors (requires Callix pixel)
roastotal_revenue / ad spend (requires Meta integration)
profittotal_revenue minus ad spend and refunds