Skip to main content
 print this page

Create a thread in a project

POST 

/ai/projects/:project_id/threads

Starts a new conversation thread in a project and returns its identifier. You need at least read-only access to the project. The call takes no request body. The thread is created with the title "New Thread" and visibility private, and you become its owner; rename it or share it afterwards with the thread update endpoint. It also joins the project's RecentThreads list, which keeps the five most recently active threads.

Request​

Responses​

The thread was created. ThreadId is the identifier to use on the thread detail, update, delete and messages endpoints.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers
    Strict-Transport-Security