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

# On Workspace event

> Run an automation when all ClickUp events in the selected Workspace.

`clickUp.onWorkspaceEvent` starts an automation when all ClickUp events in the selected Workspace.

```ts automations/clickup-on-workspace-event.automation.ts theme={null}
import { automation, sendEmail } from "automate.ax"
import { clickUp } from "automate.ax/clickup"

export default automation("On Workspace event", () => {
  const event = clickUp.onWorkspaceEvent({ workspaceId: "workspace-id" })
  sendEmail({ subject: "On Workspace event", text: event.event })
})
```

Provide the ClickUp `workspaceId`. Optional static `account` defaults to the project's ClickUp binding. Automate.ax maintains one signed Workspace webhook and updates its provider event set as triggers change.

## Trigger data

Returns a `Signal<ClickUpWebhookEvent>`. `event` is one of ClickUp's supported webhook names; the payload includes `webhookId`, `historyItems`, and applicable `taskId`, `listId`, `folderId`, `spaceId`, `goalId`, or `keyResultId`. History items preserve the stable ID, date, type, field, parent, data, source, before and after values, and user that ClickUp supplied.
