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

> Retrieve one Brevo transactional email template by ID.

`getTemplate` loads a template's content, sender, and activation state.

## Example

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

export default automation("Inspect a template", () => {
  onHttpRequest({ scope: "automation" })

  getTemplate({ templateId: 42 })
})
```

## Inputs

`templateId: number | string` is required. Numbers must be positive; strings
support Brevo custom identifiers. `account` selects the Brevo binding.

## Output

Returns one `Template` with the shape described by [List templates](/reference/integrations/brevo/actions/list-templates#output). An inactive template can be inspected but cannot be used for a send until activated.
