Skip to content

Create Thread

POST
/api/threads
curl --request POST \
--url http://localhost:8000/api/threads \
--header 'Content-Type: application/json' \
--cookie factory_session=<factory_session> \
--data '{ "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "prompt": "example", "mode": "low", "environment": "daytona", "size": "example" }'
Media typeapplication/json
CreateThread
object
project_id
required
Project Id
string format: uuid
prompt
required
Prompt
string
>= 1 characters <= 20000 characters
mode
Mode
string
default: high
Allowed values: low medium high
environment
Any of:
string
size
Any of:
string

Successful Response

Media typeapplication/json
Response Create Thread Api Threads Post
object
key
additional properties
any

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}