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

# Bulk create accounts

> Create up to 100 Apollo accounts and report deduplication matches separately.

`bulkCreateAccounts` creates up to 100 saved accounts in one provider request.

```ts automations/bulk-create-apollo-accounts.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { bulkCreateAccounts } from "automate.ax/apollo"

export default automation("Import Apollo accounts", () => {
  onHttpRequest({ scope: "automation" })
  bulkCreateAccounts({
    accounts: [
      { name: "Acme", domain: "acme.example" },
      { name: "Globex", domain: "globex.example" },
    ],
    listNames: ["2026 Targets"],
  })
})
```

| Input       | Type                                              | Required | Default         | Description                                       |
| ----------- | ------------------------------------------------- | -------- | --------------- | ------------------------------------------------- |
| `accounts`  | `BulkAccountInput[]`                              | Yes      | —               | 1–100 accounts; each needs `name` or `domain`.    |
| `listNames` | `string[]`                                        | No       | None            | Exact list names applied to every new account.    |
| `runDedupe` | `boolean`                                         | No       | `true`          | Deduplicate by domain, organization ID, and name. |
| `account`   | `string \| IntegrationAccountReference<"apollo">` | No       | Project default | Connected workspace.                              |

Each account may include `name`, `domain`, `phone`, `rawAddress`, `stage`,
`owner`, `parentAccount`, `organizationId`, CRM IDs, social URLs, and
`customFields`. Returns `{ createdAccounts, existingAccounts }`; existing
deduplication matches are not silently mixed with newly created records.
