Chatbot Threads
Create Thread
Create an empty thread of the chatbot.
POST
/
v0
/
chatbots
/
{chatbotId}
/
threads
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
chatbotId
string
requiredId of the chatbot
Body
application/json
threadId
string | null
If you pass the threadId, new thread will be created with this threadId. Otherwise, random threadId will be generated.
mode
enum<string>
Mode of the chat
Available options:
AI
, AGENT
chatUserEmail
string | null
Email of the user that is going to chat in the thread.
Response
200 - application/json
success
boolean
Indicates whether this is success response or error response
message
string
Overall message regarding the operation performed
data
object
Data returned from the server
Was this page helpful?