---
title: "Test outreach email generation"
method: POST
path: "/api/test/outreach-email"
tags: ["Test"]
---

# Test outreach email generation

`POST /api/test/outreach-email`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/test/outreach-email`
- Auth: HTTP bearer

Test endpoint for generating outreach emails with specific parameters without creating actual outreach tasks

## Request body

- object
  - `campaignId` string, required: ID of the campaign
  - `kolId` string, required: ID of the KOL (Key Opinion Leader)
  - `contentVersion` 'v1' | 'v2' | 'v3' | 'v4': Which content version to generate
  - `registrationMessage` string: Custom registration message for the email

## Response `200`

Email generated successfully

- object
  - `title` string: Generated email subject line
  - `content` string: Generated email body content
  - `contentVersion` string: The version of the content template used

## Other responses

- `400`: Bad request - missing required parameters
- `404`: Campaign or KOL not found
- `500`: Error generating test email

---

[API](https://skmtc.dev/kolect/apis/kolect-api.md) · [All operations](https://skmtc.dev/kolect/apis/kolect-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolect/apis/kolect-api/revisions/fe54528e8f54?raw)
