> ## 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 item share

> Creates a policy-compliant item sharing link.

`onePassword.createItemShare` creates a policy-compliant item sharing link.

This action requires a service-account connection.

## Example

```ts automations/onepassword-create-item-share.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { onePassword } from "automate.ax/onepassword"

export default automation("Create item share", () => {
  onSchedule({ schedule: "0 * * * *" })

  const ids = { itemId: "item-id", vaultId: "vault-id" }
  const item = onePassword.getItem(ids)
  const policy = onePassword.getItemSharePolicy(ids)

  onePassword.createItemShare({
    item,
    policy,
    parameters: { oneTimeOnly: true },
  })
})
```

## Inputs

Provide a decrypted `item`, the result of `getItemSharePolicy`, and sharing parameters. Parameters can set expiry, recipients, and one-time access. Every input accepts a compatible signal. Account-backed actions accept an optional second argument `{ account }` to select a named binding.

## Output

Returns the sharing URL. The output is sensitive.
