---
title: "Generate Customer Draft"
method: POST
path: "/api/v1/customers/{customer_id}/draft/generate"
tags: ["customers"]
---

# Generate Customer Draft

`POST /api/v1/customers/{customer_id}/draft/generate`

## Path parameters

- `customer_id` string, uuid, required

## Headers

- `authorization` string, nullable — Bearer <token>

## Request body

- DraftGenerateRequest
  - `channel` string
  - `context` string, nullable
  - `gmail_account` string, nullable
  - `mode` 'agent' | 'campaign' | 'say_thanks'

## Response `200`

Successful Response

- EnvelopeDraftResponse
  - `data` DraftResponse, required
    - `id` string, uuid, required
    - `workspace_id` string, uuid, required
    - `customer_id` string, uuid, required
    - `channel` string, nullable
    - `subject` string, nullable
    - `body` string, required
    - `body_format` string
    - `status` string, required
    - `content_version` integer
    - `generation_context` object, nullable
    - `generated_at` string, date-time, required
    - `sent_at` string, date-time, nullable
    - `reply_received` boolean
    - `reply_at` string, date-time, nullable
    - `customer_name` string, nullable
    - `customer_email` string, nullable
    - `priority_tier` string, nullable
    - `priority_score` number, nullable
    - `opened` boolean, nullable
    - `first_opened_at` string, date-time, nullable
    - `unsubscribed` boolean, nullable
    - `unsubscribed_at` string, date-time, nullable
    - `returned` boolean, nullable
    - `returned_at` string, date-time, nullable
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/eb854265cf29/schema)
