---
title: "Creates a new thread in a Discord channel."
method: POST
path: "/createThread"
---

# Creates a new thread in a Discord channel.

`POST /createThread`

This function creates a thread within a specified Discord channel, branching off from a specific message. It allows users to start focused discussions on particular topics or messages within a channel, enhancing conversation organization and management.

## Request body

- object
  - `body` object — Body of the createThread sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/discord

## Response `200`

Successful response

- object
  - `id` string, required — The ID of the created thread
  - `name` string, required — The name of the created thread
  - `channelId` string, required — The ID of the channel where the thread was created
  - `parentMessageId` string, required — The ID of the message from which the thread was created

## Other responses

- `400` — Bad Request - Invalid parameters
- `403` — Forbidden - Insufficient permissions
- `404` — Not Found - Channel or message not found
- `500` — Internal Server Error

## Changes

- **2025-05-29** `2deb154b9766` — 3 breaking, 2 warning, 4 info
  - removed the required property `createdAt` from the response with the `200` status
  - removed the required property `ownerId` from the response with the `200` status
  - removed the required property `parentId` from the response with the `200` status
  - removed the optional property `memberCount` from the response with the `200` status
  - …5 more
- **2025-05-28** `d03e8c66c195` — 2 breaking, 7 info
  - removed the required property `channelId` from the response with the `200` status
  - removed the required property `parentMessageId` from the response with the `200` status
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - …5 more

[Change history](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/changes/createThread/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/microfox-discord-sdk-api/revisions/7cb5b64ae924/schema)
