---
title: "Generate Outreach Batch"
method: POST
path: "/api/outreach/generate-batch"
tags: ["outreach", "outreach"]
---

# Generate Outreach Batch

`POST /api/outreach/generate-batch`

## 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-batch`
- Auth: none declared

Generate messages for multiple contacts in batch.

Returns results for each contact with success/error status.

## Request body

- GenerateBatchRequest: Request to generate messages for multiple contacts.
  - `person_ids` integer[], required
  - `custom_prompt` string, nullable

## Response `200`

Successful Response

- GenerateBatchResponse: Batch generation results.
  - `results` GenerateMessageResponse[], required
    - `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
  - `success_count` integer, required
  - `error_count` integer, required

## 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)
