> ## 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 SMS campaign

> Create SMS campaign through the Brevo API.

`brevo.createSmsCampaign` create SMS campaign through the Brevo API.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { brevo } from "automate.ax/brevo"

export default automation("Create SMS campaign", () => {
  onDashboardRun({ title: "Create SMS campaign" })

  brevo.createSmsCampaign({
    name: "Launch",
    sender: "Example",
    content: "We launched!",
  })
})
```

## Inputs and output

Inputs:

```ts theme={null}
{
  name: string
  content: string
  sender: string
  organisationPrefix?: string
  recipients?: {
    listIds: number[]
    exclusionListIds?: number[]
  }
  scheduledAt?: string
  unicodeEnabled?: boolean
  unsubscribeInstruction?: string
}
```

`name`, `content`, and `sender` must be non-empty; `sender` is limited to 15 characters. Recipient IDs are positive integers, `listIds` can't be empty, and `scheduledAt` is an ISO 8601 timestamp with an offset. Optional fields have no implicit default.

`{ id }` for the draft campaign. A scheduled campaign also requires recipient list IDs. Brevo counts content beyond one SMS segment separately. Pass `{ account }` as the second argument to select a named Brevo account binding.
