Creates a new AI thread.
Permission | Description |
---|---|
ai_threads.create | Create new threads |
Name | Type | Required | Description | Example |
---|---|---|---|---|
title | string | No | Optional title for the thread | "My Thread" |
context_type | string | No | Optional context type | "plan" |
context_id | int | No | Optional context ID | 42 |
{
"title": "My Thread",
"context_type": "plan",
"context_id": 42
}
Returns the created AI thread resource.
{ /* ai thread resource */ }
For a full schema, see AI Thread Resource.
Status | Description | Reference |
---|---|---|
422 | Validation error | Validation error |
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |