---
title: "Create or reuse a side thread from a webchat message"
method: POST
path: "/api/v1/chat/threads"
tags: ["Chat"]
---

# Create or reuse a side thread from a webchat message

`POST /api/v1/chat/threads`

**Required scope:** `chat`

## Request body

- ChatThreadCreateRequest
  - `session_id` string, required
  - `parent_message_id` union, required
    - string
    - integer
  - `selected_text` string, required

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

---

[API](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/revisions/4463c5ffdb9c/schema)
