POST
/
v1
/
threads

Authorizations

X-Tune-Key
string
headerrequired

Tune API Keys are the preferred way to authenticate with the API. You can create an API Key from your Tune Studio Profile → 'Access Keys' (in sidebar)

Body

application/json
messages
object[]

List of messages to be added to the thread.

metadata
object

Metadata to store additional information in key-value pair.

title
string

Title of the thread (optional).

datasetId
string

Dataset ID if the thread is related to a dataset (optional).

toolResources
object

Response

200 - application/json
id
string

The ID of the thread.

object
string

"thread".

createdAt
string

The time the thread was created.

metadata
object

Metadata for the thread key-value pairs.

title
string

The title of the thread.

toolResources
object