---
title: "Create Private Chat"
method: POST
path: "/worker/{worker_id}/private-chats"
tags: ["workers"]
---

# Create Private Chat

`POST /worker/{worker_id}/private-chats`

Open a new private chat on this worker with its first message.

The path's ``worker_id`` is the parent; the response's ``worker_id`` is the chat.
Sends into the chat named by ``chat_id``, opening it if needed: a retry with the same
``message_id`` dedupes, while a new ``message_id`` is a second message in that chat.
Later messages go through ``POST /worker/{worker_id}/messages`` with the returned
``worker_id``.

## Path parameters

- `worker_id` string, required

## Request body

- CreatePrivateChatRequest — Opens a new private chat on a parent worker with its first message.
  - `chat_id` string, uuid, required
  - `message_id` string, uuid, required
  - `message` string, required

## Response `201`

Successful Response

- CreatePrivateChatResponse — The created chat, addressed by its own worker id from here on.
  - `worker_id` string, required
  - `message_id` string, required

## Other responses

- `422` — Validation Error

## Changes

> 64 revisions in range; 9 not diffed.

- **2026-10-02** `53b6ebae31bc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/traversal/apis/fastapi/changes/worker/:worker_id/private-chats/post.md)

---

[API](https://skmtc.dev/traversal/apis/fastapi.md) · [All operations](https://skmtc.dev/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/traversal/apis/fastapi/revisions/609da234e5da?raw)
