> ## 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 current user

> Get the Apollo user associated with the connected account.

`getCurrentUser` returns the profile behind the selected Apollo connection.

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

export default automation("Get Apollo credit usage", () => {
  onHttpRequest({ scope: "automation" })
  getCurrentUser({ includeCreditUsage: true })
})
```

`includeCreditUsage` defaults to `false`; optional `account` selects the
binding. Returns an `ApolloUser` plus optional `creditUsage` with Apollo's
available and consumed AI, direct-dial, export, lead, power-up, and unified
credit fields. Apollo may omit balances unavailable to the plan.
