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

# Create Notion view

> Create a configured view for a data source.

`notion.createView` create a configured view for a data source.

## Example

```ts automations/notion-create-view.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { notion } from "automate.ax/notion"

export default automation("Create Notion view", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.createView({
    data_source_id: "data-source-id",
    database_id: "database-id",
    name: "Table",
    type: "table",
  })
})
```

## Inputs

`data_source_id`, `name`, and `type` are required. Choose exactly one destination mode: `database_id`, `view_id`, or `create_database`; configuration varies by view type. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns the created full or partial `view` object.
