> ## 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 account

> Get one saved Apollo account by ID, exact name, or domain.

`getAccount` resolves one saved account and returns its current workspace data.

```ts automations/get-apollo-account.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { getAccount } from "automate.ax/apollo"

export default automation("Get an Apollo account", () => {
  onHttpRequest({ scope: "automation" })
  getAccount({ target: { id: "account-id" } })
})
```

| Input     | Type                                              | Required | Default         | Description                                 |
| --------- | ------------------------------------------------- | -------- | --------------- | ------------------------------------------- |
| `target`  | `ApolloReference`                                 | Yes      | —               | Account ID, exact name/domain, or `{ id }`. |
| `account` | `string \| IntegrationAccountReference<"apollo">` | No       | Project default | Connected Apollo workspace.                 |

Returns an `ApolloAccount` containing `id`, `name`, `domain?`, `phone?`,
`accountStageId?`, `ownerId?`, `organizationId?`, `labelIds`, `customFields`,
timestamps, and contact/activity metadata when Apollo supplies them. A plain
name or domain must resolve uniquely; pass `{ id }` when you already have it.
