2022-11-29 10:02:40 +01:00
{
"openapi" : "3.0.3" ,
"info" : {
"title" : "Chat API" ,
"version" : "1.0.0"
} ,
"servers" : [
{
"url" : "https://typebot.io/api/v1"
}
] ,
"paths" : {
2022-12-22 17:02:34 +01:00
"/sendMessage" : {
2022-11-29 10:02:40 +01:00
"post" : {
2023-05-25 17:24:39 +02:00
"operationId" : "sendMessage" ,
2022-11-29 10:02:40 +01:00
"summary" : "Send a message" ,
2022-12-22 17:02:34 +01:00
"description" : "To initiate a chat, do not provide a `sessionId` nor a `message`.\n\nContinue the conversation by providing the `sessionId` and the `message` that should answer the previous question.\n\nSet the `isPreview` option to `true` to chat with the non-published version of the typebot." ,
2023-03-09 08:46:36 +01:00
"security" : [
{
"Authorization" : [ ]
}
] ,
2022-11-29 10:02:40 +01:00
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"properties" : {
"message" : {
"type" : "string" ,
2022-12-22 17:02:34 +01:00
"description" : "The answer to the previous chat input. Do not provide it if you are starting a new chat."
2022-11-29 10:02:40 +01:00
} ,
"sessionId" : {
"type" : "string" ,
2022-12-22 17:02:34 +01:00
"description" : "Session ID that you get from the initial chat request to a bot. If not provided, it will create a new session."
2022-11-29 10:02:40 +01:00
} ,
2023-06-16 19:26:29 +02:00
"clientLogs" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"status" : {
"type" : "string"
} ,
"description" : {
"type" : "string"
} ,
"details" : { }
} ,
"required" : [
"status" ,
"description"
] ,
"additionalProperties" : false
} ,
"description" : "Logs while executing client side actions"
} ,
2022-12-22 17:02:34 +01:00
"startParams" : {
"type" : "object" ,
"properties" : {
2023-01-16 12:13:21 +01:00
"typebot" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groups" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"title" : {
"type" : "string"
} ,
"graphCoordinates" : {
"type" : "object" ,
"properties" : {
"x" : {
"type" : "number"
} ,
"y" : {
"type" : "number"
}
} ,
"required" : [
"x" ,
"y"
] ,
"additionalProperties" : false
} ,
"blocks" : {
"type" : "array" ,
"items" : {
"anyOf" : [
2023-03-14 16:42:12 +01:00
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"start"
]
} ,
"label" : {
"type" : "string"
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"label"
] ,
"additionalProperties" : false
} ,
2023-01-16 12:13:21 +01:00
{
2023-05-04 09:20:30 -04:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"text"
]
} ,
"content" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"html" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"richText" : {
"type" : "array"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"plainText" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"richText"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"image"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"content" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"url" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"clickLink" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
2023-04-11 08:19:42 +02:00
} ,
2023-05-04 09:20:30 -04:00
"alt" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"video"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"content" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"url" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"id" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
2023-05-04 09:20:30 -04:00
"url" ,
"youtube" ,
"vimeo"
2023-03-14 16:42:12 +01:00
]
2023-05-04 09:20:30 -04:00
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"embed"
]
} ,
"content" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"height" : {
"anyOf" : [
{
"type" : "number"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
{ }
]
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"height"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"audio"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"content" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"url" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2023-05-04 09:20:30 -04:00
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"text input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"placeholder" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2023-01-16 12:13:21 +01:00
} ,
2023-05-04 09:20:30 -04:00
"button" : {
"type" : "string"
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"placeholder" ,
"button"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"variableId" : {
"type" : "string"
} ,
"isLong" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"labels" ,
"isLong"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"choice input"
]
} ,
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "number" ,
"enum" : [
0
]
} ,
"content" : {
"type" : "string"
2023-06-06 13:25:13 +02:00
} ,
"displayCondition" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"condition" : {
"type" : "object" ,
"properties" : {
"logicalOperator" : {
"type" : "string" ,
"enum" : [
"OR" ,
"AND"
]
} ,
"comparisons" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"logicalOperator" ,
"comparisons"
] ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"blockId" ,
"type"
] ,
"additionalProperties" : false
}
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isMultipleChoice" : {
"type" : "boolean"
} ,
"buttonLabel" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"dynamicVariableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isSearchable" : {
"type" : "boolean"
2023-01-16 12:13:21 +01:00
} ,
2023-05-04 09:20:30 -04:00
"searchInputPlaceholder" : {
"type" : "string"
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"isMultipleChoice" ,
"buttonLabel"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
}
2023-05-04 09:20:30 -04:00
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"items" ,
"options"
] ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
} ,
{
2023-05-04 09:20:30 -04:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"email input"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"placeholder" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"button" : {
"type" : "string"
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"placeholder" ,
"button"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"retryMessageContent" : {
"type" : "string"
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"labels" ,
"retryMessageContent"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"type" : {
"type" : "string" ,
"enum" : [
"number input"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"placeholder" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"button" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"placeholder" ,
"button"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"min" : {
2023-06-16 16:50:23 +02:00
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-05-04 09:20:30 -04:00
} ,
"max" : {
2023-06-16 16:50:23 +02:00
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-05-04 09:20:30 -04:00
} ,
"step" : {
2023-06-16 16:50:23 +02:00
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"labels"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"url input"
]
2023-01-16 12:13:21 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-09 08:46:36 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-09 08:46:36 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"placeholder" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"button" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"placeholder" ,
"button"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"retryMessageContent" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"labels" ,
"retryMessageContent"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"phone number input"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"placeholder" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"button" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"placeholder" ,
"button"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"retryMessageContent" : {
"type" : "string"
} ,
"defaultCountryCode" : {
"type" : "string"
}
} ,
"required" : [
"labels" ,
"retryMessageContent"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"date input"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"button" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"from" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"to" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2023-01-16 12:13:21 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"button" ,
"from" ,
"to"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"hasTime" : {
"type" : "boolean"
} ,
"isRange" : {
"type" : "boolean"
2023-01-16 12:13:21 +01:00
}
2023-03-09 08:46:36 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"labels" ,
"hasTime" ,
"isRange"
2023-03-09 08:46:36 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"payment input"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"provider" : {
2023-03-14 16:42:12 +01:00
"type" : "string" ,
"enum" : [
2023-05-04 09:20:30 -04:00
"Stripe"
2023-03-14 16:42:12 +01:00
]
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"button" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"success" : {
"type" : "string"
}
} ,
"required" : [
"button"
] ,
"additionalProperties" : false
} ,
"additionalInformation" : {
"type" : "object" ,
"properties" : {
"description" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"name" : {
"type" : "string"
} ,
"email" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"phoneNumber" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2023-05-25 17:24:39 +02:00
} ,
"address" : {
"type" : "object" ,
"properties" : {
"country" : {
"type" : "string"
} ,
"line1" : {
"type" : "string"
} ,
"line2" : {
"type" : "string"
} ,
"state" : {
"type" : "string"
} ,
"city" : {
"type" : "string"
} ,
"postalCode" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"credentialsId" : {
"type" : "string"
} ,
"currency" : {
"type" : "string"
} ,
"amount" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"provider" ,
"labels" ,
"currency"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"rating input"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"buttonType" : {
"anyOf" : [
{
"type" : "string" ,
"enum" : [
"Icons"
]
} ,
{
"type" : "string" ,
"enum" : [
"Numbers"
]
}
2023-03-14 16:42:12 +01:00
]
} ,
2023-05-04 09:20:30 -04:00
"length" : {
"type" : "number"
} ,
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"left" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"right" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"button" : {
"type" : "string"
}
} ,
"required" : [
"button"
] ,
"additionalProperties" : false
} ,
"customIcon" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
2023-03-14 16:42:12 +01:00
"type" : "boolean"
} ,
2023-05-04 09:20:30 -04:00
"svg" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"isEnabled"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"isOneClickSubmitEnabled" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"buttonType" ,
"length" ,
"labels" ,
"customIcon"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"file input"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isRequired" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"isMultipleAllowed" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"labels" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"placeholder" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"button" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"clear" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"skip" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"placeholder" ,
"button"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"sizeLimit" : {
"type" : "number"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"isMultipleAllowed" ,
"labels"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"picture choice input"
]
} ,
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"blockId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "number" ,
"enum" : [
3
]
} ,
"pictureSrc" : {
"type" : "string"
} ,
"title" : {
"type" : "string"
} ,
"description" : {
"type" : "string"
2023-06-06 13:25:13 +02:00
} ,
"displayCondition" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"condition" : {
"type" : "object" ,
"properties" : {
"logicalOperator" : {
"type" : "string" ,
"enum" : [
"OR" ,
"AND"
]
} ,
"comparisons" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"logicalOperator" ,
"comparisons"
] ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"blockId" ,
"type"
] ,
"additionalProperties" : false
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isMultipleChoice" : {
"type" : "boolean"
} ,
"isSearchable" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"buttonLabel" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"searchInputPlaceholder" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"dynamicItems" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"isEnabled" : {
2023-03-14 16:42:12 +01:00
"type" : "boolean"
} ,
2023-05-04 09:20:30 -04:00
"titlesVariableId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"descriptionsVariableId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"pictureSrcsVariableId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"buttonLabel" ,
"searchInputPlaceholder"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
}
2023-05-04 09:20:30 -04:00
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"items" ,
"options"
] ,
"additionalProperties" : false
2023-01-16 12:13:21 +01:00
} ,
{
2023-05-04 09:20:30 -04:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Code"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"name" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"content" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"shouldExecuteInParentContext" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"name"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Condition"
]
} ,
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "number" ,
"enum" : [
1
]
} ,
"content" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"logicalOperator" : {
"type" : "string" ,
2023-03-14 16:42:12 +01:00
"enum" : [
2023-05-04 09:20:30 -04:00
"OR" ,
"AND"
2023-03-14 16:42:12 +01:00
]
} ,
2023-05-04 09:20:30 -04:00
"comparisons" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
2023-05-04 09:20:30 -04:00
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"logicalOperator" ,
"comparisons"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
}
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id" ,
"blockId" ,
"type" ,
"content"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"items"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Redirect"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"url" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isNewTab" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"isNewTab"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Set variable"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"expressionToEvaluate" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isCode" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
} ,
2023-05-25 17:24:39 +02:00
"type" : {
"type" : "string" ,
"enum" : [
"Custom" ,
"Empty" ,
"User ID" ,
"Today" ,
"Yesterday" ,
"Tomorrow" ,
"Random ID" ,
2023-06-16 16:50:23 +02:00
"Moment of the day" ,
2023-05-25 17:24:39 +02:00
"Map item with same index"
]
} ,
"mapListItemParams" : {
"type" : "object" ,
"properties" : {
"baseItemVariableId" : {
"type" : "string"
} ,
"baseListVariableId" : {
"type" : "string"
} ,
"targetListVariableId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
} ,
2023-05-04 09:20:30 -04:00
"isExecutedOnClient" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
2023-01-16 12:13:21 +01:00
} ,
2023-05-04 09:20:30 -04:00
"type" : {
"type" : "string" ,
"enum" : [
"Typebot link"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"typebotId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
"groupId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
2023-04-26 17:54:00 +02:00
} ,
2023-05-04 09:20:30 -04:00
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Wait"
]
} ,
"options" : {
2023-04-26 17:54:00 +02:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"secondsToWaitFor" : {
2023-04-26 17:54:00 +02:00
"type" : "string"
}
} ,
"additionalProperties" : false
2023-01-16 12:13:21 +01:00
}
2023-05-04 09:20:30 -04:00
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
2023-01-16 12:13:21 +01:00
} ,
{
2023-05-04 09:20:30 -04:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Jump"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
"groupId" : {
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"blockId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2023-05-04 09:20:30 -04:00
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"AB test"
]
} ,
"items" : {
"type" : "array" ,
"minItems" : 2 ,
"maxItems" : 2 ,
"items" : [
{
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"id" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "number" ,
"enum" : [
2
]
} ,
"path" : {
2023-03-14 16:42:12 +01:00
"type" : "string" ,
"enum" : [
2023-05-04 09:20:30 -04:00
"a"
2023-03-14 16:42:12 +01:00
]
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"blockId" ,
"type" ,
"path"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"blockId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"outgoingEdgeId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"type" : {
"type" : "number" ,
"enum" : [
2
]
} ,
"path" : {
"type" : "string" ,
"enum" : [
"b"
]
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"id" ,
"blockId" ,
"type" ,
"path"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
}
2023-05-04 09:20:30 -04:00
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"aPercent" : {
"type" : "number" ,
"minimum" : 0 ,
"maximum" : 100
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"aPercent"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"items" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Chatwoot"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"task" : {
"type" : "string" ,
"enum" : [
"Show widget" ,
"Close widget"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"baseUrl" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"websiteToken" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"user" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"id" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"email" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"name" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"avatarUrl" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"phoneNumber" : {
2023-05-02 14:37:34 -04:00
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"baseUrl" ,
"websiteToken"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Google Analytics"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"trackingId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"category" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"action" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"label" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"value" : {
2023-03-14 16:42:12 +01:00
"anyOf" : [
{
2023-05-04 09:20:30 -04:00
"type" : "number"
} ,
{ }
]
} ,
"sendTo" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Google Sheets"
]
} ,
"options" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"credentialsId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"sheetId" : {
"type" : "string"
} ,
"spreadsheetId" : {
"type" : "string"
} ,
"action" : {
"type" : "string" ,
"enum" : [
"Get data from sheet"
]
} ,
"referenceCell" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"column" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"value" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"id" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"id"
2023-03-14 16:42:12 +01:00
] ,
2023-05-25 17:24:39 +02:00
"additionalProperties" : false ,
"description" : "Deprecated. Use `filter` instead."
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"filter" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"comparisons" : {
2023-03-14 16:42:12 +01:00
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"id" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"column" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
2023-05-04 09:20:30 -04:00
"logicalOperator" : {
"type" : "string" ,
"enum" : [
"OR" ,
"AND"
]
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"comparisons" ,
"logicalOperator"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
} ,
2023-05-04 09:20:30 -04:00
"cellsToExtract" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"column" : {
"type" : "string"
} ,
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
2023-05-25 17:24:39 +02:00
} ,
"totalRowsToExtract" : {
"type" : "string" ,
"enum" : [
"All" ,
"First" ,
"Last" ,
"Random"
]
2023-03-14 16:42:12 +01:00
}
2023-05-04 09:20:30 -04:00
} ,
"required" : [
"action" ,
"cellsToExtract"
] ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
{
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"credentialsId" : {
"type" : "string"
} ,
"sheetId" : {
"type" : "string"
} ,
"spreadsheetId" : {
"type" : "string"
} ,
"action" : {
"type" : "string" ,
"enum" : [
"Insert a row"
]
} ,
"cellsToInsert" : {
2023-03-14 16:42:12 +01:00
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"column" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"value" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"id" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
"id"
] ,
2023-05-25 17:24:39 +02:00
"additionalProperties" : false ,
"description" : "Deprecated. Use `filter` instead."
2023-03-14 16:42:12 +01:00
}
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"action" ,
"cellsToInsert"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"credentialsId" : {
"type" : "string"
} ,
"sheetId" : {
"type" : "string"
} ,
"spreadsheetId" : {
"type" : "string"
} ,
"action" : {
"type" : "string" ,
"enum" : [
"Update a row"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"cellsToUpsert" : {
2023-03-14 16:42:12 +01:00
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"column" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"value" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"id" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
}
} ,
"required" : [
"id"
] ,
2023-05-25 17:24:39 +02:00
"additionalProperties" : false ,
"description" : "Deprecated. Use `filter` instead."
2023-03-14 16:42:12 +01:00
}
} ,
2023-05-04 09:20:30 -04:00
"referenceCell" : {
"type" : "object" ,
"properties" : {
"column" : {
"type" : "string"
} ,
"value" : {
"type" : "string"
} ,
"id" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
2023-05-25 17:24:39 +02:00
"additionalProperties" : false ,
"description" : "Deprecated. Use `filter` instead."
} ,
"filter" : {
"type" : "object" ,
"properties" : {
"comparisons" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"column" : {
"type" : "string"
} ,
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"logicalOperator" : {
"type" : "string" ,
"enum" : [
"OR" ,
"AND"
]
}
} ,
"required" : [
"comparisons" ,
"logicalOperator"
] ,
2023-05-04 09:20:30 -04:00
"additionalProperties" : false
}
} ,
"required" : [
"action" ,
"cellsToUpsert"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"credentialsId" : {
"type" : "string"
} ,
"sheetId" : {
"type" : "string"
} ,
"spreadsheetId" : {
"type" : "string"
} ,
"action" : {
"not" : { }
}
} ,
"additionalProperties" : false
}
]
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Make.com"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variablesForTest" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"value" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"responseVariableMapping" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"bodyPath" : {
"type" : "string"
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"isAdvancedConfig" : {
"type" : "boolean"
} ,
"isCustomBody" : {
"type" : "boolean"
2023-05-31 07:53:30 +02:00
} ,
"isExecutedOnClient" : {
"type" : "boolean"
2023-01-27 10:54:59 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"variablesForTest" ,
"responseVariableMapping"
2023-01-27 10:54:59 +01:00
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
} ,
2023-05-04 09:20:30 -04:00
"webhookId" : {
"type" : "string"
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options" ,
"webhookId"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"OpenAI"
]
} ,
"options" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"task" : {
"not" : { }
} ,
"credentialsId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
{
"type" : "object" ,
"properties" : {
"task" : {
"type" : "string" ,
"enum" : [
"Create chat completion"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"model" : {
"type" : "string" ,
"enum" : [
2023-06-16 16:50:23 +02:00
"gpt-3.5-turbo" ,
"gpt-3.5-turbo-0613" ,
"gpt-3.5-turbo-16k" ,
"gpt-3.5-turbo-16k-0613" ,
"gpt-3.5-turbo-0301" ,
2023-05-04 09:20:30 -04:00
"gpt-4" ,
2023-06-16 16:50:23 +02:00
"gpt-4-0613" ,
2023-05-04 09:20:30 -04:00
"gpt-4-32k" ,
2023-06-16 16:50:23 +02:00
"gpt-4-32k-0613" ,
2023-05-04 09:20:30 -04:00
"gpt-4-32k-0314" ,
2023-06-16 16:50:23 +02:00
"gpt-4-0314"
2023-05-04 09:20:30 -04:00
]
} ,
"messages" : {
"type" : "array" ,
"items" : {
"anyOf" : [
{
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"role" : {
2023-03-14 16:42:12 +01:00
"type" : "string" ,
"enum" : [
2023-05-04 09:20:30 -04:00
"system" ,
"user" ,
"assistant"
2023-03-14 16:42:12 +01:00
]
2022-11-29 10:02:40 +01:00
} ,
2023-05-04 09:20:30 -04:00
"content" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
2023-06-16 16:50:23 +02:00
} ,
"name" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"id"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
} ,
2023-05-04 09:20:30 -04:00
{
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2023-03-14 16:42:12 +01:00
"id" : {
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"role" : {
2022-11-29 10:02:40 +01:00
"type" : "string" ,
"enum" : [
2023-05-04 09:20:30 -04:00
"Messages sequence ✨"
2022-11-29 10:02:40 +01:00
]
} ,
2023-05-04 09:20:30 -04:00
"content" : {
"type" : "object" ,
"properties" : {
"assistantMessagesVariableId" : {
"type" : "string"
} ,
"userMessagesVariableId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2023-03-14 16:42:12 +01:00
"id" ,
2023-05-04 09:20:30 -04:00
"role"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
}
2023-05-04 09:20:30 -04:00
]
}
} ,
"advancedSettings" : {
"type" : "object" ,
"properties" : {
"temperature" : {
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"responseMapping" : {
2023-03-14 16:42:12 +01:00
"type" : "array" ,
"items" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"valueToExtract" : {
"type" : "string" ,
"enum" : [
"Message content" ,
"Total tokens"
]
2022-11-29 10:02:40 +01:00
} ,
2023-05-04 09:20:30 -04:00
"variableId" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"id" ,
"valueToExtract"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
2023-05-04 09:20:30 -04:00
"credentialsId" : {
"type" : "string"
}
} ,
"required" : [
"task" ,
"model" ,
"messages" ,
"responseMapping"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"task" : {
"type" : "string" ,
"enum" : [
"Create image"
]
} ,
"prompt" : {
"type" : "string"
} ,
"advancedOptions" : {
"type" : "object" ,
"properties" : {
"size" : {
"type" : "string" ,
"enum" : [
"256x256" ,
"512x512" ,
"1024x1024"
]
}
} ,
"additionalProperties" : false
} ,
"responseMapping" : {
2023-03-14 16:42:12 +01:00
"type" : "array" ,
"items" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2023-03-14 16:42:12 +01:00
"id" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-05-04 09:20:30 -04:00
"valueToExtract" : {
"type" : "string" ,
"enum" : [
"Image URL"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"variableId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"id" ,
"valueToExtract"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"credentialsId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"task" ,
"advancedOptions" ,
"responseMapping"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
}
2023-05-04 09:20:30 -04:00
]
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Pabbly"
]
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variablesForTest" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
2023-05-04 09:20:30 -04:00
} ,
"variableId" : {
"type" : "string"
} ,
"value" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"responseVariableMapping" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"bodyPath" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
}
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"isAdvancedConfig" : {
"type" : "boolean"
} ,
"isCustomBody" : {
"type" : "boolean"
2023-05-31 07:53:30 +02:00
} ,
"isExecutedOnClient" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"variablesForTest" ,
"responseVariableMapping"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
} ,
2023-05-04 09:20:30 -04:00
"webhookId" : {
"type" : "string"
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options" ,
"webhookId"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Email"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"credentialsId" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"isCustomBody" : {
"type" : "boolean"
} ,
"isBodyCode" : {
"type" : "boolean"
} ,
"recipients" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"subject" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"body" : {
2023-03-14 16:42:12 +01:00
"type" : "string"
} ,
2023-05-04 09:20:30 -04:00
"replyTo" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"cc" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"bcc" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"attachmentsVariableId" : {
"type" : "string"
}
} ,
"required" : [
"credentialsId" ,
"recipients"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Webhook"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variablesForTest" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"value" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"responseVariableMapping" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"bodyPath" : {
"type" : "string"
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
2022-11-29 10:02:40 +01:00
} ,
2023-05-04 09:20:30 -04:00
"isAdvancedConfig" : {
"type" : "boolean"
} ,
"isCustomBody" : {
"type" : "boolean"
2023-05-31 07:53:30 +02:00
} ,
"isExecutedOnClient" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"required" : [
2023-05-04 09:20:30 -04:00
"variablesForTest" ,
"responseVariableMapping"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
} ,
2023-05-04 09:20:30 -04:00
"webhookId" : {
"type" : "string"
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options" ,
"webhookId"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Zapier"
]
} ,
"options" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
2023-05-04 09:20:30 -04:00
"variablesForTest" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"value" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"responseVariableMapping" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"bodyPath" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
2023-05-04 09:20:30 -04:00
"required" : [
"id"
] ,
"additionalProperties" : false
}
2022-11-29 10:02:40 +01:00
} ,
2023-05-04 09:20:30 -04:00
"isAdvancedConfig" : {
"type" : "boolean"
} ,
"isCustomBody" : {
"type" : "boolean"
2023-05-31 07:53:30 +02:00
} ,
"isExecutedOnClient" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
2023-05-04 09:20:30 -04:00
"variablesForTest" ,
"responseVariableMapping"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
"webhookId" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
2023-05-04 09:20:30 -04:00
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options" ,
"webhookId"
] ,
"additionalProperties" : false
2023-06-28 10:29:58 +02:00
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"Pixel"
]
} ,
"options" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"pixelId" : {
"type" : "string"
} ,
"isInitSkip" : {
"type" : "boolean"
} ,
"params" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"key" : {
"type" : "string"
} ,
"value" : { }
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"eventType" : {
"not" : { }
}
} ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"pixelId" : {
"type" : "string"
} ,
"isInitSkip" : {
"type" : "boolean"
} ,
"params" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"key" : {
"type" : "string"
} ,
"value" : { }
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"eventType" : {
"type" : "string" ,
"enum" : [
"Lead" ,
"Contact" ,
"CompleteRegistration" ,
"Schedule" ,
"SubmitApplication" ,
"ViewContent" ,
"AddPaymentInfo" ,
"AddToCart" ,
"AddToWishlist" ,
"CustomizeProduct" ,
"Donate" ,
"FindLocation" ,
"InitiateCheckout" ,
"Purchase" ,
"Search" ,
"StartTrial" ,
"Subscribe"
]
}
} ,
"required" : [
"eventType"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"pixelId" : {
"type" : "string"
} ,
"isInitSkip" : {
"type" : "boolean"
} ,
"params" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"key" : {
"type" : "string"
} ,
"value" : { }
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"eventType" : {
"type" : "string" ,
"enum" : [
"Custom"
]
} ,
"name" : {
"type" : "string"
}
} ,
"required" : [
"eventType"
] ,
"additionalProperties" : false
}
]
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
]
}
}
} ,
"required" : [
"id" ,
"title" ,
"graphCoordinates" ,
"blocks"
] ,
"additionalProperties" : false
}
} ,
"edges" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"from" : {
"type" : "object" ,
"properties" : {
"groupId" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
} ,
"itemId" : {
"type" : "string"
}
} ,
"required" : [
"groupId" ,
"blockId"
] ,
"additionalProperties" : false
} ,
"to" : {
"type" : "object" ,
"properties" : {
"groupId" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
}
} ,
"required" : [
"groupId"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"from" ,
"to"
] ,
"additionalProperties" : false
}
} ,
"variables" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"name" : {
"type" : "string"
} ,
"value" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"type" : "array" ,
"items" : {
2023-03-21 15:42:03 +01:00
"type" : "string" ,
"nullable" : true
2023-03-14 16:42:12 +01:00
}
}
] ,
"nullable" : true
}
} ,
"required" : [
"id" ,
"name"
] ,
"additionalProperties" : false
}
} ,
"settings" : {
"type" : "object" ,
"properties" : {
"general" : {
"type" : "object" ,
"properties" : {
"isBrandingEnabled" : {
"type" : "boolean"
} ,
"isTypingEmulationEnabled" : {
"type" : "boolean"
} ,
"isInputPrefillEnabled" : {
"type" : "boolean"
} ,
"isHideQueryParamsEnabled" : {
"type" : "boolean"
} ,
"isNewResultOnRefreshEnabled" : {
"type" : "boolean"
2023-05-25 17:24:39 +02:00
} ,
"rememberUser" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"storage" : {
"type" : "string" ,
"enum" : [
"session" ,
"local"
]
}
} ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"isBrandingEnabled"
] ,
"additionalProperties" : false
} ,
"typingEmulation" : {
"type" : "object" ,
"properties" : {
"enabled" : {
"type" : "boolean"
} ,
"speed" : {
"type" : "number"
} ,
"maxDelay" : {
"type" : "number"
}
} ,
"required" : [
"enabled" ,
"speed" ,
"maxDelay"
] ,
"additionalProperties" : false
} ,
"metadata" : {
"type" : "object" ,
"properties" : {
"title" : {
"type" : "string"
} ,
"description" : {
"type" : "string"
} ,
"imageUrl" : {
"type" : "string"
} ,
"favIconUrl" : {
"type" : "string"
} ,
"customHeadCode" : {
"type" : "string"
} ,
"googleTagManagerId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"general" ,
"typingEmulation" ,
"metadata"
] ,
"additionalProperties" : false
} ,
"theme" : {
"type" : "object" ,
"properties" : {
"general" : {
"type" : "object" ,
"properties" : {
"font" : {
"type" : "string"
} ,
"background" : {
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"Color" ,
"Image" ,
"None"
]
} ,
"content" : {
"type" : "string"
}
} ,
"required" : [
"type"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"font" ,
"background"
] ,
"additionalProperties" : false
} ,
"chat" : {
"type" : "object" ,
"properties" : {
"hostAvatar" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"url" : {
"type" : "string"
}
} ,
"required" : [
"isEnabled"
] ,
"additionalProperties" : false
} ,
"guestAvatar" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"url" : {
"type" : "string"
}
} ,
"required" : [
"isEnabled"
] ,
"additionalProperties" : false
} ,
"hostBubbles" : {
"type" : "object" ,
"properties" : {
"backgroundColor" : {
"type" : "string"
} ,
"color" : {
"type" : "string"
}
} ,
"required" : [
"backgroundColor" ,
"color"
] ,
"additionalProperties" : false
} ,
"guestBubbles" : {
"type" : "object" ,
"properties" : {
"backgroundColor" : {
"type" : "string"
} ,
"color" : {
"type" : "string"
}
} ,
"required" : [
"backgroundColor" ,
"color"
] ,
"additionalProperties" : false
} ,
"buttons" : {
"type" : "object" ,
"properties" : {
"backgroundColor" : {
"type" : "string"
} ,
"color" : {
"type" : "string"
}
} ,
"required" : [
"backgroundColor" ,
"color"
] ,
"additionalProperties" : false
} ,
"inputs" : {
"type" : "object" ,
"properties" : {
"backgroundColor" : {
"type" : "string"
} ,
"color" : {
"type" : "string"
} ,
"placeholderColor" : {
"type" : "string"
}
} ,
"required" : [
"backgroundColor" ,
"color" ,
"placeholderColor"
] ,
"additionalProperties" : false
2023-03-28 15:10:06 +02:00
} ,
"roundness" : {
"type" : "string" ,
"enum" : [
"none" ,
"medium" ,
"large"
]
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"hostBubbles" ,
"guestBubbles" ,
"buttons" ,
"inputs"
] ,
"additionalProperties" : false
} ,
"customCss" : {
"type" : "string"
}
} ,
"required" : [
"general" ,
"chat"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groups" ,
"edges" ,
"variables" ,
"settings" ,
"theme"
] ,
"additionalProperties" : false
} ,
{
"type" : "string"
}
] ,
"description" : "Either a Typebot ID or a Typebot object. If you provide a Typebot object, it will be executed in preview mode. ([How can I find my typebot ID?](https://docs.typebot.io/api#how-to-find-my-typebotid))."
} ,
"isPreview" : {
"type" : "boolean" ,
"description" : "If set to `true`, it will start a Preview session with the unpublished bot and it won't be saved in the Results tab. You need to be authenticated for this to work."
} ,
"resultId" : {
"type" : "string" ,
"description" : "Provide it if you'd like to overwrite an existing result."
} ,
"startGroupId" : {
"type" : "string" ,
"description" : "Start chat from a specific group."
} ,
"prefilledVariables" : {
"type" : "object" ,
"additionalProperties" : { } ,
"description" : "[More info about prefilled variables.](https://docs.typebot.io/editor/variables#prefilled-variables)"
2023-05-25 17:24:39 +02:00
} ,
"isStreamEnabled" : {
"type" : "boolean"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"typebot"
] ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
}
}
}
} ,
"parameters" : [ ] ,
"responses" : {
"200" : {
"description" : "Successful response" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"properties" : {
"messages" : {
"type" : "array" ,
"items" : {
"allOf" : [
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
}
} ,
"required" : [
"id"
2023-05-25 17:24:39 +02:00
]
2023-03-14 16:42:12 +01:00
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"text"
]
} ,
"content" : {
"type" : "object" ,
"properties" : {
"html" : {
"type" : "string"
} ,
2023-04-13 17:04:21 +02:00
"richText" : {
"type" : "array"
} ,
2023-03-14 16:42:12 +01:00
"plainText" : {
"type" : "string"
}
} ,
"required" : [
2023-04-13 17:04:21 +02:00
"richText"
2023-03-14 16:42:12 +01:00
] ,
"additionalProperties" : false
}
} ,
"required" : [
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"image"
]
} ,
"content" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
2023-04-11 08:19:42 +02:00
} ,
"clickLink" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
} ,
"alt" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"video"
]
} ,
"content" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
} ,
"id" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"url" ,
"youtube" ,
"vimeo"
]
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"audio"
]
} ,
"content" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"type" ,
"content"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string" ,
"enum" : [
"embed"
]
} ,
"content" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
} ,
"height" : {
"type" : "number"
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"type" ,
"content"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"input" : {
"allOf" : [
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"text input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"labels" : {
"type" : "object" ,
"properties" : {
"placeholder" : {
"type" : "string"
} ,
"button" : {
"type" : "string"
}
} ,
"required" : [
"placeholder" ,
"button"
] ,
"additionalProperties" : false
} ,
"variableId" : {
"type" : "string"
} ,
"isLong" : {
"type" : "boolean"
}
} ,
"required" : [
"labels" ,
"isLong"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"choice input"
]
} ,
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "number" ,
"enum" : [
0
]
} ,
"content" : {
"type" : "string"
2023-06-06 13:25:13 +02:00
} ,
"displayCondition" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"condition" : {
"type" : "object" ,
"properties" : {
"logicalOperator" : {
"type" : "string" ,
"enum" : [
"OR" ,
"AND"
]
} ,
"comparisons" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"logicalOperator" ,
"comparisons"
] ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"id" ,
"blockId" ,
"type"
] ,
"additionalProperties" : false
}
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"isMultipleChoice" : {
"type" : "boolean"
} ,
"buttonLabel" : {
"type" : "string"
} ,
"dynamicVariableId" : {
"type" : "string"
2023-04-26 17:54:00 +02:00
} ,
"isSearchable" : {
"type" : "boolean"
2023-05-04 09:20:30 -04:00
} ,
"searchInputPlaceholder" : {
"type" : "string"
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"isMultipleChoice" ,
"buttonLabel"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"items" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"email input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"labels" : {
"type" : "object" ,
"properties" : {
"placeholder" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"button" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"placeholder" ,
"button"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"retryMessageContent" : {
"type" : "string"
}
} ,
"required" : [
"labels" ,
"retryMessageContent"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"number input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"labels" : {
"type" : "object" ,
"properties" : {
"placeholder" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"button" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"placeholder" ,
"button"
] ,
"additionalProperties" : false
} ,
"min" : {
2023-06-16 16:50:23 +02:00
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-03-14 16:42:12 +01:00
} ,
"max" : {
2023-06-16 16:50:23 +02:00
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-03-14 16:42:12 +01:00
} ,
"step" : {
2023-06-16 16:50:23 +02:00
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"labels"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"url input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"labels" : {
"type" : "object" ,
"properties" : {
"placeholder" : {
"type" : "string"
} ,
"button" : {
"type" : "string"
}
} ,
"required" : [
"placeholder" ,
"button"
] ,
"additionalProperties" : false
} ,
"retryMessageContent" : {
"type" : "string"
}
} ,
"required" : [
"labels" ,
"retryMessageContent"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"phone number input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"labels" : {
"type" : "object" ,
"properties" : {
"placeholder" : {
"type" : "string"
} ,
"button" : {
"type" : "string"
}
} ,
"required" : [
"placeholder" ,
"button"
] ,
"additionalProperties" : false
} ,
"retryMessageContent" : {
"type" : "string"
} ,
"defaultCountryCode" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"labels" ,
"retryMessageContent"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"date input"
2022-11-29 10:02:40 +01:00
]
} ,
2023-03-14 16:42:12 +01:00
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"labels" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2023-03-14 16:42:12 +01:00
"button" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
} ,
2023-03-14 16:42:12 +01:00
"from" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
} ,
2023-03-14 16:42:12 +01:00
"to" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
}
} ,
"required" : [
2023-03-14 16:42:12 +01:00
"button" ,
"from" ,
"to"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
} ,
2023-03-14 16:42:12 +01:00
"hasTime" : {
"type" : "boolean"
} ,
"isRange" : {
"type" : "boolean"
}
} ,
"required" : [
"labels" ,
"hasTime" ,
"isRange"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"payment input"
]
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"provider" : {
"type" : "string" ,
"enum" : [
"Stripe"
]
} ,
"labels" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2023-03-14 16:42:12 +01:00
"button" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"success" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2023-03-14 16:42:12 +01:00
"button"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
} ,
"additionalInformation" : {
"type" : "object" ,
"properties" : {
2023-03-29 16:33:06 +02:00
"description" : {
"type" : "string"
} ,
2023-03-14 16:42:12 +01:00
"name" : {
"type" : "string"
} ,
"email" : {
"type" : "string"
} ,
"phoneNumber" : {
"type" : "string"
2023-05-25 17:24:39 +02:00
} ,
"address" : {
"type" : "object" ,
"properties" : {
"country" : {
"type" : "string"
} ,
"line1" : {
"type" : "string"
} ,
"line2" : {
"type" : "string"
} ,
"state" : {
"type" : "string"
} ,
"city" : {
"type" : "string"
} ,
"postalCode" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
"additionalProperties" : false
} ,
"credentialsId" : {
"type" : "string"
} ,
"currency" : {
"type" : "string"
} ,
"amount" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"provider" ,
"labels" ,
"currency"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
} ,
{
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"rating input"
]
} ,
"options" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2023-03-14 16:42:12 +01:00
"variableId" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
} ,
2023-03-14 16:42:12 +01:00
"buttonType" : {
"anyOf" : [
{
"type" : "string" ,
"enum" : [
"Icons"
]
} ,
{
"type" : "string" ,
"enum" : [
"Numbers"
]
}
]
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"length" : {
"type" : "number"
} ,
"labels" : {
"type" : "object" ,
"properties" : {
"left" : {
"type" : "string"
} ,
"right" : {
"type" : "string"
} ,
"button" : {
"type" : "string"
}
} ,
"required" : [
"button"
] ,
"additionalProperties" : false
} ,
"customIcon" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"svg" : {
"type" : "string"
}
} ,
"required" : [
"isEnabled"
] ,
"additionalProperties" : false
} ,
"isOneClickSubmitEnabled" : {
"type" : "boolean"
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2023-03-14 16:42:12 +01:00
"buttonType" ,
"length" ,
"labels" ,
"customIcon"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
2023-03-14 16:42:12 +01:00
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"file input"
]
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"options" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2023-03-14 16:42:12 +01:00
"variableId" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"isRequired" : {
"type" : "boolean"
} ,
"isMultipleAllowed" : {
"type" : "boolean"
} ,
"labels" : {
"type" : "object" ,
"properties" : {
"placeholder" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"button" : {
"type" : "string"
} ,
"clear" : {
"type" : "string"
} ,
"skip" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"placeholder" ,
"button"
] ,
"additionalProperties" : false
} ,
"sizeLimit" : {
"type" : "number"
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2023-03-14 16:42:12 +01:00
"isMultipleAllowed" ,
"labels"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"options"
] ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
} ,
{
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"groupId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "string" ,
"enum" : [
"picture choice input"
]
} ,
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"blockId" : {
"type" : "string"
} ,
"outgoingEdgeId" : {
"type" : "string"
} ,
"type" : {
"type" : "number" ,
"enum" : [
3
]
} ,
"pictureSrc" : {
"type" : "string"
} ,
"title" : {
"type" : "string"
} ,
"description" : {
"type" : "string"
2023-06-06 13:25:13 +02:00
} ,
"displayCondition" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"condition" : {
"type" : "object" ,
"properties" : {
"logicalOperator" : {
"type" : "string" ,
"enum" : [
"OR" ,
"AND"
]
} ,
"comparisons" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"variableId" : {
"type" : "string"
} ,
"comparisonOperator" : {
"type" : "string" ,
"enum" : [
"Equal to" ,
"Not equal" ,
"Contains" ,
"Does not contain" ,
"Greater than" ,
"Less than" ,
"Is set" ,
"Is empty" ,
"Starts with" ,
"Ends with"
]
} ,
"value" : {
"type" : "string"
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"logicalOperator" ,
"comparisons"
] ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
2023-05-04 09:20:30 -04:00
}
} ,
"required" : [
"id" ,
"blockId" ,
"type"
] ,
"additionalProperties" : false
}
} ,
"options" : {
"type" : "object" ,
"properties" : {
"variableId" : {
"type" : "string"
} ,
"isMultipleChoice" : {
"type" : "boolean"
} ,
"isSearchable" : {
"type" : "boolean"
} ,
"buttonLabel" : {
"type" : "string"
} ,
"searchInputPlaceholder" : {
"type" : "string"
} ,
"dynamicItems" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"titlesVariableId" : {
"type" : "string"
} ,
"descriptionsVariableId" : {
"type" : "string"
} ,
"pictureSrcsVariableId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"buttonLabel" ,
"searchInputPlaceholder"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"id" ,
"groupId" ,
"type" ,
"items" ,
"options"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
]
} ,
2022-12-22 17:02:34 +01:00
{
"type" : "object" ,
"properties" : {
"prefilledValue" : {
"type" : "string"
} ,
"runtimeOptions" : {
"type" : "object" ,
"properties" : {
"paymentIntentSecret" : {
"type" : "string"
} ,
"amountLabel" : {
"type" : "string"
} ,
"publicKey" : {
"type" : "string"
}
} ,
"required" : [
"paymentIntentSecret" ,
"amountLabel" ,
"publicKey"
] ,
"additionalProperties" : false
}
2023-05-25 17:24:39 +02:00
}
2022-12-22 17:02:34 +01:00
}
]
} ,
2023-01-26 18:23:09 +01:00
"clientSideActions" : {
"type" : "array" ,
"items" : {
2023-01-27 10:54:59 +01:00
"allOf" : [
{
"type" : "object" ,
"properties" : {
"lastBubbleBlockId" : {
"type" : "string"
}
2023-05-25 17:24:39 +02:00
}
2023-01-27 10:54:59 +01:00
} ,
2023-01-26 18:23:09 +01:00
{
"anyOf" : [
{
"anyOf" : [
{
2022-12-22 17:02:34 +01:00
"anyOf" : [
{
2023-01-27 10:54:59 +01:00
"anyOf" : [
{
2023-04-17 14:47:30 +02:00
"anyOf" : [
{
2023-05-25 17:24:39 +02:00
"anyOf" : [
{
2023-05-31 07:53:30 +02:00
"anyOf" : [
{
2023-06-28 10:29:58 +02:00
"anyOf" : [
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"scriptToExecute" : {
"type" : "object" ,
"properties" : {
"content" : {
"type" : "string"
} ,
"args" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"value" : {
"anyOf" : [
{
"anyOf" : [
{
"anyOf" : [
{
"type" : "string"
} ,
{
"type" : "number"
}
]
} ,
{
"type" : "boolean"
}
]
} ,
{
"type" : "array" ,
"items" : {
"type" : "string" ,
"nullable" : true
}
}
] ,
"nullable" : true
}
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"content" ,
"args"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"scriptToExecute"
] ,
"additionalProperties" : false
2023-05-31 07:53:30 +02:00
} ,
2023-06-28 10:29:58 +02:00
{
"type" : "object" ,
"properties" : {
"redirect" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
} ,
"isNewTab" : {
"type" : "boolean"
}
2023-05-31 07:53:30 +02:00
} ,
2023-06-28 10:29:58 +02:00
"required" : [
"isNewTab"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"redirect"
] ,
"additionalProperties" : false
}
]
} ,
{
"type" : "object" ,
"properties" : {
"chatwoot" : {
"type" : "object" ,
"properties" : {
"scriptToExecute" : {
"type" : "object" ,
"properties" : {
"content" : {
"type" : "string"
} ,
"args" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"value" : {
2023-05-31 07:53:30 +02:00
"anyOf" : [
{
2023-06-28 10:29:58 +02:00
"anyOf" : [
{
"anyOf" : [
{
"type" : "string"
} ,
{
"type" : "number"
}
]
} ,
{
"type" : "boolean"
}
]
2023-05-31 07:53:30 +02:00
} ,
{
2023-06-28 10:29:58 +02:00
"type" : "array" ,
"items" : {
"type" : "string" ,
"nullable" : true
}
2023-05-31 07:53:30 +02:00
}
2023-06-28 10:29:58 +02:00
] ,
"nullable" : true
2023-05-25 17:24:39 +02:00
}
2023-06-28 10:29:58 +02:00
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
2023-04-17 14:47:30 +02:00
}
2023-06-28 10:29:58 +02:00
}
} ,
"required" : [
"content" ,
"args"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"scriptToExecute"
] ,
"additionalProperties" : false
2023-05-31 07:53:30 +02:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"chatwoot"
2023-05-31 07:53:30 +02:00
] ,
"additionalProperties" : false
2023-05-25 17:24:39 +02:00
}
2023-06-28 10:29:58 +02:00
]
2023-05-31 07:53:30 +02:00
} ,
{
2023-05-25 17:24:39 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"googleAnalytics" : {
2023-05-31 07:53:30 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"trackingId" : {
"type" : "string"
} ,
"category" : {
"type" : "string"
} ,
"action" : {
"type" : "string"
} ,
"label" : {
2023-05-31 07:53:30 +02:00
"type" : "string"
} ,
2023-06-28 10:29:58 +02:00
"value" : {
"anyOf" : [
{
"type" : "number"
} ,
{ }
]
} ,
"sendTo" : {
"type" : "string"
2023-05-31 07:53:30 +02:00
}
} ,
"additionalProperties" : false
2023-05-25 17:24:39 +02:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"googleAnalytics"
2023-05-25 17:24:39 +02:00
] ,
"additionalProperties" : false
2023-04-17 14:47:30 +02:00
}
2023-05-31 07:53:30 +02:00
]
} ,
{
2023-04-17 14:47:30 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"wait" : {
2023-05-25 17:24:39 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"secondsToWaitFor" : {
"type" : "number"
}
} ,
"required" : [
"secondsToWaitFor"
] ,
"additionalProperties" : false
}
} ,
"required" : [
"wait"
] ,
"additionalProperties" : false
}
]
} ,
{
"type" : "object" ,
"properties" : {
"setVariable" : {
"type" : "object" ,
"properties" : {
"scriptToExecute" : {
"type" : "object" ,
"properties" : {
"content" : {
"type" : "string"
} ,
"args" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"value" : {
"anyOf" : [
{
2023-04-17 14:47:30 +02:00
"anyOf" : [
{
2023-05-25 17:24:39 +02:00
"anyOf" : [
{
2023-06-28 10:29:58 +02:00
"type" : "string"
2023-05-25 17:24:39 +02:00
} ,
{
2023-06-28 10:29:58 +02:00
"type" : "number"
2023-05-25 17:24:39 +02:00
}
]
2023-04-17 14:47:30 +02:00
} ,
{
2023-06-28 10:29:58 +02:00
"type" : "boolean"
2023-04-17 14:47:30 +02:00
}
2023-06-28 10:29:58 +02:00
]
} ,
{
"type" : "array" ,
"items" : {
"type" : "string" ,
"nullable" : true
}
2023-02-23 14:44:37 +01:00
}
2023-05-25 17:24:39 +02:00
] ,
2023-06-28 10:29:58 +02:00
"nullable" : true
2023-01-26 18:23:09 +01:00
}
2023-06-28 10:29:58 +02:00
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
2023-05-25 17:24:39 +02:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"content" ,
"args"
2023-05-25 17:24:39 +02:00
] ,
"additionalProperties" : false
2023-04-17 14:47:30 +02:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"scriptToExecute"
2023-04-17 14:47:30 +02:00
] ,
"additionalProperties" : false
2023-01-27 10:54:59 +01:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"setVariable"
2023-01-27 10:54:59 +01:00
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
2023-05-25 17:24:39 +02:00
]
} ,
{
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"streamOpenAiChatCompletion" : {
2023-05-25 17:24:39 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"messages" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"content" : {
"type" : "string"
} ,
"role" : {
"type" : "string" ,
"enum" : [
"system" ,
"user" ,
"assistant"
]
}
} ,
"additionalProperties" : false
}
2023-05-25 17:24:39 +02:00
}
} ,
2023-05-31 07:53:30 +02:00
"required" : [
2023-06-28 10:29:58 +02:00
"messages"
2023-05-31 07:53:30 +02:00
] ,
2023-05-25 17:24:39 +02:00
"additionalProperties" : false
}
2023-01-26 18:23:09 +01:00
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"streamOpenAiChatCompletion"
2023-01-26 18:23:09 +01:00
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
2023-04-17 14:47:30 +02:00
]
} ,
{
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"webhookToExecute" : {
2023-05-25 17:24:39 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"url" : {
"type" : "string"
} ,
"headers" : {
2023-05-31 07:53:30 +02:00
"type" : "object" ,
2023-06-28 10:29:58 +02:00
"additionalProperties" : {
"type" : "string"
}
} ,
"body" : { } ,
"method" : {
"type" : "string" ,
"enum" : [
"POST" ,
"GET" ,
"PUT" ,
"DELETE" ,
"PATCH" ,
"HEAD" ,
"CONNECT" ,
"OPTIONS" ,
"TRACE"
]
2023-05-25 17:24:39 +02:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"url"
2023-05-25 17:24:39 +02:00
] ,
"additionalProperties" : false
2023-04-17 14:47:30 +02:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"webhookToExecute"
2023-05-31 07:53:30 +02:00
] ,
"additionalProperties" : false
}
]
} ,
{
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"startPropsToInject" : {
2023-05-31 07:53:30 +02:00
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"googleAnalyticsId" : {
"type" : "string"
} ,
"pixelId" : {
"type" : "string"
} ,
"gtmId" : {
"type" : "string"
} ,
"customHeadCode" : {
"type" : "string"
2023-05-31 07:53:30 +02:00
}
} ,
2023-04-17 14:47:30 +02:00
"additionalProperties" : false
2023-01-26 18:23:09 +01:00
}
} ,
2023-01-27 10:54:59 +01:00
"required" : [
2023-06-28 10:29:58 +02:00
"startPropsToInject"
2023-05-25 17:24:39 +02:00
] ,
"additionalProperties" : false
}
]
} ,
{
"type" : "object" ,
"properties" : {
2023-06-28 10:29:58 +02:00
"pixel" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"pixelId" : {
"type" : "string"
} ,
"isInitSkip" : {
"type" : "boolean"
} ,
"params" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"key" : {
"type" : "string"
} ,
"value" : { }
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"eventType" : {
"not" : { }
}
} ,
"additionalProperties" : false
2023-05-31 07:53:30 +02:00
} ,
2023-06-28 10:29:58 +02:00
{
2023-05-31 07:53:30 +02:00
"type" : "object" ,
2023-06-28 10:29:58 +02:00
"properties" : {
"pixelId" : {
"type" : "string"
} ,
"isInitSkip" : {
"type" : "boolean"
} ,
"params" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"key" : {
"type" : "string"
} ,
"value" : { }
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"eventType" : {
"type" : "string" ,
"enum" : [
"Lead" ,
"Contact" ,
"CompleteRegistration" ,
"Schedule" ,
"SubmitApplication" ,
"ViewContent" ,
"AddPaymentInfo" ,
"AddToCart" ,
"AddToWishlist" ,
"CustomizeProduct" ,
"Donate" ,
"FindLocation" ,
"InitiateCheckout" ,
"Purchase" ,
"Search" ,
"StartTrial" ,
"Subscribe"
]
}
} ,
"required" : [
"eventType"
] ,
"additionalProperties" : false
2023-05-31 07:53:30 +02:00
} ,
2023-06-28 10:29:58 +02:00
{
"type" : "object" ,
"properties" : {
"pixelId" : {
"type" : "string"
} ,
"isInitSkip" : {
"type" : "boolean"
} ,
"params" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : {
"type" : "string"
} ,
"key" : {
"type" : "string"
} ,
"value" : { }
} ,
"required" : [
"id"
] ,
"additionalProperties" : false
}
} ,
"eventType" : {
"type" : "string" ,
"enum" : [
"Custom"
]
} ,
"name" : {
"type" : "string"
}
} ,
"required" : [
"eventType"
] ,
"additionalProperties" : false
2023-05-25 17:24:39 +02:00
}
2023-06-28 10:29:58 +02:00
]
2023-01-26 18:23:09 +01:00
}
} ,
"required" : [
2023-06-28 10:29:58 +02:00
"pixel"
2023-01-26 18:23:09 +01:00
] ,
"additionalProperties" : false
}
]
}
]
}
2022-12-22 17:02:34 +01:00
} ,
"sessionId" : {
"type" : "string"
} ,
"typebot" : {
"type" : "object" ,
"properties" : {
2023-01-16 12:13:21 +01:00
"id" : {
"type" : "string"
} ,
2022-12-22 17:02:34 +01:00
"theme" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2022-12-22 17:02:34 +01:00
"general" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2022-12-22 17:02:34 +01:00
"font" : {
"type" : "string"
} ,
"background" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2022-12-22 17:02:34 +01:00
"type" : {
"type" : "string" ,
"enum" : [
"Color" ,
"Image" ,
"None"
]
} ,
2022-11-29 10:02:40 +01:00
"content" : {
"type" : "string"
}
} ,
"required" : [
2022-12-22 17:02:34 +01:00
"type"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
}
} ,
"required" : [
2022-12-22 17:02:34 +01:00
"font" ,
"background"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
} ,
2022-12-22 17:02:34 +01:00
"chat" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2022-12-22 17:02:34 +01:00
"hostAvatar" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"url" : {
"type" : "string"
}
} ,
"required" : [
"isEnabled"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
} ,
2022-12-22 17:02:34 +01:00
"guestAvatar" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"url" : {
"type" : "string"
}
} ,
"required" : [
"isEnabled"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
} ,
2022-12-22 17:02:34 +01:00
"hostBubbles" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2022-12-22 17:02:34 +01:00
"backgroundColor" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2022-12-22 17:02:34 +01:00
"color" : {
"type" : "string"
}
} ,
"required" : [
"backgroundColor" ,
"color"
] ,
"additionalProperties" : false
} ,
"guestBubbles" : {
"type" : "object" ,
"properties" : {
"backgroundColor" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2022-12-22 17:02:34 +01:00
"color" : {
2022-11-29 10:02:40 +01:00
"type" : "string"
}
} ,
"required" : [
2022-12-22 17:02:34 +01:00
"backgroundColor" ,
"color"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
} ,
2022-12-22 17:02:34 +01:00
"buttons" : {
2022-11-29 10:02:40 +01:00
"type" : "object" ,
"properties" : {
2022-12-22 17:02:34 +01:00
"backgroundColor" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2022-12-22 17:02:34 +01:00
"color" : {
"type" : "string"
}
} ,
"required" : [
"backgroundColor" ,
"color"
] ,
"additionalProperties" : false
} ,
"inputs" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
"backgroundColor" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
} ,
2023-03-14 16:42:12 +01:00
"color" : {
"type" : "string"
} ,
"placeholderColor" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2023-03-14 16:42:12 +01:00
} ,
"required" : [
"backgroundColor" ,
"color" ,
"placeholderColor"
] ,
"additionalProperties" : false
2023-03-28 15:10:06 +02:00
} ,
"roundness" : {
"type" : "string" ,
"enum" : [
"none" ,
"medium" ,
"large"
]
2022-11-29 10:02:40 +01:00
}
} ,
"required" : [
2022-12-22 17:02:34 +01:00
"hostBubbles" ,
"guestBubbles" ,
"buttons" ,
"inputs"
2022-11-29 10:02:40 +01:00
] ,
"additionalProperties" : false
2022-12-22 17:02:34 +01:00
} ,
"customCss" : {
"type" : "string"
2022-11-29 10:02:40 +01:00
}
2022-12-22 17:02:34 +01:00
} ,
"required" : [
"general" ,
"chat"
2022-11-29 10:02:40 +01:00
] ,
2022-12-22 17:02:34 +01:00
"additionalProperties" : false
} ,
"settings" : {
"type" : "object" ,
"properties" : {
"general" : {
"type" : "object" ,
"properties" : {
"isBrandingEnabled" : {
"type" : "boolean"
} ,
"isTypingEmulationEnabled" : {
"type" : "boolean"
} ,
"isInputPrefillEnabled" : {
"type" : "boolean"
} ,
"isHideQueryParamsEnabled" : {
"type" : "boolean"
} ,
"isNewResultOnRefreshEnabled" : {
"type" : "boolean"
2023-05-25 17:24:39 +02:00
} ,
"rememberUser" : {
"type" : "object" ,
"properties" : {
"isEnabled" : {
"type" : "boolean"
} ,
"storage" : {
"type" : "string" ,
"enum" : [
"session" ,
"local"
]
}
} ,
"additionalProperties" : false
2022-12-22 17:02:34 +01:00
}
} ,
"required" : [
"isBrandingEnabled"
] ,
"additionalProperties" : false
} ,
"typingEmulation" : {
"type" : "object" ,
"properties" : {
"enabled" : {
"type" : "boolean"
} ,
"speed" : {
"type" : "number"
} ,
"maxDelay" : {
"type" : "number"
}
} ,
"required" : [
"enabled" ,
"speed" ,
"maxDelay"
] ,
"additionalProperties" : false
} ,
"metadata" : {
"type" : "object" ,
"properties" : {
"title" : {
"type" : "string"
} ,
"description" : {
"type" : "string"
} ,
"imageUrl" : {
"type" : "string"
} ,
"favIconUrl" : {
"type" : "string"
} ,
"customHeadCode" : {
"type" : "string"
} ,
"googleTagManagerId" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
} ,
"required" : [
"general" ,
"typingEmulation" ,
"metadata"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
} ,
2022-12-22 17:02:34 +01:00
"required" : [
2023-01-16 12:13:21 +01:00
"id" ,
2022-12-22 17:02:34 +01:00
"theme" ,
"settings"
] ,
2022-11-29 10:02:40 +01:00
"additionalProperties" : false
2022-12-22 17:02:34 +01:00
} ,
"resultId" : {
"type" : "string"
2023-01-16 12:13:21 +01:00
} ,
"dynamicTheme" : {
"type" : "object" ,
"properties" : {
"hostAvatarUrl" : {
"type" : "string"
} ,
"guestAvatarUrl" : {
"type" : "string"
}
} ,
"additionalProperties" : false
2023-01-25 11:27:47 +01:00
} ,
"logs" : {
"type" : "array" ,
"items" : {
2023-03-14 16:42:12 +01:00
"type" : "object" ,
"properties" : {
"status" : {
"type" : "string"
2023-01-25 11:27:47 +01:00
} ,
2023-03-14 16:42:12 +01:00
"description" : {
"type" : "string"
} ,
"details" : { }
} ,
"required" : [
"status" ,
"description"
] ,
"additionalProperties" : false
2023-01-25 11:27:47 +01:00
}
2022-11-29 10:02:40 +01:00
}
2022-12-22 17:02:34 +01:00
} ,
"required" : [
"messages"
] ,
"additionalProperties" : false
2022-11-29 10:02:40 +01:00
}
}
}
} ,
"default" : {
"$ref" : "#/components/responses/error"
}
}
}
2023-03-21 13:58:05 +01:00
} ,
"/typebots/{typebotId}/blocks/{blockId}/storage/upload-url" : {
"get" : {
2023-05-25 17:24:39 +02:00
"operationId" : "getUploadUrl" ,
2023-03-21 13:58:05 +01:00
"summary" : "Get upload URL for a file" ,
"description" : "Used for the web client to get the bucket upload file." ,
"parameters" : [
{
"name" : "typebotId" ,
"in" : "path" ,
"required" : true ,
"schema" : {
"type" : "string"
}
} ,
{
"name" : "blockId" ,
"in" : "path" ,
"required" : true ,
"schema" : {
"type" : "string"
}
} ,
{
"name" : "filePath" ,
"in" : "query" ,
"required" : true ,
"schema" : {
"type" : "string"
}
} ,
{
"name" : "fileType" ,
"in" : "query" ,
"required" : true ,
"schema" : {
"type" : "string"
}
}
] ,
"responses" : {
"200" : {
"description" : "Successful response" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"properties" : {
"presignedUrl" : {
"type" : "object" ,
"properties" : {
"url" : {
"type" : "string"
} ,
"fields" : { }
} ,
"required" : [
"url"
] ,
"additionalProperties" : false
} ,
"hasReachedStorageLimit" : {
"type" : "boolean"
}
} ,
"required" : [
"presignedUrl" ,
"hasReachedStorageLimit"
] ,
"additionalProperties" : false
}
}
}
} ,
"default" : {
"$ref" : "#/components/responses/error"
}
}
}
2022-11-29 10:02:40 +01:00
}
} ,
"components" : {
"securitySchemes" : {
"Authorization" : {
"type" : "http" ,
"scheme" : "bearer"
}
} ,
"responses" : {
"error" : {
"description" : "Error response" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"properties" : {
"message" : {
"type" : "string"
} ,
"code" : {
"type" : "string"
} ,
"issues" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"message" : {
"type" : "string"
}
} ,
"required" : [
"message"
] ,
"additionalProperties" : false
}
}
} ,
"required" : [
"message" ,
"code"
] ,
"additionalProperties" : false
}
}
}
}
}
} ,
"externalDocs" : {
"url" : "https://docs.typebot.io/api"
}
}