Chat
Continue chat
Chat
Continue chat
POST
/
v1
/
sessions
/
{sessionId}
/
continueChat
curl --request POST \
--url https://typebot.io/api/v1/sessions/{sessionId}/continueChat \
--header 'Content-Type: application/json' \
--data '{
"message": {
"type": "text",
"text": "<string>",
"attachedFileUrls": [
"<string>"
]
},
"textBubbleContentFormat": "richText"
}'
{
"lastMessageNewFormat": "<string>",
"messages": [
{
"id": "<string>",
"type": "text",
"content": {
"type": "richText",
"richText": "<any>"
}
}
],
"input": {
"id": "<string>",
"outgoingEdgeId": "<string>",
"type": "text input",
"options": {
"labels": {
"placeholder": "<string>",
"button": "<string>"
},
"variableId": "<string>",
"isLong": true,
"audioClip": {
"isEnabled": true,
"saveVariableId": "<string>",
"visibility": "Auto"
},
"attachments": {
"isEnabled": true,
"saveVariableId": "<string>",
"visibility": "Auto"
}
},
"prefilledValue": "<string>",
"runtimeOptions": {
"paymentIntentSecret": "<string>",
"amountLabel": "<string>",
"publicKey": "<string>"
}
},
"clientSideActions": [
{
"type": "scriptToExecute",
"scriptToExecute": {
"content": "<string>",
"isCode": true,
"args": [
{
"id": "<string>",
"value": "<string>"
}
]
},
"lastBubbleBlockId": "<string>",
"expectsDedicatedReply": true
}
],
"logs": [
{
"status": "<string>",
"description": "<string>",
"details": "<string>",
"context": "<string>"
}
],
"dynamicTheme": {
"hostAvatarUrl": "<string>",
"guestAvatarUrl": "<string>",
"backgroundUrl": "<string>"
},
"progress": 123
}
Body
application/json
Available options:
richText
, markdown
Response
200
application/json
Successful response
The sent message is validated and formatted on the backend. For example, if for a date input you replied something like tomorrow
, the backend will convert it to a date string. This field returns the formatted message.
Available options:
text input
Actions to execute on the client side
Available options:
scriptToExecute
If progress bar is enabled, this field will return a number between 0 and 100 indicating the current progress based on the longest remaining path of the flow.
curl --request POST \
--url https://typebot.io/api/v1/sessions/{sessionId}/continueChat \
--header 'Content-Type: application/json' \
--data '{
"message": {
"type": "text",
"text": "<string>",
"attachedFileUrls": [
"<string>"
]
},
"textBubbleContentFormat": "richText"
}'
{
"lastMessageNewFormat": "<string>",
"messages": [
{
"id": "<string>",
"type": "text",
"content": {
"type": "richText",
"richText": "<any>"
}
}
],
"input": {
"id": "<string>",
"outgoingEdgeId": "<string>",
"type": "text input",
"options": {
"labels": {
"placeholder": "<string>",
"button": "<string>"
},
"variableId": "<string>",
"isLong": true,
"audioClip": {
"isEnabled": true,
"saveVariableId": "<string>",
"visibility": "Auto"
},
"attachments": {
"isEnabled": true,
"saveVariableId": "<string>",
"visibility": "Auto"
}
},
"prefilledValue": "<string>",
"runtimeOptions": {
"paymentIntentSecret": "<string>",
"amountLabel": "<string>",
"publicKey": "<string>"
}
},
"clientSideActions": [
{
"type": "scriptToExecute",
"scriptToExecute": {
"content": "<string>",
"isCode": true,
"args": [
{
"id": "<string>",
"value": "<string>"
}
]
},
"lastBubbleBlockId": "<string>",
"expectsDedicatedReply": true
}
],
"logs": [
{
"status": "<string>",
"description": "<string>",
"details": "<string>",
"context": "<string>"
}
],
"dynamicTheme": {
"hostAvatarUrl": "<string>",
"guestAvatarUrl": "<string>",
"backgroundUrl": "<string>"
},
"progress": 123
}