---
title: "Draft Email"
method: POST
path: "/marketing/email/draft"
tags: ["marketing"]
---

# Draft Email

`POST /marketing/email/draft`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/marketing/email/draft`
- Auth: API key in header `X-Agent-Key`

## Query parameters

- `email` string, nullable

## Request body

- DraftEmailRequest
  - `to` string, required
  - `subject` string, required
  - `title` string, required
  - `body_html` string, required
  - `cta_label` string, nullable
  - `cta_url` string, nullable
  - `footnote` string, nullable
  - `unsubscribe` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
