Metrics
HubSpot CRM metrics via API
Your customer connects their HubSpot CRM account and your product queries 26 metrics through the same endpoint as every other platform. Each metric has an id (reference_key) that goes in the request.
POST /api/metrics/get-data
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
{
"customer_integration": "<connection uuid>",
"start": "2026-10-01",
"end": "2026-10-31",
"comparison_start": "2026-09-01",
"comparison_end": "2026-09-30",
"metrics": [
{
"id": "m1",
"reference_key": "hubspot_crm:created_contacts",
"component": "number_v1",
"metrics": [
"created_contacts"
],
"dimensions": [
"contact"
]
}
]
}More HubSpot CRM request examples
The same endpoint for every kind of metric. The metrics and dimensions of each item come from the platform catalog (GET /api/metrics/{integration_slug}).
Chart
Won and lost deals
New deals from the analyzed period that were marked as won and lost.
POST /api/metrics/get-data
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
{
"customer_integration": "<connection uuid>",
"start": "2026-10-01",
"end": "2026-10-31",
"metrics": [
{
"id": "m1",
"reference_key": "hubspot_crm:won_lost_deals",
"component": "chart_v1",
"metrics": [
"closed_deals",
"lost_deals"
],
"dimensions": [
"deal"
]
}
]
}Table
Reason for lost deals
See the total number of lost deals in relation to the reasons for the loss.
POST /api/metrics/get-data
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
{
"customer_integration": "<connection uuid>",
"start": "2026-10-01",
"end": "2026-10-31",
"metrics": [
{
"id": "m1",
"reference_key": "hubspot_crm:reason_lost_deals",
"component": "datatable_v1",
"metrics": [
"lost_deals"
],
"dimensions": [
"reason"
]
}
]
}Number
Assigned contacts
Number of contacts that were assigned to an owner during the analyzed period.
POST /api/metrics/get-data
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
{
"customer_integration": "<connection uuid>",
"start": "2026-10-01",
"end": "2026-10-31",
"metrics": [
{
"id": "m1",
"reference_key": "hubspot_crm:assigned_contacts",
"component": "number_v1",
"metrics": [
"assigned_contacts"
],
"dimensions": [
"contact"
]
}
]
}Numbers
17 metrics
Created contacts
Number of contacts created on the account during the analyzed period.
hubspot_crm:created_contactsAssigned contacts
Number of contacts that were assigned to an owner during the analyzed period.
hubspot_crm:assigned_contactsWorked contacts
Number of contacts that had sales activity recorded during the analysis period.
hubspot_crm:worked_contactsUnworked contacts
Number of contacts that haven't been assigned an owner or have not had sales activity recorded in their timeline since being assigned to the last owner.
hubspot_crm:unworked_contactsNew created deals
Number of new deals that were created during the analysis period.
hubspot_crm:created_dealsWon deals
Number of new deals from the analyzed period that were marked as closed.
hubspot_crm:closed_dealsOpen deals
Number of new deals from the analyzed period that remain open.
hubspot_crm:open_dealsLost deals
Number of new deals from the analyzed period that were marked as lost.
hubspot_crm:lost_dealsDeals closing rate
This metric shows the proportion of open deals that were lost during the analyzed period. It's calculated by dividing the number of lost opportunities by the total number of opportunities in the analyzed period.
hubspot_crm:closed_rate_dealsDeals loss rate
This metric shows the proportion of open deals that were lost during the analyzed period.
hubspot_crm:lost_rate_dealsTotal revenue
Total value of all associated deals that were closed during the analyzed period.
hubspot_crm:total_amount_dealsAverage total value of closed deals
Average total value of deals closed during the analyzed period.
hubspot_crm:average_amount_dealsCompleted tasks
Number of tasks that were marked as completed during the analyzed period.
hubspot_crm:completed_tasksUnstarted Tasks
Number of tasks that were not marked complete during the analyzed period.
hubspot_crm:unstarted_tasksEmails sent
Number of email tasks that were marked complete during the analysis period.
hubspot_crm:emails_sentCompleted calls
Number of call tasks that were marked complete during the analysis period.
hubspot_crm:completed_callsAverage call duration
Shows how long, on average, each call made in the analysis period lasted.
hubspot_crm:average_call_duration
Charts
5 metrics
Won and lost deals
New deals from the analyzed period that were marked as won and lost.
hubspot_crm:won_lost_dealsClosed and open deals
Open deals and closed deals (won and lost) in the analyzed period.
hubspot_crm:closed_open_dealsDeals over time
Number of deals created, closed and lost over the analyzed period.
hubspot_crm:deals_over_timeTotal deals closed against target
Daily closed deal value against established revenue target value.
hubspot_crm:deals_targetDeals revenue by source
See the value of won deals by source during the analyzed period. Find out which channels generated the highest value deals.
hubspot_crm:revenue_source_deals
Tables
4 metrics
Reason for lost deals
See the total number of lost deals in relation to the reasons for the loss.
hubspot_crm:reason_lost_dealsSummary of activities
Total activities that your representatives registered during the period analyzed.
hubspot_crm:summary_activitiesActivities per representative
See the number of calls, and emails each sales rep has scheduled or sent. Find out which representative is most active in the analyzed period.
hubspot_crm:activities_per_representativeDeals closed by owner
Performance summary of each of the deals owners, during the analyzed period.
hubspot_crm:deals_closed_owner
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
