๐Ÿงต Threads Official Documentation

โ‹™ Create Thread

Create a thread.

msg.payload Properties

messages array
A list of messages to start the thread with.
tool_resources array
A set of resources that are made available to the assistant's tools in this thread.
metadata object
Set of 16 key-value pairs that can be attached to an object.

โ‹™ Retrieve Thread

Retrieves a thread.

msg.payload Properties

thread_id string
The ID of the thread to retrieve.

โ‹™ Modify Thread

Modifies a thread.

msg.payload Properties

thread_id string
The ID of the thread to modify. Only the metadata can be modified.
metadata object
Set of 16 key-value pairs that can be attached to an object.

โ‹™ Delete Thread

Delete a thread.

msg.payload Properties

thread_id string
The ID of the thread to delete.