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

# Poll webhook result

> Check an asynchronous Apollo phone or waterfall enrichment request.

`pollWebhookResult` gets the current provider-native result for the request ID
returned by a phone or waterfall enrichment action.

```ts automations/poll-apollo-enrichment.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { pollWebhookResult } from "automate.ax/apollo"

export default automation("Poll Apollo enrichment", () => {
  onHttpRequest({ scope: "automation" })
  pollWebhookResult({ requestId: "request-id" })
})
```

`requestId` is a non-empty string or integer. Optional `account` selects the
same Apollo binding used for enrichment. Returns `requestId`,
`requestType: "email" | "phone" | "waterfall"`,
`status: "in_progress" | "success" | "failed"`, nullable provider-native
`result`, and optional last-dispatch and failure details. Polling checks state;
it does not cause Apollo to retry a failed webhook delivery.
