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"
      ]
    }
  ]
}
Example: "Created contacts" in October, compared to September.

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_contacts
  • Assigned contacts

    Number of contacts that were assigned to an owner during the analyzed period.

    hubspot_crm:assigned_contacts
  • Worked contacts

    Number of contacts that had sales activity recorded during the analysis period.

    hubspot_crm:worked_contacts
  • Unworked 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_contacts
  • New created deals

    Number of new deals that were created during the analysis period.

    hubspot_crm:created_deals
  • Won deals

    Number of new deals from the analyzed period that were marked as closed.

    hubspot_crm:closed_deals
  • Open deals

    Number of new deals from the analyzed period that remain open.

    hubspot_crm:open_deals
  • Lost deals

    Number of new deals from the analyzed period that were marked as lost.

    hubspot_crm:lost_deals
  • Deals 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_deals
  • Deals loss rate

    This metric shows the proportion of open deals that were lost during the analyzed period.

    hubspot_crm:lost_rate_deals
  • Total revenue

    Total value of all associated deals that were closed during the analyzed period.

    hubspot_crm:total_amount_deals
  • Average total value of closed deals

    Average total value of deals closed during the analyzed period.

    hubspot_crm:average_amount_deals
  • Completed tasks

    Number of tasks that were marked as completed during the analyzed period.

    hubspot_crm:completed_tasks
  • Unstarted Tasks

    Number of tasks that were not marked complete during the analyzed period.

    hubspot_crm:unstarted_tasks
  • Emails sent

    Number of email tasks that were marked complete during the analysis period.

    hubspot_crm:emails_sent
  • Completed calls

    Number of call tasks that were marked complete during the analysis period.

    hubspot_crm:completed_calls
  • Average 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_deals
  • Closed and open deals

    Open deals and closed deals (won and lost) in the analyzed period.

    hubspot_crm:closed_open_deals
  • Deals over time

    Number of deals created, closed and lost over the analyzed period.

    hubspot_crm:deals_over_time
  • Total deals closed against target

    Daily closed deal value against established revenue target value.

    hubspot_crm:deals_target
  • Deals 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_deals
  • Summary of activities

    Total activities that your representatives registered during the period analyzed.

    hubspot_crm:summary_activities
  • Activities 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_representative
  • Deals 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.