Thread
Create thread
POST https://rebyte.ai/api/sdk/threads
Create a new thread.
Request body
messages: An array of messages to start the thread with.
metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
Example Request
Return
A thread object.
Example
List threads
GET https://rebyte.ai/api/sdk/threads
Get list of threads.
Query parameters
limit: An integer, with the maximum number of threads to return. Default is 20.
order: A string, with the order to return the threads. Default is desc.
before: A string, used as a cursor for use in pagination. after is an object ID that defines your place in the list.
after: A string, used as a cursor for use in pagination. before is an object ID that defines your place in the list.
Example Request
Return
A list of thread objects.
Example
Get thread
GET https://rebyte.ai/api/sdk/threads/{thread_id}
Get a thread by id.
Path parameters
thread_id(required): A string, with the ID of the thread to retrieve.
Example Request
Returns The thread object matching the specified ID.
Example
Update thread
POST https://rebyte.ai/api/sdk/threads/{thread_id}
Update a thread.
Path parameters
thread_id(required): A string, with the ID of the thread to retrieve.
Request body
metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
Example Request
Returns The modified thread object matching the specified ID.
Example
Last updated