---
title: "Create a new thread"
method: POST
path: "/thread"
tags: ["thread"]
---

# Create a new thread

`POST /thread`

## Request body

- object
  - `id` string, required
  - `session_id` string
  - `name` string, required
  - `start_time` string, date-time
  - `end_time` string, date-time
  - `input` string, required
  - `output` string, required

## Response `201`

Thread created

- string

---

[API](https://skmtc.net/defra/apis/twiki-api.md) · [All operations](https://skmtc.net/defra/apis/twiki-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/defra/twiki-api/versions/c3ab20af61ef/schema)
