---
title: "Close up to 50 Hive Inbox conversations of the same kind with one resolution reason. It is all or nothing: if one cannot be closed, none are. It sends no message to anyone."
method: POST
path: "/api/v1/tools/resolve_threads"
---

# Close up to 50 Hive Inbox conversations of the same kind with one resolution reason. It is all or nothing: if one cannot be closed, none are. It sends no message to anyone.

`POST /api/v1/tools/resolve_threads`

## Request

- Base URL: `https://hivepublish.com`
- URL: `https://hivepublish.com/api/v1/tools/resolve_threads`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `kind` 'dm' | 'comment' | 'mention', required: Which kind of conversation this is: dm, comment or mention.
  - `reasonId` string, required: A resolution reason id from read_resolution_reasons.
  - `items` object[], required: The conversations to close, with the version you last read for each.
    - `threadId` string, required: The conversation id.
    - `expectedVersion` integer: The resolution version you last read. Defaults to 0.

## Response `200`

Tool result

- ToolResult
  - `data` unknown, required
  - `meta` object, required
    - `tool` string
    - `workspaceId` string, uuid

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid credential
- `403`: Missing workspace scope, role permission, or plan entitlement
- `409`: Idempotency conflict, replay, or request still in progress
- `429`: Rate limit exceeded

---

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