HubSpot: List owners
HubSpot owners.getOwners: arguments, response, policy and SDK examples.
← Owners operations · Get started
Operation hubspot.owners_get_owners
Provider route: GET /crm/owners/2026-09. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”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["owners"]["getOwners"]>[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.owners.getOwners(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom 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.owners.get_owners(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Optional | Additional keys: not allowed |
query.after | string | Optional | |
query.archived | boolean | Optional | Default: false |
query.email | string | Optional | |
query.limit | integer | Optional | Default: 100 Format: int32 |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand List owners — response body |
Referenced models: List owners — response body
Schemas
Section titled “Schemas”List owners — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
paging | Model | Optional | Expand List owners — response body — paging |
results | array | Required within parent | An array of PublicOwner objects, each representing an individual owner with their specific details. |
results[] | Model | Each item | Expand Retrieve a specific owner by ID — response body |
Referenced models: List owners — response body — paging, Retrieve a specific owner by ID — response body
List owners — response body — paging
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Paging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page. |
next | Model | Optional | Expand List owners — response body — paging next |
Referenced models: List owners — response body — paging next
Retrieve a specific owner by ID — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
archived | boolean | Required within parent | Indicates whether the owner is archived. |
createdAt | string | Required within parent | The date and time when the owner was created. Format: date-time |
email | string | Optional | The email address of the owner. |
firstName | string | Optional | The first name of the owner. |
id | string | Required within parent | The unique identifier of the owner. |
lastName | string | Optional | The last name of the owner. |
teams | array | Optional | An array of teams associated with the owner, where each team is represented by a PublicTeam object. |
teams[] | Model | Each item | Expand Retrieve a specific owner by ID — response body — teams item |
type | string | Required within parent | The type of the owner, which can be either PERSON or QUEUE. Known values: PERSON, QUEUE |
updatedAt | string | Required within parent | The date and time when the owner was last updated. Format: date-time |
userId | JSON | Optional | |
userId (anyOf 1) | integer | Alternative | The user ID of the owner. Format: int32 |
userId (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
userIdIncludingInactive | JSON | Optional | |
userIdIncludingInactive (anyOf 1) | integer | Alternative | The user ID of the owner, including inactive users. Format: int32 |
userIdIncludingInactive (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Retrieve a specific owner by ID — response body — teams item
List owners — response body — paging next
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Specifies the paging information needed to retrieve the next set of results in a paginated API response |
after | string | Required within parent | A string token used as a cursor for pagination, indicating the position after the last item on the current page. |
link | string | Optional | A string containing the URL link to the next page of results. |
Retrieve a specific owner by ID — response body — teams item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
id | string | Required within parent | The unique identifier for the team, represented as a string. |
name | string | Required within parent | The name of the team, represented as a string. |
primary | boolean | Required within parent | A boolean indicating whether this team is the primary team. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: hubspot.owners_get_owners. Catalog operation: owners_get_owners. 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: ["crm.objects.owners.read"]