Skip to content

HubSpot: Retrieve performance

HubSpot sequences.retrievePerformance: arguments, response, policy and SDK examples.

← Sequences operations · Get started

Operation hubspot.sequences_retrieve_performance

Provider route: GET /automation/sequences/2026-09/serviceaccounts/sequences/{sequenceId}/performance. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/hubspot with npm, or alter-sdk-hubspot with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HubSpotIntegration } from "@alter-ai/hubspot";
async function execute(input: Parameters<HubSpotIntegration["sequences"]["retrievePerformance"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HubSpotIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.sequences.retrievePerformance(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_hubspot import HubSpotIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HubSpotIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.sequences.retrieve_performance(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.sequenceIdstringRequired within parent
queryobjectOptionalAdditional keys: not allowed
query.timelineIntervalstringOptionalDefault: WEEK

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve performance — response body

Referenced models: Retrieve performance — response body

1 more schema is linked from the tables above, on the schema pages.

Retrieve performance — response body
FieldTypePresenceDescription and constraints
$objectRoot
companyMetricsModelOptionalExpand Retrieve performance — response body — company Metrics
sequenceIdstringRequired within parentThe unique identifier for the sequence, represented as a string.
statusBySteparrayRequired within parentAn array of objects detailing the enrollment status for each step in the sequence, including the count and current step order.
statusByStep[]ModelEach itemExpand Retrieve performance — response body — status By Step item
stepsarrayRequired within parentAn array of objects, each representing the performance metrics for individual steps within the sequence.
steps[]ModelEach itemExpand Retrieve performance — response body — steps item
summaryModelRequired within parentExpand Retrieve performance — response body — summary
timelinearrayRequired within parentAn array of objects representing points in time with specific performance metrics, such as enrollments and meetings booked.
timeline[]ModelEach itemExpand Retrieve performance — response body — timeline item

Referenced models: Retrieve performance — response body — company Metrics, Retrieve performance — response body — status By Step item, Retrieve performance — response body — summary, Retrieve performance — response body — steps item, Retrieve performance — response body — timeline item

Retrieve performance — response body — company Metrics
FieldTypePresenceDescription and constraints
$objectRoot
companiesEngagedJSONRequired within parent
companiesEngaged (anyOf 1)integerAlternativeThe number of companies that have engaged with the sequence. An integer in int64 format.
Format: int64
companiesEngaged (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
companiesEnrolledJSONRequired within parent
companiesEnrolled (anyOf 1)integerAlternativeThe number of companies that have been enrolled in the sequence. An integer in int64 format.
Format: int64
companiesEnrolled (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
companiesScheduledMeetingJSONRequired within parent
companiesScheduledMeeting (anyOf 1)integerAlternativeThe number of companies that have scheduled a meeting as a result of the sequence. An integer in int64 format.
Format: int64
companiesScheduledMeeting (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
contactsEnrolledWithCompanyIdJSONRequired within parent
contactsEnrolledWithCompanyId (anyOf 1)integerAlternativeThe number of contacts enrolled in the sequence that are associated with a company ID. An integer in int64 format.
Format: int64
contactsEnrolledWithCompanyId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Retrieve performance — response body — status By Step item
FieldTypePresenceDescription and constraints
$objectRoot
countJSONRequired within parent
count (anyOf 1)integerAlternativeAn integer in int64 format representing the number of enrollments at the current step.
Format: int64
count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currentStepOrderJSONRequired within parent
currentStepOrder (anyOf 1)integerAlternativeAn integer indicating the order of the current step in the sequence.
Format: int32
currentStepOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
enrollmentStatusstringRequired within parentA string representing the status of the enrollment at the current step.
Retrieve performance — response body — summary
FieldTypePresenceDescription and constraints
$objectRoot
associatedDealsJSONOptional
associatedDeals (anyOf 1)integerAlternativeThe number of deals associated with the sequence. Represented as an integer in int64 format.
Format: int64
associatedDeals (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
bouncedJSONRequired within parent
bounced (anyOf 1)integerAlternativeThe number of emails in the sequence that bounced. Represented as an integer in int64 format.
Format: int64
bounced (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
clickedJSONRequired within parent
clicked (anyOf 1)integerAlternativeThe number of times links in the sequence emails have been clicked. Represented as an integer in int64 format.
Format: int64
clicked (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
contactsJSONRequired within parent
contacts (anyOf 1)integerAlternativeThe total number of contacts associated with the sequence. Represented as an integer in int64 format.
Format: int64
contacts (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
dealsClosedJSONOptional
dealsClosed (anyOf 1)integerAlternativeThe number of deals closed as a result of the sequence. Represented as an integer in int64 format.
Format: int64
dealsClosed (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
engagedJSONRequired within parent
engaged (anyOf 1)integerAlternativeThe number of contacts who engaged with the sequence. Represented as an integer in int64 format.
Format: int64
engaged (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
enrolledJSONRequired within parent
enrolled (anyOf 1)integerAlternativeThe number of contacts enrolled in the sequence. Represented as an integer in int64 format.
Format: int64
enrolled (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
meetingsBookedJSONRequired within parent
meetingsBooked (anyOf 1)integerAlternativeThe number of meetings booked as a result of the sequence. Represented as an integer in int64 format.
Format: int64
meetingsBooked (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
noResponseJSONRequired within parent
noResponse (anyOf 1)integerAlternativeThe number of contacts who did not respond to the sequence. Represented as an integer in int64 format.
Format: int64
noResponse (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
openedJSONRequired within parent
opened (anyOf 1)integerAlternativeThe number of times emails in the sequence have been opened. Represented as an integer in int64 format.
Format: int64
opened (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
repliedJSONRequired within parent
replied (anyOf 1)integerAlternativeThe number of replies received from emails in the sequence. Represented as an integer in int64 format.
Format: int64
replied (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
totalRevenueJSONOptional
totalRevenue (anyOf 1)numberAlternativeThe total revenue generated from the sequence. Represented as a number.
totalRevenue (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unsubscribedJSONRequired within parent
unsubscribed (anyOf 1)integerAlternativeThe number of contacts who unsubscribed from the sequence. Represented as an integer in int64 format.
Format: int64
unsubscribed (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Retrieve performance — response body — timeline item
FieldTypePresenceDescription and constraints
$objectRoot
enrolledAtJSONRequired within parent
enrolledAt (anyOf 1)integerAlternativeThe time at which the enrollment occurred, represented as a Unix timestamp in milliseconds.
Format: int64
enrolledAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
enrollmentsJSONRequired within parent
enrollments (anyOf 1)integerAlternativeThe total number of enrollments recorded at this point in the sequence timeline. Represented as an integer.
Format: int64
enrollments (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
meetingsBookedJSONRequired within parent
meetingsBooked (anyOf 1)integerAlternativeThe number of meetings booked at this point in the sequence timeline. Represented as an integer.
Format: int64
meetingsBooked (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

SDK function policy ID: hubspot.sequences_retrieve_performance. Catalog operation: sequences_retrieve_performance. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["automation.sequences.read"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.