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

> Retrieve one Brevo contact by email, ID, phone, or external ID.

`getContact` loads a complete contact and can include campaign statistics for a
date interval.

## Example

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

export default automation("Load a customer", () => {
  onHttpRequest({ scope: "automation" })

  getContact({ identifier: "ada@example.com", identifierType: "email_id" })
})
```

## Inputs

`identifier: string | number` is required. `identifierType` can be `email_id`,
`contact_id`, `ext_id`, `phone_id`, `whatsapp_id`, or `landline_number_id`;
provide it when the value is ambiguous. Optional inclusive `startDate` and
`endDate` must be supplied together. `account` selects the Brevo binding.

## Output

Returns a contact with positive numeric `id`, optional `email`, `attributes`,
`createdAt`, `modifiedAt`, `listIds`, email/SMS/WhatsApp blacklist booleans, and
optional `listUnsubscribed`, `consentGroups`, and `statistics`. Statistics are
returned only when Brevo supplies them, normally for a requested date interval.
