POST
/
v0
/
chatbots
/
{chatbotId}
/
threads
{
  "success": true,
  "message": "Created the chatbot thread successfully",
  "data": {
    "thread": {
      "threadId": "d2cd2d88-bac1-48de-a7b4-19797451f47g",
      "mode": "AI",
      "messages": [],
      "startedAt": "2024-05-07T06:26:01.674375Z",
      "updatedAt": "2024-05-07T06:26:01.674375Z",
      "chatUserId": null,
      "chatbotId": "361628903185318481",
      "chatUser": null
    }
  }
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

chatbotId
string
required

Id 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