> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get HubSpot Object

## Overview

Retrieve data for any supported HubSpot object type based on a query, or get the most recent object. Works across deals, tickets, calls, meetings, notes, tasks, and any custom objects you have configured.

### Use Cases

* **Any-object lookup**: One action to pull deals, tickets, notes, or custom objects.
* **Recent-object retrieval**: Grab the most recent object of a chosen type.
* **Cross-object workflows**: Use in a loop with a list of object types.

## Configuration Fields

### Object Type

* **Description**: The HubSpot object type to retrieve (e.g. `deals`, `tickets`, `calls`, `meetings`, `notes`, `tasks`, or a custom object type ID).
* **Required**: Yes

### Query

* **Description**: A query string or object ID. Leave empty to get the most recent object of that type.

### Output Variable Name

* **Description**: Variable name to store the object record.
* **Validation**: Only letters, numbers, and underscores.
* **Required**: Yes

## Related Actions

* [Search HubSpot](./hubspot-v2-search-objects) for multi-record filtering.
* [Get HubSpot Contact](./get_hubspot_contact_object), [Get HubSpot Company](./get_hubspot_company_object).
