Skip to content

HubSpot: Retrieve actor

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

← Conversations operations · Get started

Operation hubspot.conversations_get_actor

Provider route: GET /conversations/conversations/2026-09/actors/{actorId}. 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"]["getActor"]>[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.getActor(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_actor(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.actorIdstringRequired within parent
queryobjectOptionalAdditional keys: not allowed
query.propertystringOptional

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve actor — response body

Referenced models: 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

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
Retrieve actor — response body — type: LLM
FieldTypePresenceDescription and constraints
$objectRoot
avatarstringOptionalA string representing the URL of the avatar image for the LLM actor.
idstringRequired within parentA unique identifier for the LLM actor, represented as a string.
namestringOptionalThe name of the LLM actor, represented as a string.
typestringRequired within parentA string indicating the type of actor, which is always 'LLM' for this component.
Known values: LLM
Default: LLM
Retrieve actor — response body — type: SYSTEM
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentA string that uniquely identifies the system actor.
typestringRequired within parentA string that specifies the type of actor, which is 'SYSTEM' for this component.
Known values: SYSTEM
Default: SYSTEM
Retrieve actor — response body — type: VISITOR
FieldTypePresenceDescription and constraints
$objectRoot
avatarstringOptionalA string representing the URL of the visitor's avatar image.
emailstringOptionalA string containing the email address of the visitor.
idstringRequired within parentA string representing the unique identifier for the visitor actor.
namestringOptionalA string containing the name of the visitor.
typestringRequired within parentA string indicating the type of actor, which is 'VISITOR' for this component.
Known values: VISITOR
Default: VISITOR

SDK function policy ID: hubspot.conversations_get_actor. Catalog operation: conversations_get_actor. 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.