---
title: "Bulk Recalculate States"
method: POST
path: "/api/strategy/contacts/recalculate-all"
tags: ["strategy", "strategy"]
---

# Bulk Recalculate States

`POST /api/strategy/contacts/recalculate-all`

## 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/strategy/contacts/recalculate-all`
- Auth: none declared

Bulk recalculate contact states for all contacts without a state.

This is useful for initial population or after schema changes.
Processes contacts in batches to avoid timeouts.

## Query parameters

- `limit` integer: Max contacts to process

## Response `200`

Successful Response

- BulkRecalculateResponse: Response for bulk state recalculation.
  - `processed` integer, required
  - `updated` integer, required
  - `errors` integer, required
  - `message` string, 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/77bef09a9209?raw)
