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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get ticket

> Retrieve one HubSpot ticket by a stable identifier.

Use `hubspot.getTicket` to retrieve one HubSpot ticket by a stable identifier.

```ts automations/hubspot-get-ticket.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { hubspot } from "automate.ax/hubspot"

export default automation("Get ticket", () => {
  onDashboardRun({ title: "Get ticket" })
  hubspot.getTicket({ recordId: "12345" })
})
```

## Inputs

Provide `recordId`. Set `idProperty` to use a unique property value instead of HubSpot's record ID. Optional read fields match the list action. Optional second argument `{ account }` selects a named HubSpot binding.

## Output

Returns one HubSpot ticket record with properties, requested associations, and property history.
