6449 lines
282 KiB
JSON
6449 lines
282 KiB
JSON
{
|
|
"openapi": "3.0.3",
|
|
"info": {
|
|
"title": "Builder API",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "https://app.typebot.io/api/v1"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/t/process": {
|
|
"post": {
|
|
"operationId": "query.processTelemetryEvent",
|
|
"description": "Only used for the cloud version of Typebot. It's the way it processes telemetry events and inject it to thrid-party services.",
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"events": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Workspace created"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"plan"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"workspaceId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"User created"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"email"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"typebotId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Typebot created"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"workspaceId",
|
|
"typebotId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"typebotId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Typebot published"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"isFirstPublish": {
|
|
"type": "boolean",
|
|
"enum": [
|
|
true
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"workspaceId",
|
|
"typebotId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Subscription updated"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
},
|
|
"additionalChatsIndex": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorageIndex": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan",
|
|
"additionalChatsIndex",
|
|
"additionalStorageIndex"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"workspaceId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"typebotId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"New results collected"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"total": {
|
|
"type": "number"
|
|
},
|
|
"isFirstOfKind": {
|
|
"type": "boolean",
|
|
"enum": [
|
|
true
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"total"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"workspaceId",
|
|
"typebotId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"userId": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Workspace limit reached"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"chatsLimit": {
|
|
"type": "number"
|
|
},
|
|
"storageLimit": {
|
|
"type": "number"
|
|
},
|
|
"totalChatsUsed": {
|
|
"type": "number"
|
|
},
|
|
"totalStorageUsed": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"chatsLimit",
|
|
"storageLimit",
|
|
"totalChatsUsed",
|
|
"totalStorageUsed"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"userId",
|
|
"workspaceId",
|
|
"name",
|
|
"data"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"events"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Events injected"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"message"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/linkedTypebots": {
|
|
"get": {
|
|
"operationId": "query.getLinkedTypebots",
|
|
"summary": "Get linked typebots",
|
|
"tags": [
|
|
"Typebot"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "typebotIds",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Comma separated list of typebot ids"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"typebots": {
|
|
"type": "array",
|
|
"items": {
|
|
"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": [
|
|
{
|
|
"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
|
|
},
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"groupId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"text"
|
|
]
|
|
},
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"html": {
|
|
"type": "string"
|
|
},
|
|
"richText": {
|
|
"type": "array"
|
|
},
|
|
"plainText": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"richText"
|
|
],
|
|
"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": [
|
|
"image"
|
|
]
|
|
},
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"clickLink": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"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": [
|
|
"video"
|
|
]
|
|
},
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"url",
|
|
"youtube",
|
|
"vimeo"
|
|
]
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"height": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"height"
|
|
],
|
|
"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": [
|
|
"audio"
|
|
]
|
|
},
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"groupId",
|
|
"type",
|
|
"content"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"blockId",
|
|
"type"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"isMultipleChoice": {
|
|
"type": "boolean"
|
|
},
|
|
"buttonLabel": {
|
|
"type": "string"
|
|
},
|
|
"dynamicVariableId": {
|
|
"type": "string"
|
|
},
|
|
"isSearchable": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"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": [
|
|
"number input"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"type": "object",
|
|
"properties": {
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"button": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"placeholder",
|
|
"button"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"min": {
|
|
"type": "number"
|
|
},
|
|
"max": {
|
|
"type": "number"
|
|
},
|
|
"step": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"type": "object",
|
|
"properties": {
|
|
"button": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"button",
|
|
"from",
|
|
"to"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"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": {
|
|
"type": "object",
|
|
"properties": {
|
|
"button": {
|
|
"type": "string"
|
|
},
|
|
"success": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"button"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"additionalInformation": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"phoneNumber": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"credentialsId": {
|
|
"type": "string"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"amount": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"provider",
|
|
"labels",
|
|
"currency"
|
|
],
|
|
"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": [
|
|
"rating input"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"buttonType": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"Icons"
|
|
]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"Numbers"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"required": [
|
|
"buttonType",
|
|
"length",
|
|
"labels",
|
|
"customIcon"
|
|
],
|
|
"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": [
|
|
"file input"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"isRequired": {
|
|
"type": "boolean"
|
|
},
|
|
"isMultipleAllowed": {
|
|
"type": "boolean"
|
|
},
|
|
"labels": {
|
|
"type": "object",
|
|
"properties": {
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"button": {
|
|
"type": "string"
|
|
},
|
|
"clear": {
|
|
"type": "string"
|
|
},
|
|
"skip": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"placeholder",
|
|
"button"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"sizeLimit": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"isMultipleAllowed",
|
|
"labels"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"groupId",
|
|
"type",
|
|
"options"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"groupId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Code"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"shouldExecuteInParentContext": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"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": [
|
|
"Condition"
|
|
]
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"blockId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "number",
|
|
"enum": [
|
|
1
|
|
]
|
|
},
|
|
"content": {
|
|
"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
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"blockId",
|
|
"type",
|
|
"content"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"groupId",
|
|
"type",
|
|
"items"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"groupId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Redirect"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"isNewTab": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"isNewTab"
|
|
],
|
|
"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": [
|
|
"Set variable"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"expressionToEvaluate": {
|
|
"type": "string"
|
|
},
|
|
"isCode": {
|
|
"type": "boolean"
|
|
},
|
|
"isExecutedOnClient": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"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": [
|
|
"Typebot link"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"typebotId": {
|
|
"type": "string"
|
|
},
|
|
"groupId": {
|
|
"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": [
|
|
"Wait"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"secondsToWaitFor": {
|
|
"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": [
|
|
"Jump"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"groupId": {
|
|
"type": "string"
|
|
},
|
|
"blockId": {
|
|
"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": [
|
|
"AB test"
|
|
]
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"minItems": 2,
|
|
"maxItems": 2,
|
|
"items": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"blockId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "number",
|
|
"enum": [
|
|
2
|
|
]
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"enum": [
|
|
"a"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"blockId",
|
|
"type",
|
|
"path"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"blockId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "number",
|
|
"enum": [
|
|
2
|
|
]
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"enum": [
|
|
"b"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"blockId",
|
|
"type",
|
|
"path"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"aPercent": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
}
|
|
},
|
|
"required": [
|
|
"aPercent"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"groupId",
|
|
"type",
|
|
"items",
|
|
"options"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"groupId": {
|
|
"type": "string"
|
|
},
|
|
"outgoingEdgeId": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Chatwoot"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"task": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Show widget",
|
|
"Close widget"
|
|
]
|
|
},
|
|
"baseUrl": {
|
|
"type": "string"
|
|
},
|
|
"websiteToken": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatarUrl": {
|
|
"type": "string"
|
|
},
|
|
"phoneNumber": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"baseUrl",
|
|
"websiteToken"
|
|
],
|
|
"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 Analytics"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"trackingId": {
|
|
"type": "string"
|
|
},
|
|
"category": {
|
|
"type": "string"
|
|
},
|
|
"action": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"anyOf": [
|
|
{
|
|
"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"
|
|
},
|
|
"sheetId": {
|
|
"type": "string"
|
|
},
|
|
"spreadsheetId": {
|
|
"type": "string"
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Get data from sheet"
|
|
]
|
|
},
|
|
"referenceCell": {
|
|
"type": "object",
|
|
"properties": {
|
|
"column": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"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"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"cellsToExtract": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"column": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"variableId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"action",
|
|
"cellsToExtract"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"credentialsId": {
|
|
"type": "string"
|
|
},
|
|
"sheetId": {
|
|
"type": "string"
|
|
},
|
|
"spreadsheetId": {
|
|
"type": "string"
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Insert a row"
|
|
]
|
|
},
|
|
"cellsToInsert": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"column": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"action",
|
|
"cellsToInsert"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"credentialsId": {
|
|
"type": "string"
|
|
},
|
|
"sheetId": {
|
|
"type": "string"
|
|
},
|
|
"spreadsheetId": {
|
|
"type": "string"
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Update a row"
|
|
]
|
|
},
|
|
"cellsToUpsert": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"column": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"referenceCell": {
|
|
"type": "object",
|
|
"properties": {
|
|
"column": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"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"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"isAdvancedConfig": {
|
|
"type": "boolean"
|
|
},
|
|
"isCustomBody": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"variablesForTest",
|
|
"responseVariableMapping"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"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
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"task": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Create chat completion"
|
|
]
|
|
},
|
|
"model": {
|
|
"type": "string",
|
|
"enum": [
|
|
"gpt-4",
|
|
"gpt-4-0314",
|
|
"gpt-4-32k",
|
|
"gpt-4-32k-0314",
|
|
"gpt-3.5-turbo",
|
|
"gpt-3.5-turbo-0301"
|
|
]
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"role": {
|
|
"type": "string",
|
|
"enum": [
|
|
"system",
|
|
"user",
|
|
"assistant"
|
|
]
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"role": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Messages sequence ✨"
|
|
]
|
|
},
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"assistantMessagesVariableId": {
|
|
"type": "string"
|
|
},
|
|
"userMessagesVariableId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"role"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"advancedSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"temperature": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"responseMapping": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"valueToExtract": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Message content",
|
|
"Total tokens"
|
|
]
|
|
},
|
|
"variableId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"valueToExtract"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"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": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"valueToExtract": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Image URL"
|
|
]
|
|
},
|
|
"variableId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"valueToExtract"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"credentialsId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"task",
|
|
"advancedOptions",
|
|
"responseMapping"
|
|
],
|
|
"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": [
|
|
"Pabbly"
|
|
]
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"isAdvancedConfig": {
|
|
"type": "boolean"
|
|
},
|
|
"isCustomBody": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"variablesForTest",
|
|
"responseVariableMapping"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"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": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credentialsId": {
|
|
"type": "string"
|
|
},
|
|
"isCustomBody": {
|
|
"type": "boolean"
|
|
},
|
|
"isBodyCode": {
|
|
"type": "boolean"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"subject": {
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"replyTo": {
|
|
"type": "string"
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"responseVariableMapping": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"variableId": {
|
|
"type": "string"
|
|
},
|
|
"bodyPath": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"isAdvancedConfig": {
|
|
"type": "boolean"
|
|
},
|
|
"isCustomBody": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"variablesForTest",
|
|
"responseVariableMapping"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"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": {
|
|
"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"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"isAdvancedConfig": {
|
|
"type": "boolean"
|
|
},
|
|
"isCustomBody": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"variablesForTest",
|
|
"responseVariableMapping"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"webhookId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"groupId",
|
|
"type",
|
|
"options",
|
|
"webhookId"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"title",
|
|
"graphCoordinates",
|
|
"blocks"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"variables": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
],
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"groups",
|
|
"variables",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"typebots"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/workspaces": {
|
|
"get": {
|
|
"operationId": "query.workspace.listWorkspaces",
|
|
"summary": "List workspaces",
|
|
"tags": [
|
|
"Workspace"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspaces": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"icon",
|
|
"plan"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"workspaces"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"operationId": "mutation.workspace.createWorkspace",
|
|
"summary": "Create workspace",
|
|
"tags": [
|
|
"Workspace"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspace": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
},
|
|
"stripeId": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"additionalChatsIndex": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorageIndex": {
|
|
"type": "number"
|
|
},
|
|
"chatsLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"chatsLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"customChatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customStorageLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customSeatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"isQuarantined": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"createdAt",
|
|
"updatedAt",
|
|
"name",
|
|
"icon",
|
|
"plan",
|
|
"stripeId",
|
|
"additionalChatsIndex",
|
|
"additionalStorageIndex",
|
|
"chatsLimitFirstEmailSentAt",
|
|
"chatsLimitSecondEmailSentAt",
|
|
"storageLimitFirstEmailSentAt",
|
|
"storageLimitSecondEmailSentAt",
|
|
"customChatsLimit",
|
|
"customStorageLimit",
|
|
"customSeatsLimit",
|
|
"isQuarantined"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"workspace"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/workspaces/{workspaceId}": {
|
|
"get": {
|
|
"operationId": "query.workspace.getWorkspace",
|
|
"summary": "Get workspace",
|
|
"tags": [
|
|
"Workspace"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspace": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
},
|
|
"stripeId": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"additionalChatsIndex": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorageIndex": {
|
|
"type": "number"
|
|
},
|
|
"chatsLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"chatsLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"customChatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customStorageLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customSeatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"isQuarantined": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"createdAt",
|
|
"updatedAt",
|
|
"name",
|
|
"icon",
|
|
"plan",
|
|
"stripeId",
|
|
"additionalChatsIndex",
|
|
"additionalStorageIndex",
|
|
"chatsLimitFirstEmailSentAt",
|
|
"chatsLimitSecondEmailSentAt",
|
|
"storageLimitFirstEmailSentAt",
|
|
"storageLimitSecondEmailSentAt",
|
|
"customChatsLimit",
|
|
"customStorageLimit",
|
|
"customSeatsLimit",
|
|
"isQuarantined"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"workspace"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"patch": {
|
|
"operationId": "mutation.workspace.updateWorkspace",
|
|
"summary": "Update workspace",
|
|
"tags": [
|
|
"Workspace"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspace": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
},
|
|
"stripeId": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"additionalChatsIndex": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorageIndex": {
|
|
"type": "number"
|
|
},
|
|
"chatsLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"chatsLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"customChatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customStorageLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customSeatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"isQuarantined": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"createdAt",
|
|
"updatedAt",
|
|
"name",
|
|
"icon",
|
|
"plan",
|
|
"stripeId",
|
|
"additionalChatsIndex",
|
|
"additionalStorageIndex",
|
|
"chatsLimitFirstEmailSentAt",
|
|
"chatsLimitSecondEmailSentAt",
|
|
"storageLimitFirstEmailSentAt",
|
|
"storageLimitSecondEmailSentAt",
|
|
"customChatsLimit",
|
|
"customStorageLimit",
|
|
"customSeatsLimit",
|
|
"isQuarantined"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"workspace"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"operationId": "mutation.workspace.deleteWorkspace",
|
|
"summary": "Delete workspace",
|
|
"tags": [
|
|
"Workspace"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"message"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/workspaces/{workspaceId}/members": {
|
|
"get": {
|
|
"operationId": "query.workspace.listMembersInWorkspace",
|
|
"summary": "List members in workspace",
|
|
"tags": [
|
|
"Workspace"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"image": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"email",
|
|
"image"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"role": {
|
|
"type": "string",
|
|
"enum": [
|
|
"ADMIN",
|
|
"MEMBER",
|
|
"GUEST"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"workspaceId",
|
|
"user",
|
|
"role"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"members"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots": {
|
|
"get": {
|
|
"operationId": "query.typebot.listTypebots",
|
|
"summary": "List typebots",
|
|
"tags": [
|
|
"Typebot"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "folderId",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"typebots": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"publishedTypebotId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"typebots"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots/{typebotId}/webhookBlocks": {
|
|
"get": {
|
|
"operationId": "query.webhook.listWebhookBlocks",
|
|
"summary": "List webhook blocks",
|
|
"description": "Returns a list of all the webhook blocks that you can subscribe to.",
|
|
"tags": [
|
|
"Webhook"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"webhookBlocks": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"label"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"webhookBlocks"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots/{typebotId}/webhookBlocks/{blockId}/getResultExample": {
|
|
"get": {
|
|
"operationId": "query.webhook.getResultExample",
|
|
"summary": "Get result example",
|
|
"description": "Returns \"fake\" result for webhook block to help you anticipate how the webhook will behave.",
|
|
"tags": [
|
|
"Webhook"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "blockId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"resultExample": {
|
|
"allOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string",
|
|
"enum": [
|
|
"This is a sample result, it has been generated ⬇️"
|
|
]
|
|
},
|
|
"Submitted at": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"message",
|
|
"Submitted at"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"not": {}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"description": "Can contain any fields."
|
|
}
|
|
},
|
|
"required": [
|
|
"resultExample"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots/{typebotId}/webhookBlocks/{blockId}/subscribe": {
|
|
"post": {
|
|
"operationId": "query.webhook.subscribeWebhook",
|
|
"summary": "Subscribe to webhook block",
|
|
"tags": [
|
|
"Webhook"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"url"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "blockId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"url"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots/{typebotId}/webhookBlocks/{blockId}/unsubscribe": {
|
|
"post": {
|
|
"operationId": "query.webhook.unsubscribeWebhook",
|
|
"summary": "Unsubscribe from webhook block",
|
|
"tags": [
|
|
"Webhook"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "blockId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"url"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots/{typebotId}/results": {
|
|
"get": {
|
|
"operationId": "query.results.getResults",
|
|
"summary": "List results",
|
|
"tags": [
|
|
"Results"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"pattern": "^[0-9]{1,3}$"
|
|
}
|
|
},
|
|
{
|
|
"name": "cursor",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"results": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"typebotId": {
|
|
"type": "string"
|
|
},
|
|
"variables": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"value"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"isCompleted": {
|
|
"type": "boolean"
|
|
},
|
|
"hasStarted": {
|
|
"type": "boolean",
|
|
"nullable": true
|
|
},
|
|
"isArchived": {
|
|
"type": "boolean",
|
|
"nullable": true
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"resultId": {
|
|
"type": "string"
|
|
},
|
|
"blockId": {
|
|
"type": "string"
|
|
},
|
|
"groupId": {
|
|
"type": "string"
|
|
},
|
|
"variableId": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"storageUsed": {
|
|
"type": "number",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"createdAt",
|
|
"resultId",
|
|
"blockId",
|
|
"groupId",
|
|
"variableId",
|
|
"content",
|
|
"storageUsed"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"createdAt",
|
|
"typebotId",
|
|
"variables",
|
|
"isCompleted",
|
|
"hasStarted",
|
|
"isArchived",
|
|
"answers"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"nextCursor": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"results"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"operationId": "mutation.results.deleteResults",
|
|
"summary": "Delete results",
|
|
"tags": [
|
|
"Results"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "resultIds",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Comma separated list of ids. If not provided, all results will be deleted. ⚠️"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/typebots/{typebotId}/results/{resultId}/logs": {
|
|
"get": {
|
|
"operationId": "query.results.getResultLogs",
|
|
"summary": "List result logs",
|
|
"tags": [
|
|
"Results"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "typebotId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "resultId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"logs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"resultId": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"createdAt",
|
|
"resultId",
|
|
"status",
|
|
"description",
|
|
"details"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"logs"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/billing/subscription/portal": {
|
|
"get": {
|
|
"operationId": "query.billing.getBillingPortalUrl",
|
|
"summary": "Get Stripe billing portal URL",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"billingPortalUrl": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"billingPortalUrl"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/billing/invoices": {
|
|
"get": {
|
|
"operationId": "query.billing.listInvoices",
|
|
"summary": "List invoices",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"invoices": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"amount": {
|
|
"type": "number"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"date": {
|
|
"type": "number",
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"url",
|
|
"amount",
|
|
"currency",
|
|
"date"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"invoices"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/billing/subscription/checkout": {
|
|
"post": {
|
|
"operationId": "mutation.billing.createCheckoutSession",
|
|
"summary": "Create checkout session to create a new subscription",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"company": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"currency": {
|
|
"type": "string",
|
|
"enum": [
|
|
"usd",
|
|
"eur"
|
|
]
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"STARTER",
|
|
"PRO"
|
|
]
|
|
},
|
|
"returnUrl": {
|
|
"type": "string"
|
|
},
|
|
"additionalChats": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorage": {
|
|
"type": "number"
|
|
},
|
|
"vat": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"value"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"isYearly": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"company",
|
|
"workspaceId",
|
|
"currency",
|
|
"plan",
|
|
"returnUrl",
|
|
"additionalChats",
|
|
"additionalStorage",
|
|
"isYearly"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"checkoutUrl": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"checkoutUrl"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/billing/subscription": {
|
|
"patch": {
|
|
"operationId": "mutation.billing.updateSubscription",
|
|
"summary": "Update subscription",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"STARTER",
|
|
"PRO"
|
|
]
|
|
},
|
|
"additionalChats": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorage": {
|
|
"type": "number"
|
|
},
|
|
"currency": {
|
|
"type": "string",
|
|
"enum": [
|
|
"usd",
|
|
"eur"
|
|
]
|
|
},
|
|
"isYearly": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"workspaceId",
|
|
"plan",
|
|
"additionalChats",
|
|
"additionalStorage",
|
|
"currency",
|
|
"isYearly"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspace": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"plan": {
|
|
"type": "string",
|
|
"enum": [
|
|
"FREE",
|
|
"STARTER",
|
|
"PRO",
|
|
"LIFETIME",
|
|
"OFFERED",
|
|
"CUSTOM",
|
|
"UNLIMITED"
|
|
]
|
|
},
|
|
"stripeId": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"additionalChatsIndex": {
|
|
"type": "number"
|
|
},
|
|
"additionalStorageIndex": {
|
|
"type": "number"
|
|
},
|
|
"chatsLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"chatsLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitFirstEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"storageLimitSecondEmailSentAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"nullable": true
|
|
},
|
|
"customChatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customStorageLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"customSeatsLimit": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"isQuarantined": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"createdAt",
|
|
"updatedAt",
|
|
"name",
|
|
"icon",
|
|
"plan",
|
|
"stripeId",
|
|
"additionalChatsIndex",
|
|
"additionalStorageIndex",
|
|
"chatsLimitFirstEmailSentAt",
|
|
"chatsLimitSecondEmailSentAt",
|
|
"storageLimitFirstEmailSentAt",
|
|
"storageLimitSecondEmailSentAt",
|
|
"customChatsLimit",
|
|
"customStorageLimit",
|
|
"customSeatsLimit",
|
|
"isQuarantined"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"workspace"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"operationId": "query.billing.getSubscription",
|
|
"summary": "List invoices",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"subscription": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"isYearly": {
|
|
"type": "boolean"
|
|
},
|
|
"currency": {
|
|
"type": "string",
|
|
"enum": [
|
|
"eur",
|
|
"usd"
|
|
]
|
|
},
|
|
"cancelDate": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"isYearly",
|
|
"currency"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"enum": [
|
|
"null"
|
|
],
|
|
"nullable": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"subscription"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/billing/usage": {
|
|
"get": {
|
|
"operationId": "query.billing.getUsage",
|
|
"summary": "Get current plan usage",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"totalChatsUsed": {
|
|
"type": "number"
|
|
},
|
|
"totalStorageUsed": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"totalChatsUsed",
|
|
"totalStorageUsed"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/billing/subscription/custom-checkout": {
|
|
"post": {
|
|
"operationId": "mutation.billing.createCustomCheckoutSession",
|
|
"summary": "Create custom checkout session to make a workspace pay for a custom plan",
|
|
"tags": [
|
|
"Billing"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"returnUrl": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"workspaceId",
|
|
"returnUrl"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"checkoutUrl": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"checkoutUrl"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/credentials": {
|
|
"post": {
|
|
"operationId": "mutation.credentials.createCredentials",
|
|
"summary": "Create credentials",
|
|
"tags": [
|
|
"Credentials"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credentials": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"live": {
|
|
"type": "object",
|
|
"properties": {
|
|
"secretKey": {
|
|
"type": "string"
|
|
},
|
|
"publicKey": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"secretKey",
|
|
"publicKey"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"test": {
|
|
"type": "object",
|
|
"properties": {
|
|
"secretKey": {
|
|
"type": "string"
|
|
},
|
|
"publicKey": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"live",
|
|
"test"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"stripe"
|
|
]
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"data",
|
|
"type",
|
|
"workspaceId",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"host": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"isTlsEnabled": {
|
|
"type": "boolean"
|
|
},
|
|
"port": {
|
|
"type": "number"
|
|
},
|
|
"from": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"port",
|
|
"from"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"smtp"
|
|
]
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"data",
|
|
"type",
|
|
"workspaceId",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"refresh_token": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"expiry_date": {
|
|
"type": "number",
|
|
"nullable": true
|
|
},
|
|
"access_token": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"token_type": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"id_token": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"google sheets"
|
|
]
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"data",
|
|
"type",
|
|
"workspaceId",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"apiKey": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"apiKey"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"openai"
|
|
]
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"data",
|
|
"type",
|
|
"workspaceId",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"credentials"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credentialsId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"credentialsId"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"operationId": "query.credentials.listCredentials",
|
|
"summary": "List workspace credentials",
|
|
"tags": [
|
|
"Credentials"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "type",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"stripe"
|
|
]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"smtp"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"google sheets"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"openai"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credentials": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"credentials"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/credentials/:credentialsId": {
|
|
"delete": {
|
|
"operationId": "mutation.credentials.deleteCredentials",
|
|
"summary": "Delete credentials",
|
|
"tags": [
|
|
"Credentials"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "credentialsId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credentialsId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"credentialsId"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/themeTemplates": {
|
|
"get": {
|
|
"operationId": "query.theme.listThemeTemplates",
|
|
"summary": "List theme templates",
|
|
"tags": [
|
|
"Theme template"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"themeTemplates": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"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
|
|
},
|
|
"roundness": {
|
|
"type": "string",
|
|
"enum": [
|
|
"none",
|
|
"medium",
|
|
"large"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"hostBubbles",
|
|
"guestBubbles",
|
|
"buttons",
|
|
"inputs"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"customCss": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"general",
|
|
"chat"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"theme"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"themeTemplates"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/themeTemplates/{themeTemplateId}": {
|
|
"put": {
|
|
"operationId": "mutation.theme.saveThemeTemplate",
|
|
"summary": "Save theme template",
|
|
"tags": [
|
|
"Theme template"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"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
|
|
},
|
|
"roundness": {
|
|
"type": "string",
|
|
"enum": [
|
|
"none",
|
|
"medium",
|
|
"large"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"hostBubbles",
|
|
"guestBubbles",
|
|
"buttons",
|
|
"inputs"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"customCss": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"general",
|
|
"chat"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"workspaceId",
|
|
"name",
|
|
"theme"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "themeTemplateId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"themeTemplate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"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
|
|
},
|
|
"roundness": {
|
|
"type": "string",
|
|
"enum": [
|
|
"none",
|
|
"medium",
|
|
"large"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"hostBubbles",
|
|
"guestBubbles",
|
|
"buttons",
|
|
"inputs"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"customCss": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"general",
|
|
"chat"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"theme",
|
|
"workspaceId",
|
|
"createdAt",
|
|
"updatedAt"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"themeTemplate"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"operationId": "mutation.theme.deleteThemeTemplate",
|
|
"summary": "Delete a theme template",
|
|
"tags": [
|
|
"Theme template"
|
|
],
|
|
"security": [
|
|
{
|
|
"Authorization": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "workspaceId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "themeTemplateId",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"themeTemplate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"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
|
|
},
|
|
"roundness": {
|
|
"type": "string",
|
|
"enum": [
|
|
"none",
|
|
"medium",
|
|
"large"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"hostBubbles",
|
|
"guestBubbles",
|
|
"buttons",
|
|
"inputs"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"customCss": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"general",
|
|
"chat"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"workspaceId": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"theme",
|
|
"workspaceId",
|
|
"createdAt",
|
|
"updatedAt"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"themeTemplate"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/components/responses/error"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
} |