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

# Actor build event

> Starts for any supported lifecycle event from one Apify Actor build.

`apify.onActorBuildEvent` starts for any supported lifecycle event from one Apify Actor build.

## Example

```ts automations/apify-on-actor-build-event.automation.ts theme={null}
import { automation } from "automate.ax"
import { apify } from "automate.ax/apify"

export default automation("Actor build event", () => {
  const event = apify.onActorBuildEvent({ actorId: "actor-id" })

  event.resource.id
})
```

## Inputs

`actorId` is the provider ID from the Actor's Apify Console URL.

Pass `account` to select a named Apify account. The token must be able to create webhooks and read the selected Actor.

## Output

Returns `eventType`, `createdAt`, `userId`, `eventData` with `actorId` and `actorBuildId`, plus the normalized Actor build in `resource`. Build dates are ISO 8601 strings.

This trigger subscribes to `CREATED`, `SUCCEEDED`, `FAILED`, `ABORTED`, and `TIMED_OUT` webhook events. Automate.ax manages the resource-scoped webhook, authenticates its secret header, and deduplicates retries by Apify dispatch ID. Each authenticated delivery starts an ordinary root context.
