---
title: "Generate Email"
method: POST
path: "/gtm-internal/workflows/{workflow_id}/generate-email"
tags: ["gtm-internal"]
---

# Generate Email

`POST /gtm-internal/workflows/{workflow_id}/generate-email`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/gtm-internal/workflows/{workflow_id}/generate-email`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Generate an email summarizing monitor and brand goal results.

Uses AI to compose an email based on the monitor data
and a customizable prompt template.

## Path parameters

- `workflow_id` string, required

## Request body

- GenerateRequest: Request for AI generation steps.
  - `prompt` string, required
  - `model` string
  - `reasoning_level` string

## Response `200`

Successful Response

- GenerateEmailResponse
  - `job_id` string, required
  - `status` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
