Create Thread

Create a new thread with the following title logic:

  1. If title is provided in the request, use that
  2. If no title but initialization message exists, use that as a prompt to generate title
  3. Otherwise default to “New Thread”

Path parameters

group_idintegerRequired

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
titlestring or nullOptional<=64 characters
The title of the thread
extramap from strings to any or nullOptional
Extra metadata for the thread
initialization_messagestring or nullOptional

Response

Successful Response
idinteger
group_idinteger
titlestring or null<=64 characters
The title of the thread
extramap from strings to any or null
Extra metadata for the thread
created_atstring or nullformat: "date-time"
updated_atstring or nullformat: "date-time"
is_archivedboolean or null

Errors