API Documentation
Chatbot Appearance
Chatbot Custom Content
Chatbot Follow Up Prompts
Chatbot Icons
Chatbot Messages
Chatbot Personas
Chatbot Prompts
Chatbot Quick Prompts
Chatbot Settings
Chatbot Threads
Chatbot Threads
Create Thread
Create an empty thread of the chatbot.
POST
/
v0
/
chatbots
/
{chatbotId}
/
threads
Copy
curl --request POST \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"threadId": "xyz",
"mode": "AI",
"chatUserEmail": null
}'
Copy
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Id of the chatbot
Body
application/json
Request Body
The body is of type object
.
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
Copy
curl --request POST \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"threadId": "xyz",
"mode": "AI",
"chatUserEmail": null
}'
Copy
{
"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
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.