Skip to main content

Get Team Summary

GET 

/api/crm/team/summary

Get the sales manager's KPI cards and rep leaderboard for a period.

Required scope: customers:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token with the customers scope and the crm_activities.view_team permission (the reps of the sales rep groups you manage) or crm_activities.view_all (every active rep). A group you may not see returns 404.

Query parameters:

  • group_id (optional)
  • rep_ids[] (optional)
  • from / to (optional, both or neither; at most 366 days)

An activity counts for the sales rep it was recorded against (else the rep linked to its owner), in the period by its start time (or completion time). kpis.activities.logged counts completed visits, calls and meetings; goal is the weekly activity goal (CRM settings) prorated to the period, times the number of reps. conversion = completed visits with a quote or sales order raised from them between the visit (its check-in or start) and 7 days after it ÷ completed visits (rate 0–1, null with no visits). value_from_visits is the base-currency value (quotes converted from their own currency) of the orders (cancelled ones excluded) and quotes raised from the period's completed visits; an order made from a visit's quote counts for that visit, and the quote is then counted once, as the order. a_grade_overdue counts the team's grade A customers overdue for a visit; open_tasks_overdue counts open tasks past their due date.

Leaderboard rows are ranked by total: visits, calls, other (meetings), total, goal, percent_of_goal, converted_visits, conversion_rate, overdue_customers (the rep's customers overdue for a visit), open_tasks, overdue_tasks, last_activity_at (latest completed activity of any type, UTC), daily (one row per local day of the period, oldest first: {date, visits, calls, other, total}, counting the same completed visits, calls and meetings as the totals, by day in the account timezone, so a rep's days add up to their total) and calendar_status (the rep's user's calendar connection: connected, needs_reconnect when any of their calendars needs reconnecting so their busy time may be stale, or none).

Request​

Responses​

OK

Response Headers
    Content-Type