---
title: "Create thread"
method: POST
path: "/v2/api/threads"
tags: ["Threads"]
---

# Create thread

`POST /v2/api/threads`

## Request

- Base URL: `https://api.withallo.com`
- URL: `https://api.withallo.com/v2/api/threads`
- Auth: API key in header `Authorization`

Starts a discussion thread on a conversation item with a first comment. Each item can have only one thread.

## Request body

- object
  - `entity_type` 'CALL' | 'TEXT_MESSAGE' | 'CONVERSATION_NOTE', required: Type of the conversation item to attach the thread to.
  - `entity_id` string, required: ID of the conversation item (`cll-*`, `msg-*`, or `not-*`).
  - `content` string, required: First comment text (max 4000 characters). Mention teammates inline with `@[Name](usr-...)`.

## Response `201`

Thread created with its first comment

- object
  - `data` Thread
    - `id` string: Thread ID (`cth-*`)
    - `entity_type` 'CALL' | 'TEXT_MESSAGE' | 'CONVERSATION_NOTE': Type of the conversation item the thread is attached to.
    - `entity_id` string: ID of the conversation item (`cll-*`, `msg-*`, or `not-*`).
    - `contact_number` string: The contact's phone number (E.164).
    - `resolved` boolean
    - `resolved_at` string, date-time, nullable
    - `resolved_by` NoteUser: Author of a note or comment.
      - `id` string
      - `name` string, nullable
    - `comment_count` integer
    - `created_at` string, date-time
    - `comments` ThreadComment[]
      - `id` string: Comment ID (`thc-*`)
      - `content` string: Comment text, with mentions inline as `@[Name](usr-...)`.
      - `user` NoteUser: Author of a note or comment.
        - `id` string
        - `name` string, nullable
      - `mentions` NoteMention[]
        - `user_id` string
        - `name` string, nullable
        - `deleted` boolean: `true` if the mentioned user has since been removed from the team.
      - `created_at` string, date-time
      - `updated_at` string, date-time

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `404`: Resource not found
- `409`: Conflict with existing resource
- `429`: Rate limit exceeded

## Changes

- **2026-11-03** `46c77103dd14`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/withallo/apis/allo-api/changes/v2/api/threads/post.md)

---

[API](https://skmtc.dev/withallo/apis/allo-api.md) - [All operations](https://skmtc.dev/withallo/apis/allo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withallo/apis/allo-api/revisions/46c77103dd14?raw)
