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

# Get contact statistics

> Get contact statistics through the Brevo API.

`brevo.getContactStatistics` get contact statistics through the Brevo API.

## Example

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

export default automation("Get contact statistics", () => {
  onDashboardRun({ title: "Get contact statistics" })

  brevo.getContactStatistics({
    identifier: "person@example.com",
    startDate: "2026-08-01",
    endDate: "2026-08-26",
  })
})
```

## Inputs and output

Inputs: `identifier` is an email or positive contact ID. Optional ISO `startDate` and `endDate` must appear together.

Returns campaign activity grouped into sent, opened, clicked, delivered, bounce, complaint, transactional-attribute, and unsubscribe records. The unsubscribe result contains separate administrator and user arrays. Supply date bounds together; Brevo supports up to 90 days. Pass `{ account }` as the second argument to select a named Brevo account binding.
