---
ref: tool:brew/generate-email
name: Generate an email
company: company:brew
workflows: [workflow:competitor-intent, workflow:content-download-nurture, workflow:webinar-follow-up, workflow:free-to-paid-activation, workflow:at-risk-customer-rescue]
access: [mcp, cli, api]
tags: [capability:write-copy, category:email, has:api, has:cli, has:mcp]
docs: https://docs.brew.new/api-reference/public-v1/emails/generate-an-email-design
updated: 2026-09-27
---

# Generate an email

Generates an on-brand email design from a plain-language prompt and returns its emailId, version id and HTML.

Usage-metered in credits, and the brand must be ready first. Pass
`emailVersionId` to a send or an automation to pin the exact version.

## Set up

Use the first option your agent supports.

### MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

```json
{ "mcpServers": { "brew": { "url": "https://brew.new/api/mcp" } } }
```

Call the MCP tool `create_email`.

Server URL: https://brew.new/api/mcp

### CLI (official)

Install the command, then confirm it runs.

```sh
brew install getbrew/tap/brew-cli
brew-cli --version
```

Run `brew-cli emails generate`.

Set `$BREW_API_KEY` in your environment first (get a key: https://brew.new/settings/api).

### API (official)

- Base URL: https://brew.new/api
- Endpoint: `POST /v1/emails`
- Auth: send the header `Authorization: Bearer $BREW_API_KEY`
- Get a key: https://brew.new/settings/api
- Docs: https://docs.brew.new/api-reference/api/api-introduction

Before doing anything else, make one read-only call to confirm access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
