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

# Search calls

> Search phone calls logged in Apollo.

`apollo.searchCalls` searches logged phone-call activities.

```ts automations/search-apollo-calls.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { apollo } from "automate.ax/apollo"

export default automation("Find connected calls", () => {
  onDashboardRun({ title: "Find connected calls" })
  apollo.searchCalls({
    direction: "outgoing",
    dateFrom: "2026-08-01",
    durationMinSeconds: 60,
  })
})
```

Filter by date, duration, direction, users, contact labels, purposes, outcomes, or keywords. `users` accepts IDs, exact emails or names, or `{ id }`. Returns `{ calls, pagination }`.

This action requires an Apollo master API key. Apollo's OAuth app registration omits the required call scope.
