---
title: "Generate Outreach Message"
method: POST
path: "/api/outreach/generate/{person_id}"
tags: ["outreach", "outreach"]
---

# Generate Outreach Message

`POST /api/outreach/generate/{person_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/outreach/generate/{person_id}`
- Auth: none declared

Generate a personalized re-opening message for a contact.

Uses the contact's state to select appropriate prompt from Strategy Engine,
and enriches with context from contact summaries.

## Path parameters

- `person_id` integer, required

## Request body

- GenerateMessageRequest: Request to generate outreach message.
  - `custom_prompt` string, nullable

## Response `200`

Successful Response

- GenerateMessageResponse: Generated outreach message.
  - `success` boolean, required
  - `message` string, nullable
  - `contact_name` string, required
  - `contact_state` string, nullable
  - `context_used` object, nullable
  - `prompt_used` string, nullable
  - `error` string, nullable

## Other responses

- `422`: Validation Error

---

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