---
title: "Create Thread"
method: POST
path: "/threads"
tags: ["Threads"]
---

# Create Thread

`POST /threads`

## Request

- Base URL: `https://api.puppeteerai.com`
- URL: `https://api.puppeteerai.com/threads`
- Auth: none declared. Required headers: `Authorization`

Create a new thread.

## Headers

- `Authorization` string, required

## Request body

- CreateThreadInput
  - `timezone` string, nullable: Timezone for the thread (e.g., "America/Chicago").
  - `user_phone_number` string, nullable
  - `user_email` string, nullable
  - `project_name` string, nullable: The name of the Puppeteer project.
  - `json_data` string, nullable: JSON data as a string to be sent to the thread upon creation. This data will be processed by the thread's JSON input handler.
  - `type` 'NORMAL' | 'SIMULATED' | 'CONFIG_TEST' | 'PLAYGROUND': Enum for different types of threads.
  - `scenario_id` string, nullable

## Response `200`

Successful Response

- CreateThreadResponse
  - `thread_id` string, required: The generated unique identifier for the new thread.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api.md) - [All operations](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/revisions/94b4e928b42f?raw)
