Skip to main content
POST
/
api
/
v1
/
typebots
/
{sessionId}
/
preview
/
startChat
Start Preview Chat
curl --request POST \
  --url https://bots-viewer.toolzz.ai/api/v1/typebots/{sessionId}/preview/startChat
{
  "sessionId": "<string>",
  "typebot": {
    "id": "<string>",
    "theme": "<any>",
    "settings": "<any>"
  },
  "messages": [
    {
      "id": "<string>",
      "type": "<string>",
      "content": "<any>"
    }
  ],
  "input": {
    "id": "<string>",
    "outgoingEdgeId": "<string>",
    "type": "<string>",
    "options": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.toolzz.dev/llms.txt

Use this file to discover all available pages before exploring further.

Parameters

typebotId
string
typebotId: The public ID of the bot to start a preview chat for.

Response Description

Below you will see the description of the function start preview chat.
sessionId
string
required
Unique identifier of the preview session.
typebot
object
required
The Bot information setted.
messages
object[]
required
The messages content and information in the bot session.
input
object{}
required
The bot input informations.