Skip to content

HubSpot: Batch read actors

HubSpot conversations.getActors: arguments, response, policy and SDK examples.

← Conversations operations · Get started

Operation hubspot.conversations_get_actors

Provider route: POST /conversations/conversations/2026-09/actors/batch/read. 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["conversations"]["getActors"]>[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.conversations.getActors(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.conversations.get_actors(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.propertystringOptional
bodyModelRequired within parentExpand Batch read actors — request body — body

Referenced models: Batch read actors — request body — body

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

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Actor
$ (anyOf 2)ModelAlternativeExpand Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Actor With Errors

Referenced models: Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Actor, Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Actor With Errors

4 more schemas are linked from the tables above, on the schema pages.

Batch read actors — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of strings that are required for the batch operation. Each item in the array is a string.
inputs[]stringEach item
Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Actor
FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
linksobjectOptionalA map of link names to their corresponding URIs, which may provide additional information or resources related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of PublicActor objects representing the results of the batch operation.
results[]ModelEach itemExpand Retrieve actor — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Retrieve actor — response body

Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Batch Response Public Actor With Errors
FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of StandardError objects detailing any errors encountered during the batch operation.
errors[]ModelEach itemExpand Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
linksobjectOptionalAn object containing key-value pairs of link names to their associated URIs.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors encountered during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of PublicActor objects representing the results of the batch operation.
results[]ModelEach itemExpand Retrieve actor — response body
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Retrieve actor — response body

Retrieve actor — response body
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Retrieve actor — response body — type: AGENT
$ (anyOf 2)ModelAlternativeExpand Retrieve actor — response body — type: BOT
$ (anyOf 3)ModelAlternativeExpand Retrieve actor — response body — type: INTEGRATOR
$ (anyOf 4)ModelAlternativeExpand Retrieve actor — response body — type: SYSTEM
$ (anyOf 5)ModelAlternativeExpand Retrieve actor — response body — type: VISITOR
$ (anyOf 6)ModelAlternativeExpand Retrieve actor — response body — type: EMAIL
$ (anyOf 7)ModelAlternativeExpand Retrieve actor — response body — type: LLM

Referenced models: Retrieve actor — response body — type: AGENT, Retrieve actor — response body — type: BOT, Retrieve actor — response body — type: EMAIL, Retrieve actor — response body — type: INTEGRATOR, Retrieve actor — response body — type: LLM, Retrieve actor — response body — type: SYSTEM, Retrieve actor — response body — type: VISITOR

Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
FieldTypePresenceDescription and constraints
$objectRootYe olde error
categorystringRequired within parentA string indicating the category of the error.
contextobjectRequired within parentAn object containing additional context about the error condition, with properties as arrays of strings.
Additional keys: see wildcard field
context.*arrayAdditional keys
context.*[]stringEach item
errorsarrayRequired within parentAn array of ErrorDetail objects, providing further information about the error.
errors[]ModelEach itemExpand Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item errors item
idstringOptionalA string representing the unique identifier for the error.
linksobjectRequired within parentAn object mapping link names to associated URIs with documentation about the error or recommended remediation steps.
Additional keys: see wildcard field
links.*stringAdditional keys
messagestringRequired within parentA string containing the error message.
statusstringRequired within parentThe status of the error as a string.
subCategoryobjectOptionalAn object providing more specific details about the error category.

Referenced models: Batch read actors — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item errors item

Retrieve actor — response body — type: AGENT
FieldTypePresenceDescription and constraints
$objectRoot
avatarstringOptionalA string representing the URL to the avatar image of the agent.
emailstringOptionalA string containing the email address of the agent.
idstringRequired within parentA string that uniquely identifies the agent actor.
namestringOptionalA string representing the name of the agent.
typestringRequired within parentA string representing the type of actor, which is always 'AGENT' for this component.
Known values: AGENT
Default: AGENT
Retrieve actor — response body — type: BOT
FieldTypePresenceDescription and constraints
$objectRoot
avatarstringOptionalA string representing the URL of the avatar image for the bot actor.
idstringRequired within parentA string representing the unique identifier for the bot actor.
namestringOptionalA string representing the name of the bot actor.
typestringRequired within parentA string indicating the type of actor, which is always 'BOT' for this component.
Known values: BOT
Default: BOT
Retrieve actor — response body — type: EMAIL
FieldTypePresenceDescription and constraints
$objectRoot
emailstringRequired within parentA string containing the email address associated with the actor.
idstringRequired within parentA string that uniquely identifies the email actor.
typestringRequired within parentA string representing the type of actor, which defaults to 'EMAIL'.
Known values: EMAIL
Default: EMAIL
Retrieve actor — response body — type: INTEGRATOR
FieldTypePresenceDescription and constraints
$objectRoot
avatarstringOptionalA string containing the URL or identifier for the avatar image of the integrator actor.
idstringRequired within parentA string that uniquely identifies the integrator actor.
namestringRequired within parentA string representing the name of the integrator actor.
typestringRequired within parentA string representing the type of actor, with the default value 'INTEGRATOR'.
Known values: INTEGRATOR
Default: INTEGRATOR

SDK function policy ID: hubspot.conversations_get_actors. Catalog operation: conversations_get_actors. 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: ["conversations.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.