---
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

---

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