Website Ai Designer

Website Ai Designer · GPT-Aktionen

GPT Companion

  • POST /api/gpt/AddLogoAdd custom logo
  • POST /api/gpt/addGridGalleryWithDescriptionsAdd blog block to page
  • POST /api/gpt/addFeatureListWithSingleImageAdd features block to page
  • POST /api/gpt/addContactInformationGridAdd contacts block to page
  • POST /api/gpt/addFaqSectionAdd faq block to page
  • POST /api/gpt/addHeroImageWithCtaAdd hero block to page
  • POST /api/gpt/addCustomizableFormAdd form block to page
  • POST /api/gpt/addPricingOptionsAdd pricing block to page
  • POST /api/gpt/addCatalogAdd Catalog block to page
  • POST /api/gpt/CreatePageAdd page to website
  • POST /api/gpt/DeletePagedelete page from website
  • POST /api/gpt/FetchPageFetch page
  • POST /api/gpt/FetchWebsiteStructureFetch Structure
  • POST /api/gpt/DeleteBlocksDelete block from page
  • POST /api/gpt/ChangeBlockOrderChange Block Order
  • POST /api/gpt/CreateWebsiteOrUpdateWebsiteSettingsCreating basic information about the site
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "GPT Companion",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://pyxl.ai",
      "description": "Development server"
    }
  ],
  "components": {
    "schemas": {},
    "parameters": {}
  },
  "paths": {
    "/api/gpt/AddLogo": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "AddLogo",
        "summary": "Add custom logo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "websiteId": {
                    "type": "string"
                  },
                  "openaiFileIdRefs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "mime_type": {
                          "type": "string"
                        },
                        "download_link": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "id",
                        "mime_type",
                        "download_link"
                      ]
                    }
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "websiteId",
                  "openaiFileIdRefs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add logo",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addGridGalleryWithDescriptions": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addGridGalleryWithDescriptions",
        "summary": "Add blog block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "blog": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "imagePrompt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "name",
                            "description",
                            "imagePrompt"
                          ]
                        }
                      }
                    },
                    "required": [
                      "items"
                    ],
                    "description": "blog, with some pictures and text"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "blog",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addFeatureListWithSingleImage": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addFeatureListWithSingleImage",
        "summary": "Add features block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "features": {
                    "type": "object",
                    "properties": {
                      "imagePrompt": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "isReverse": {
                        "type": "boolean",
                        "description": "the parameter is responsible for the order of the text and the picture, by default the picture on the left"
                      },
                      "points": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "title",
                            "description"
                          ]
                        }
                      }
                    },
                    "required": [
                      "imagePrompt",
                      "title",
                      "points"
                    ],
                    "description": "Features block"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "features",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addContactInformationGrid": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addContactInformationGrid",
        "summary": "Add contacts block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contacts": {
                    "type": "object",
                    "properties": {
                      "contactsInfos": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "email",
                                "tel",
                                "name",
                                "address",
                                "facebook",
                                "twitter",
                                "instagram",
                                "linkedin",
                                "telegram",
                                "whatsapp",
                                "youtube",
                                "tiktok"
                              ]
                            },
                            "text": {
                              "type": "string"
                            },
                            "link": {
                              "type": "string",
                              "description": "if you need to add a link"
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ]
                        }
                      },
                      "displayMap": {
                        "type": "boolean",
                        "description": "we add the map if there is a contact address"
                      }
                    },
                    "required": [
                      "contactsInfos"
                    ],
                    "description": "block with contacts"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "contacts",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addFaqSection": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addFaqSection",
        "summary": "Add faq block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "faq": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "points": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "title",
                            "description"
                          ]
                        }
                      }
                    },
                    "required": [
                      "title",
                      "points"
                    ],
                    "description": "FAQ block"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "faq",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addHeroImageWithCta": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addHeroImageWithCta",
        "summary": "Add hero block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hero": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "subtitle": {
                        "type": "string"
                      },
                      "button1": {
                        "type": "string"
                      },
                      "button1Link": {
                        "type": "string",
                        "example": "/about"
                      },
                      "imagePrompt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "subtitle",
                      "button1",
                      "button1Link",
                      "imagePrompt"
                    ],
                    "description": "Hero block, add it if you wanna add hero block"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "hero",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addCustomizableForm": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addCustomizableForm",
        "summary": "Add form block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "form": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "inputs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "inputName": {
                              "type": "string"
                            },
                            "inputType": {
                              "type": "string",
                              "enum": [
                                "text",
                                "number",
                                "textarea",
                                "email"
                              ]
                            }
                          },
                          "required": [
                            "inputName",
                            "inputType"
                          ],
                          "description": "If the block type is loginForm, it is not necessary to generate inputs, as they are only included in the standard form type."
                        },
                        "description": "If the block type is loginForm, it is not necessary to generate inputs, as they are only included in the standard form type."
                      },
                      "sendButtonName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "inputs",
                      "sendButtonName"
                    ],
                    "description": "Form block, add it if you wanna add form"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "form",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addPricingOptions": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addPricingOptions",
        "summary": "Add pricing block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pricing": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "prices": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "price": {
                              "type": "string"
                            },
                            "priceTitle": {
                              "type": "string"
                            },
                            "benefits": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "price",
                            "priceTitle",
                            "benefits"
                          ]
                        }
                      }
                    },
                    "required": [
                      "title",
                      "prices"
                    ],
                    "description": "Pricing block, add it if you wanna add prices"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "pricing",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/addCatalog": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "addCatalog",
        "summary": "Add Catalog block to page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalog": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "catalogItems": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "imagePrompt": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "price": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "imagePrompt",
                            "name",
                            "price"
                          ]
                        }
                      }
                    },
                    "required": [
                      "title",
                      "catalogItems"
                    ],
                    "description": "Catalog, with pictures, text and price"
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "blockOrder": {
                    "type": "number"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "catalog",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/CreatePage": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "CreatePage",
        "summary": "Add page to website",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pageOrder": {
                    "type": "number"
                  },
                  "page": {
                    "type": "object",
                    "properties": {
                      "pageName": {
                        "type": "string"
                      },
                      "pageType": {
                        "type": "string",
                        "enum": [
                          "mainPage",
                          "subPage"
                        ],
                        "description": "Type of the page, there should always be a mainPage and there will always be only one",
                        "example": "mainPage"
                      },
                      "pageUrl": {
                        "type": "string",
                        "example": "contact"
                      }
                    },
                    "required": [
                      "pageName",
                      "pageType",
                      "pageUrl"
                    ]
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "pageOrder",
                  "page",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/DeletePage": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "DeletePage",
        "summary": "delete page from website",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pageUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "pageUrls",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/FetchPage": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "FetchPage",
        "summary": "Fetch page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/FetchWebsiteStructure": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "FetchWebsiteStructure",
        "summary": "Fetch Structure",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/DeleteBlocks": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "DeleteBlocks",
        "summary": "Delete block from page",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "blocksId": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "blocksId",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/ChangeBlockOrder": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "ChangeBlockOrder",
        "summary": "Change Block Order",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "blocksIdOrder": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "An array of block IDs, should be in the same order in which the blocks need to be positioned."
                    },
                    "description": "An array of block IDs, should be in the same order in which the blocks need to be positioned."
                  },
                  "pageUrl": {
                    "type": "string"
                  },
                  "websiteId": {
                    "type": "string"
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "blocksIdOrder",
                  "pageUrl",
                  "websiteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while add page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/gpt/CreateWebsiteOrUpdateWebsiteSettings": {
      "post": {
        "x-openai-isConsequential": false,
        "operationId": "CreateWebsiteOrUpdateWebsiteSettings",
        "summary": "Creating basic information about the site",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "websiteTitle": {
                    "type": "string"
                  },
                  "websiteDescription": {
                    "type": "string",
                    "description": "Brief description of the website content and purpose"
                  },
                  "orderColorSchema": {
                    "type": "string",
                    "enum": [
                      "zebra",
                      "solid",
                      "first-last"
                    ],
                    "example": "zebra"
                  },
                  "header": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title"
                    ]
                  },
                  "footer": {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "description"
                    ],
                    "description": "Page footer"
                  },
                  "colors": {
                    "type": "object",
                    "properties": {
                      "mainColor": {
                        "type": "string",
                        "enum": [
                          "purple",
                          "dark_purple",
                          "pink",
                          "dark_pink",
                          "orange",
                          "dark_orange",
                          "green",
                          "dark_green",
                          "blue",
                          "dark_blue",
                          "yellow",
                          "dark_yellow"
                        ],
                        "default": "dark_orange"
                      },
                      "secondColor": {
                        "type": "string",
                        "enum": [
                          "purple",
                          "dark_purple",
                          "pink",
                          "dark_pink",
                          "orange",
                          "dark_orange",
                          "green",
                          "dark_green",
                          "blue",
                          "dark_blue",
                          "yellow",
                          "dark_yellow"
                        ],
                        "default": "orange"
                      }
                    },
                    "required": [
                      "mainColor",
                      "secondColor"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "description": "This ID is used if you need to modify an existing schema."
                  },
                  "userToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "websiteTitle",
                  "websiteDescription",
                  "orderColorSchema",
                  "header",
                  "footer",
                  "colors"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Do not change this answer and show it to the user. show the structure only if you have been told to show it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Do not show this to the user."
                    },
                    "answerRecommendations": {
                      "type": "string",
                      "description": "Mandatory recommendations for the answer for user"
                    },
                    "websiteStructure": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "answerRecommendations",
                    "websiteStructure"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "No access",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error while create website",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "errorMessage"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}