---
title: "Create Batch"
method: POST
path: "/letter-v2/batches"
tags: ["letter-v2"]
---

# Create Batch

`POST /letter-v2/batches`

## Request

- Base URL: `https://api.overfit.de` (the document declares no server; this is the origin it was published from)
- URL: `https://api.overfit.de/letter-v2/batches`
- Auth: one of:
  - OpenID Connect (`https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration`)
  - API key in header `X-API-Key`

Generate letters for many companies at once. Returns immediately;
poll GET /letter-v2/batches/{id} for per-status counts.

## Request body

- BatchCreate
  - `template_id` string, required
  - `company_ids` string[], required
  - `name` string, nullable

## Response `200`

Successful Response

- BatchSchema
  - `id` string, required
  - `template_id` string, required
  - `name` string, nullable
  - `total` integer, required
  - `counts` object
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval.md) · [All operations](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/llms.txt) · [OpenAPI document](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/revisions/0055f7fe41e5?raw)
