POST
/
v1
/
typebots
/
import
curl --request POST \
  --url https://app.typebot.io/api/v1/typebots/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "typebot": {
    "edges": [
      {
        "from": {
          "blockId": "<string>",
          "itemId": "<string>"
        },
        "id": "<string>",
        "to": {
          "blockId": "<string>",
          "groupId": "<string>"
        }
      }
    ],
    "events": [
      {
        "graphCoordinates": {
          "true": 123,
          "x": 123
        },
        "id": "<string>",
        "outgoingEdgeId": "<string>",
        "type": "start"
      }
    ],
    "groups": [
      {
        "blocks": [
          {
            "content": {
              "html": "<string>",
              "plainText": "<string>",
              "richText": [
                "<any>"
              ]
            },
            "id": "<string>",
            "outgoingEdgeId": "<string>",
            "type": "text"
          }
        ],
        "graphCoordinates": {
          "true": 123,
          "x": 123
        },
        "id": "<string>",
        "title": "<string>"
      }
    ],
    "icon": "<string>",
    "name": "<string>",
    "resultsTablePreferences": {
      "columnsOrder": [
        "<string>"
      ],
      "columnsVisibility": {},
      "columnsWidth": {}
    },
    "selectedThemeTemplateId": "<string>",
    "settings": {
      "general": {
        "isBrandingEnabled": true,
        "isHideQueryParamsEnabled": true,
        "isInputPrefillEnabled": true,
        "isNewResultOnRefreshEnabled": true,
        "isTypingEmulationEnabled": true,
        "rememberUser": {
          "isEnabled": true,
          "storage": "session"
        }
      },
      "metadata": {
        "customHeadCode": "<string>",
        "description": "<string>",
        "favIconUrl": "<string>",
        "googleTagManagerId": "<string>",
        "imageUrl": "<string>",
        "title": "<string>"
      },
      "publicShare": {
        "isEnabled": true
      },
      "security": {
        "allowedOrigins": [
          "<string>"
        ]
      },
      "typingEmulation": {
        "delayBetweenBubbles": 4,
        "enabled": true,
        "isDisabledOnFirstMessage": true,
        "maxDelay": 123,
        "speed": 123
      },
      "whatsApp": {
        "isEnabled": true,
        "sessionExpiryTimeout": 47,
        "startCondition": {
          "comparisons": [
            {
              "comparisonOperator": "Equal to",
              "id": "<string>",
              "value": "<string>"
            }
          ],
          "logicalOperator": "OR"
        }
      }
    },
    "theme": {
      "chat": {
        "buttons": {
          "backgroundColor": "<string>",
          "color": "<string>"
        },
        "guestAvatar": {
          "isEnabled": true,
          "url": "<string>"
        },
        "guestBubbles": {
          "backgroundColor": "<string>",
          "color": "<string>"
        },
        "hostAvatar": {
          "isEnabled": true,
          "url": "<string>"
        },
        "hostBubbles": {
          "backgroundColor": "<string>",
          "color": "<string>"
        },
        "inputs": {
          "backgroundColor": "<string>",
          "color": "<string>",
          "placeholderColor": "<string>"
        },
        "roundness": "none"
      },
      "customCss": "<string>",
      "general": {
        "background": {
          "content": "<string>",
          "type": "Color"
        },
        "font": "<string>"
      }
    },
    "variables": [
      {
        "id": "<string>",
        "name": "<string>",
        "value": "<string>"
      }
    ],
    "version": "6"
  },
  "workspaceId": "<string>"
}'
{
  "typebot": {
    "createdAt": "<string>",
    "customDomain": "<string>",
    "edges": [
      {
        "from": {
          "blockId": "<string>",
          "itemId": "<string>"
        },
        "id": "<string>",
        "to": {
          "blockId": "<string>",
          "groupId": "<string>"
        }
      }
    ],
    "events": [
      {
        "graphCoordinates": {
          "true": 123,
          "x": 123
        },
        "id": "<string>",
        "outgoingEdgeId": "<string>",
        "type": "start"
      }
    ],
    "folderId": "<string>",
    "groups": [
      {
        "blocks": [
          {
            "content": {
              "html": "<string>",
              "plainText": "<string>",
              "richText": [
                "<any>"
              ]
            },
            "id": "<string>",
            "outgoingEdgeId": "<string>",
            "type": "text"
          }
        ],
        "graphCoordinates": {
          "true": 123,
          "x": 123
        },
        "id": "<string>",
        "title": "<string>"
      }
    ],
    "icon": "<string>",
    "id": "<string>",
    "isArchived": true,
    "isClosed": true,
    "name": "<string>",
    "publicId": "<string>",
    "resultsTablePreferences": {
      "columnsOrder": [
        "<string>"
      ],
      "columnsVisibility": {},
      "columnsWidth": {}
    },
    "riskLevel": 123,
    "selectedThemeTemplateId": "<string>",
    "settings": {
      "general": {
        "isBrandingEnabled": true,
        "isHideQueryParamsEnabled": true,
        "isInputPrefillEnabled": true,
        "isNewResultOnRefreshEnabled": true,
        "isTypingEmulationEnabled": true,
        "rememberUser": {
          "isEnabled": true,
          "storage": "session"
        }
      },
      "metadata": {
        "customHeadCode": "<string>",
        "description": "<string>",
        "favIconUrl": "<string>",
        "googleTagManagerId": "<string>",
        "imageUrl": "<string>",
        "title": "<string>"
      },
      "publicShare": {
        "isEnabled": true
      },
      "security": {
        "allowedOrigins": [
          "<string>"
        ]
      },
      "typingEmulation": {
        "delayBetweenBubbles": 4,
        "enabled": true,
        "isDisabledOnFirstMessage": true,
        "maxDelay": 123,
        "speed": 123
      },
      "whatsApp": {
        "isEnabled": true,
        "sessionExpiryTimeout": 47,
        "startCondition": {
          "comparisons": [
            {
              "comparisonOperator": "Equal to",
              "id": "<string>",
              "value": "<string>"
            }
          ],
          "logicalOperator": "OR"
        }
      }
    },
    "theme": {
      "chat": {
        "buttons": {
          "backgroundColor": "<string>",
          "color": "<string>"
        },
        "guestAvatar": {
          "isEnabled": true,
          "url": "<string>"
        },
        "guestBubbles": {
          "backgroundColor": "<string>",
          "color": "<string>"
        },
        "hostAvatar": {
          "isEnabled": true,
          "url": "<string>"
        },
        "hostBubbles": {
          "backgroundColor": "<string>",
          "color": "<string>"
        },
        "inputs": {
          "backgroundColor": "<string>",
          "color": "<string>",
          "placeholderColor": "<string>"
        },
        "roundness": "none"
      },
      "customCss": "<string>",
      "general": {
        "background": {
          "content": "<string>",
          "type": "Color"
        },
        "font": "<string>"
      }
    },
    "updatedAt": "<string>",
    "variables": [
      {
        "id": "<string>",
        "name": "<string>",
        "value": "<string>"
      }
    ],
    "version": "6",
    "whatsAppCredentialsId": "<string>",
    "workspaceId": "<string>"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
typebot
object
required
  • Typebot V6

  • Typebot V5

workspaceId
string
required

Response

200 - application/json
typebot
object
required