{
  "openapi": "3.1.0",
  "info": {
    "title": "İncele authenticated REST API",
    "version": "1.0.0",
    "description": "Authenticated account and workspace management. All operations require a scoped account API key. Workspace permissions are checked on every request.",
    "contact": {
      "name": "İncele support",
      "email": "info@incele.ai"
    }
  },
  "externalDocs": {
    "url": "https://docs.incele.ai/developers/"
  },
  "servers": [
    {
      "url": "https://api.incele.ai"
    }
  ],
  "components": {
    "schemas": {
      "Product": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "brand": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "information": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "fileName": {
                  "type": "string"
                },
                "mimeType": {
                  "type": "string"
                },
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "kind": {
                  "type": "string"
                },
                "key": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "usageCount": {
                  "default": 0,
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "url": {
                  "default": "",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "fileName",
                "mimeType",
                "size",
                "kind",
                "key",
                "createdAt",
                "usageCount",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "externalImageUrls": {
            "description": "External catalog image URLs, separate from uploaded owner-media IDs.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "sourceProvider": {
            "type": "string"
          },
          "sourceProviders": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "channelPresence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connectionId": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "linked": {
                  "type": "boolean"
                },
                "listingIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "LINKED",
                    "UNLINKED",
                    "NOT_CHECKED",
                    "ERROR",
                    "REVIEW"
                  ]
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "nativeAbsenceVerified": {
                  "type": "boolean",
                  "const": false
                },
                "warehouseMode": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "ALL",
                        "SELECTED"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "warehouseNames": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "stockSyncActivatedAt": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "outboundPaused": {
                  "default": 1,
                  "type": "number"
                },
                "stockSyncAvailable": {
                  "default": false,
                  "type": "boolean"
                },
                "listings": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "sync": {
                        "type": "object",
                        "properties": {
                          "state": {
                            "type": "string",
                            "enum": [
                              "SETUP",
                              "COUNTS",
                              "ACCESS",
                              "OFF",
                              "PAUSED",
                              "ATTENTION",
                              "QUEUED",
                              "SENDING",
                              "CONFIRMING",
                              "WAITING",
                              "UNKNOWN",
                              "CURRENT"
                            ]
                          },
                          "reason": {
                            "type": "string"
                          },
                          "target": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastError": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "jobStatus": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "updatedAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "nextAttemptAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "state",
                          "reason",
                          "lastError",
                          "jobStatus",
                          "updatedAt",
                          "nextAttemptAt"
                        ],
                        "additionalProperties": false
                      },
                      "stock": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "target": {
                        "default": null,
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "pending": {
                        "default": 0,
                        "type": "number"
                      },
                      "saleMinor": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "listMinor": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "currency": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "stock",
                      "target",
                      "pending",
                      "saleMinor",
                      "listMinor",
                      "currency"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "connectionId",
                "provider",
                "label",
                "linked",
                "listingIds",
                "state",
                "observedAt",
                "reason",
                "nativeAbsenceVerified",
                "warehouseMode",
                "warehouseNames",
                "stockSyncActivatedAt",
                "outboundPaused",
                "stockSyncAvailable",
                "listings"
              ],
              "additionalProperties": false
            }
          },
          "commercePrices": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  },
                  "saleMinor": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "listMinor": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "currency",
                  "saleMinor",
                  "listMinor"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "sales": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "link": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "name",
                "link"
              ],
              "additionalProperties": false
            }
          },
          "sku": {
            "type": "string"
          },
          "barcode": {
            "type": "string"
          },
          "stock": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "inventoryInitialized": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE",
              "DELETED"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "brand",
          "slug",
          "description",
          "information",
          "images",
          "tags",
          "sales",
          "sku",
          "barcode",
          "stock",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "ProductList": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "brand": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "information": {
                  "type": "string"
                },
                "images": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "fileName": {
                        "type": "string"
                      },
                      "mimeType": {
                        "type": "string"
                      },
                      "size": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "kind": {
                        "type": "string"
                      },
                      "key": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "usageCount": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "url": {
                        "default": "",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "fileName",
                      "mimeType",
                      "size",
                      "kind",
                      "key",
                      "createdAt",
                      "usageCount",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "externalImageUrls": {
                  "description": "External catalog image URLs, separate from uploaded owner-media IDs.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "sourceProvider": {
                  "type": "string"
                },
                "sourceProviders": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "channelPresence": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "connectionId": {
                        "type": "string"
                      },
                      "provider": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "linked": {
                        "type": "boolean"
                      },
                      "listingIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "LINKED",
                          "UNLINKED",
                          "NOT_CHECKED",
                          "ERROR",
                          "REVIEW"
                        ]
                      },
                      "observedAt": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "reason": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "nativeAbsenceVerified": {
                        "type": "boolean",
                        "const": false
                      },
                      "warehouseMode": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "ALL",
                              "SELECTED"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "warehouseNames": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "stockSyncActivatedAt": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "outboundPaused": {
                        "default": 1,
                        "type": "number"
                      },
                      "stockSyncAvailable": {
                        "default": false,
                        "type": "boolean"
                      },
                      "listings": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "sync": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "SETUP",
                                    "COUNTS",
                                    "ACCESS",
                                    "OFF",
                                    "PAUSED",
                                    "ATTENTION",
                                    "QUEUED",
                                    "SENDING",
                                    "CONFIRMING",
                                    "WAITING",
                                    "UNKNOWN",
                                    "CURRENT"
                                  ]
                                },
                                "reason": {
                                  "type": "string"
                                },
                                "target": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "lastError": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "jobStatus": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "updatedAt": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "nextAttemptAt": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "state",
                                "reason",
                                "lastError",
                                "jobStatus",
                                "updatedAt",
                                "nextAttemptAt"
                              ],
                              "additionalProperties": false
                            },
                            "stock": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "target": {
                              "default": null,
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "pending": {
                              "default": 0,
                              "type": "number"
                            },
                            "saleMinor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "listMinor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "stock",
                            "target",
                            "pending",
                            "saleMinor",
                            "listMinor",
                            "currency"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "connectionId",
                      "provider",
                      "label",
                      "linked",
                      "listingIds",
                      "state",
                      "observedAt",
                      "reason",
                      "nativeAbsenceVerified",
                      "warehouseMode",
                      "warehouseNames",
                      "stockSyncActivatedAt",
                      "outboundPaused",
                      "stockSyncAvailable",
                      "listings"
                    ],
                    "additionalProperties": false
                  }
                },
                "commercePrices": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "currency": {
                          "type": "string"
                        },
                        "saleMinor": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "listMinor": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "currency",
                        "saleMinor",
                        "listMinor"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sales": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "link": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "name",
                      "link"
                    ],
                    "additionalProperties": false
                  }
                },
                "sku": {
                  "type": "string"
                },
                "barcode": {
                  "type": "string"
                },
                "stock": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "inventoryInitialized": {
                  "type": "number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "INACTIVE",
                    "DELETED"
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "brand",
                "slug",
                "description",
                "information",
                "images",
                "tags",
                "sales",
                "sku",
                "barcode",
                "stock",
                "status",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "provider",
                "label",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "channelsTruncated": {
            "type": "boolean"
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          },
          "summary": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "active": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "inactive": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "outOfStock": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "total",
              "active",
              "inactive",
              "outOfStock"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "products",
          "pagination",
          "summary"
        ],
        "additionalProperties": false
      },
      "Collection": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "imageId": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "size": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "kind": {
                    "type": "string"
                  },
                  "key": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "usageCount": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "url": {
                    "default": "",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "fileName",
                  "mimeType",
                  "size",
                  "kind",
                  "key",
                  "createdAt",
                  "usageCount",
                  "url"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "workspaceId": {
            "type": "string"
          },
          "productIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "brand": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "sku": {
                  "type": "string"
                },
                "stock": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "INACTIVE",
                    "DELETED"
                  ]
                },
                "images": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "fileName": {
                        "type": "string"
                      },
                      "mimeType": {
                        "type": "string"
                      },
                      "size": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "kind": {
                        "type": "string"
                      },
                      "key": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "usageCount": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "url": {
                        "default": "",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "fileName",
                      "mimeType",
                      "size",
                      "kind",
                      "key",
                      "createdAt",
                      "usageCount",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "externalImageUrls": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "brand",
                "slug",
                "sku",
                "stock",
                "status",
                "images",
                "tags",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "description",
          "imageId",
          "image",
          "workspaceId",
          "productIds",
          "tags",
          "products",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "CollectionList": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "collections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "imageId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "image": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "fileName": {
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string"
                        },
                        "size": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "kind": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "usageCount": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "url": {
                          "default": "",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "fileName",
                        "mimeType",
                        "size",
                        "kind",
                        "key",
                        "createdAt",
                        "usageCount",
                        "url"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "workspaceId": {
                  "type": "string"
                },
                "productIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "products": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "brand": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "sku": {
                        "type": "string"
                      },
                      "stock": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "ACTIVE",
                          "INACTIVE",
                          "DELETED"
                        ]
                      },
                      "images": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "fileName": {
                              "type": "string"
                            },
                            "mimeType": {
                              "type": "string"
                            },
                            "size": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "kind": {
                              "type": "string"
                            },
                            "key": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "usageCount": {
                              "default": 0,
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "url": {
                              "default": "",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "fileName",
                            "mimeType",
                            "size",
                            "kind",
                            "key",
                            "createdAt",
                            "usageCount",
                            "url"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "externalImageUrls": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "brand",
                      "slug",
                      "sku",
                      "stock",
                      "status",
                      "images",
                      "tags",
                      "createdAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "slug",
                "description",
                "imageId",
                "image",
                "workspaceId",
                "productIds",
                "tags",
                "products",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "collections",
          "pagination"
        ],
        "additionalProperties": false
      },
      "Tag": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "TagList": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "tags",
          "pagination"
        ],
        "additionalProperties": false
      },
      "MediaList": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "fileName": {
                  "type": "string"
                },
                "mimeType": {
                  "type": "string"
                },
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "kind": {
                  "type": "string"
                },
                "key": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "usageCount": {
                  "default": 0,
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "url": {
                  "default": "",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "fileName",
                "mimeType",
                "size",
                "kind",
                "key",
                "createdAt",
                "usageCount",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          },
          "summary": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unused": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "linked": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "multiLinked": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "total",
              "unused",
              "linked",
              "multiLinked"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "media",
          "pagination",
          "summary"
        ],
        "additionalProperties": false
      },
      "Error": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "fieldErrors": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "service": {
                "type": "string",
                "enum": [
                  "account",
                  "authorization",
                  "catalog",
                  "listings",
                  "questions",
                  "orders",
                  "returns"
                ]
              },
              "provider": {
                "type": "string",
                "enum": [
                  "TRENDYOL",
                  "HEPSIBURADA",
                  "PAZARAMA",
                  "N11",
                  "CICEKSEPETI",
                  "PTTAVM",
                  "AMAZON_TR"
                ]
              },
              "nativeStatus": {
                "type": "integer",
                "minimum": 100,
                "maximum": 599
              }
            },
            "required": [
              "service"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "status",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "ChatbotSettings": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "templateKey": {
            "default": "support-v1",
            "type": "string",
            "enum": [
              "support-v1",
              "support-v2",
              "support-v3",
              "support-v4",
              "ecommerce-v1",
              "ecommerce-v2",
              "ecommerce-v3",
              "ecommerce-v4",
              "cosmetics-v1",
              "cosmetics-v2",
              "cosmetics-v3",
              "cosmetics-v4"
            ]
          },
          "enabled": {
            "default": true,
            "type": "boolean"
          },
          "templateSettings": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "support-v1",
                "support-v2",
                "support-v3",
                "support-v4",
                "ecommerce-v1",
                "ecommerce-v2",
                "ecommerce-v3",
                "ecommerce-v4",
                "cosmetics-v1",
                "cosmetics-v2",
                "cosmetics-v3",
                "cosmetics-v4"
              ]
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "compactIntro": {
                  "type": "boolean"
                },
                "showArticles": {
                  "type": "boolean"
                },
                "showContact": {
                  "type": "boolean"
                },
                "showProductSearch": {
                  "type": "boolean"
                },
                "showRoutine": {
                  "type": "boolean"
                },
                "showManualProfile": {
                  "type": "boolean"
                },
                "showPhoto": {
                  "type": "boolean"
                },
                "density": {
                  "type": "string",
                  "enum": [
                    "comfortable",
                    "compact"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "launcherIcon": {
            "default": "sparkles",
            "type": "string",
            "enum": [
              "sparkles",
              "message-circle",
              "bot",
              "headset",
              "help-circle",
              "shopping-bag",
              "heart",
              "flower",
              "stars",
              "smile"
            ]
          },
          "launcherDisplay": {
            "default": "icon-text",
            "type": "string",
            "enum": [
              "icon",
              "text",
              "icon-text"
            ]
          },
          "launcherSize": {
            "default": "medium",
            "type": "string",
            "enum": [
              "small",
              "medium",
              "large"
            ]
          },
          "launcherHighlight": {
            "default": "orbit",
            "type": "string",
            "enum": [
              "none",
              "orbit",
              "halo",
              "pulse",
              "ripple",
              "aurora",
              "gradient",
              "sparkle",
              "beacon",
              "float",
              "outline"
            ]
          },
          "draggable": {
            "default": true,
            "type": "boolean"
          },
          "captureMode": {
            "default": "manual",
            "type": "string",
            "enum": [
              "manual",
              "automatic"
            ]
          },
          "authenticationMode": {
            "default": "DISABLED",
            "type": "string",
            "enum": [
              "DISABLED",
              "OPTIONAL",
              "REQUIRED"
            ]
          },
          "allowedOrigins": {
            "default": [],
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 300
            }
          },
          "position": {
            "default": "bottom-right",
            "type": "string",
            "enum": [
              "bottom-right",
              "bottom-left"
            ]
          },
          "color": {
            "default": "#635bff",
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "textColor": {
            "default": "#ffffff",
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "title": {
            "default": "Help & Support",
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "launcherText": {
            "default": "Ask AI",
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "welcomeText": {
            "default": "Ask AI a question or choose an available support option.",
            "type": "string",
            "minLength": 1,
            "maxLength": 600
          },
          "placeholder": {
            "default": "Ask a support question…",
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "defaultLanguage": {
            "default": "en",
            "type": "string",
            "enum": [
              "en",
              "tr",
              "de",
              "es",
              "fr"
            ]
          },
          "messages": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "en",
                "tr",
                "de",
                "es",
                "fr"
              ]
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "launcherText": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "welcomeText": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 600
                },
                "placeholder": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                }
              },
              "required": [
                "title",
                "launcherText",
                "welcomeText",
                "placeholder"
              ],
              "additionalProperties": false
            }
          },
          "productBrowsingEnabled": {
            "default": true,
            "type": "boolean"
          },
          "photoAnalysisEnabled": {
            "default": true,
            "type": "boolean"
          },
          "contactEmailNotifications": {
            "default": false,
            "type": "boolean"
          },
          "contactForms": {
            "default": [],
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "fields": {
                  "minItems": 1,
                  "maxItems": 12,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "TEXTAREA",
                          "EMAIL",
                          "PHONE",
                          "SELECT",
                          "RADIO",
                          "CHECKBOX",
                          "BOOLEAN"
                        ]
                      },
                      "required": {
                        "type": "boolean"
                      },
                      "options": {
                        "default": [],
                        "maxItems": 12,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        }
                      }
                    },
                    "required": [
                      "id",
                      "label",
                      "type",
                      "required",
                      "options"
                    ],
                    "additionalProperties": false
                  }
                },
                "translations": {
                  "default": {},
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "en",
                      "tr",
                      "de",
                      "es",
                      "fr"
                    ]
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "fields": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "label": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "options": {
                              "maxItems": 12,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  }
                                },
                                "required": [
                                  "value",
                                  "label"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "title",
                "fields",
                "translations"
              ],
              "additionalProperties": false
            }
          },
          "activeContactFormId": {
            "default": "default",
            "anyOf": [
              {
                "type": "string",
                "const": "default"
              },
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            ]
          },
          "starterQuestions": {
            "default": [],
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "text": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "translations": {
                  "default": {},
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "en",
                      "tr",
                      "de",
                      "es",
                      "fr"
                    ]
                  },
                  "additionalProperties": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              },
              "required": [
                "id",
                "text",
                "translations"
              ],
              "additionalProperties": false
            }
          },
          "selectedStarterIds": {
            "default": [
              "about",
              "services",
              "contact",
              "getting-started"
            ],
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "socialLinks": {
            "default": [],
            "maxItems": 7,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "instagram",
                    "facebook",
                    "youtube",
                    "tiktok",
                    "linkedin",
                    "x",
                    "website"
                  ]
                },
                "url": {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                "visible": {
                  "default": true,
                  "type": "boolean"
                }
              },
              "required": [
                "platform",
                "url",
                "visible"
              ],
              "additionalProperties": false
            }
          },
          "offset": {
            "default": 20,
            "type": "integer",
            "minimum": 8,
            "maximum": 100
          }
        },
        "required": [
          "templateKey",
          "enabled",
          "templateSettings",
          "launcherIcon",
          "launcherDisplay",
          "launcherSize",
          "launcherHighlight",
          "draggable",
          "captureMode",
          "authenticationMode",
          "allowedOrigins",
          "position",
          "color",
          "textColor",
          "title",
          "launcherText",
          "welcomeText",
          "placeholder",
          "defaultLanguage",
          "messages",
          "productBrowsingEnabled",
          "photoAnalysisEnabled",
          "contactEmailNotifications",
          "contactForms",
          "activeContactFormId",
          "starterQuestions",
          "selectedStarterIds",
          "socialLinks",
          "offset"
        ],
        "additionalProperties": false
      },
      "ChatbotReport": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "totals": {
            "type": "object",
            "properties": {
              "visitors": {
                "type": "number"
              },
              "opens": {
                "type": "number"
              },
              "messages": {
                "type": "number"
              },
              "conversations": {
                "type": "number"
              },
              "customers": {
                "type": "number"
              },
              "productReplies": {
                "type": "number"
              },
              "routineReplies": {
                "type": "number"
              }
            },
            "required": [
              "visitors",
              "opens",
              "messages",
              "conversations",
              "customers",
              "productReplies",
              "routineReplies"
            ],
            "additionalProperties": false
          },
          "daily": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "visitors": {
                  "type": "number"
                },
                "opens": {
                  "type": "number"
                },
                "messages": {
                  "type": "number"
                },
                "conversations": {
                  "type": "number"
                },
                "customers": {
                  "type": "number"
                },
                "productReplies": {
                  "type": "number"
                },
                "routineReplies": {
                  "type": "number"
                },
                "day": {
                  "type": "string"
                }
              },
              "required": [
                "visitors",
                "opens",
                "messages",
                "conversations",
                "customers",
                "productReplies",
                "routineReplies",
                "day"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "from",
          "to",
          "totals",
          "daily"
        ],
        "additionalProperties": false
      },
      "ProductQuestion": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "additionalProperties": false
      },
      "ProductQuestionSet": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text"
              ],
              "additionalProperties": false
            }
          },
          "usesDefaults": {
            "type": "boolean"
          }
        },
        "required": [
          "questions",
          "usesDefaults"
        ],
        "additionalProperties": false
      },
      "QuestionLibrary": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "questions"
        ],
        "additionalProperties": false
      },
      "AiSettings": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "chatIdleTimeoutSeconds": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "level": {
            "type": "string",
            "enum": [
              "SMART",
              "SMARTER",
              "SMARTEST"
            ]
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "pricing": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "SMART",
                "SMARTER",
                "SMARTEST"
              ]
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "multiplier": {
                  "type": "number"
                },
                "product": {
                  "type": "number"
                },
                "general": {
                  "type": "number"
                },
                "routine": {
                  "type": "number"
                },
                "photo": {
                  "type": "number"
                }
              },
              "required": [
                "multiplier",
                "product",
                "general",
                "routine",
                "photo"
              ],
              "additionalProperties": false
            },
            "required": [
              "SMART",
              "SMARTER",
              "SMARTEST"
            ]
          },
          "sector": {
            "type": "string",
            "enum": [
              "AUTO",
              "GENERAL",
              "BEAUTY",
              "TEXTILE"
            ]
          }
        },
        "required": [
          "chatIdleTimeoutSeconds",
          "level",
          "revision",
          "pricing",
          "sector"
        ],
        "additionalProperties": false
      },
      "FeedbackList": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "feedbacks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "workspaceId": {
                  "type": "string"
                },
                "userId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "workspaceName": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "workspaceId",
                "userId",
                "message",
                "createdAt",
                "workspaceName"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "feedbacks",
          "pagination"
        ],
        "additionalProperties": false
      },
      "UsageReport": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "actorType": {
                  "type": "string"
                },
                "userId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "lastUsedAt": {
                  "type": "string"
                },
                "events": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "requests": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "credits": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "productRequests": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "routineRequests": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "faceAnalyses": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "comprehensiveRequests": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "productViews": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "visits": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "actorType",
                "userId",
                "name",
                "lastUsedAt",
                "events",
                "requests",
                "credits",
                "productRequests",
                "routineRequests",
                "faceAnalyses",
                "comprehensiveRequests",
                "productViews",
                "visits"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          },
          "totals": {
            "type": "object",
            "properties": {
              "events": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "requests": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "credits": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "events",
              "requests",
              "credits"
            ],
            "additionalProperties": false
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "usage",
          "pagination",
          "totals",
          "from",
          "to"
        ],
        "additionalProperties": false
      },
      "UsageEvents": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "userId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "actorType": {
                  "type": "string"
                },
                "eventName": {
                  "type": "string"
                },
                "endpoint": {
                  "type": "string"
                },
                "resourceType": {
                  "type": "string"
                },
                "resourceId": {
                  "type": "string"
                },
                "creditDelta": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "modelKey": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "userId",
                "name",
                "actorType",
                "eventName",
                "endpoint",
                "resourceType",
                "resourceId",
                "creditDelta",
                "modelKey",
                "status",
                "createdAt"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "totalPages": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasNextPage": {
                "type": "boolean"
              },
              "hasPreviousPage": {
                "type": "boolean"
              }
            },
            "required": [
              "page",
              "limit",
              "total",
              "totalPages",
              "hasNextPage",
              "hasPreviousPage"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "events",
          "pagination"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "integrationToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Create a scoped account API key in Home → Integrations. Keep write keys on your backend."
      }
    }
  },
  "paths": {
    "/v1/workspaces/{workspaceId}/products": {
      "get": {
        "operationId": "list_products",
        "summary": "Products: List",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List all products, including inactive products, with pagination, search, and status filters."
      },
      "post": {
        "operationId": "create_product",
        "summary": "Product: Create",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "brand": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "sku": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "barcode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "stock": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 999999
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "INACTIVE",
                      "DELETED"
                    ]
                  },
                  "description": {
                    "default": "",
                    "type": "string",
                    "maxLength": 100000
                  },
                  "information": {
                    "type": "string",
                    "maxLength": 500000
                  },
                  "questionIds": {
                    "minItems": 0,
                    "maxItems": 5,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "imageIds": {
                    "default": [],
                    "description": "Uploaded image identifiers in gallery order. Only the first five unique images are retained.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    }
                  },
                  "tagIds": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    }
                  },
                  "sales": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "link": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "link"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "name",
                  "brand",
                  "sku",
                  "barcode",
                  "stock",
                  "status",
                  "description",
                  "information",
                  "imageIds",
                  "tagIds",
                  "sales"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Create a product. Data: name, brand, sku, barcode, stock, status (ACTIVE/INACTIVE/DELETED), description, information, imageIds, tagIds, sales. Existing business validation applies."
      }
    },
    "/v1/workspaces/{workspaceId}/products/{id}": {
      "get": {
        "operationId": "get_product",
        "summary": "Product: Read",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "product"
                  ],
                  "properties": {
                    "product": {
                      "$ref": "#/components/schemas/Product"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Fetch one product owned by this workspace, including inactive products."
      },
      "put": {
        "operationId": "update_product",
        "summary": "Product: Update",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "brand": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "sku": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "barcode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "stock": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 999999
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "INACTIVE",
                      "DELETED"
                    ]
                  },
                  "description": {
                    "default": "",
                    "type": "string",
                    "maxLength": 100000
                  },
                  "information": {
                    "type": "string",
                    "maxLength": 500000
                  },
                  "questionIds": {
                    "minItems": 0,
                    "maxItems": 5,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "imageIds": {
                    "default": [],
                    "description": "Uploaded image identifiers in gallery order. Only the first five unique images are retained.",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    }
                  },
                  "tagIds": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    }
                  },
                  "sales": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "link": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "link"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "name",
                  "brand",
                  "sku",
                  "barcode",
                  "stock",
                  "status",
                  "description",
                  "information",
                  "imageIds",
                  "tagIds",
                  "sales"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update a product using its current full editable values; read it first. Same data fields as create_product."
      },
      "delete": {
        "operationId": "delete_product",
        "summary": "Product: Delete permanently",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Permanently delete a product and its associations."
      }
    },
    "/v1/workspaces/{workspaceId}/collections": {
      "get": {
        "operationId": "list_collections",
        "summary": "Collections: List",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List collections with pagination and search."
      },
      "post": {
        "operationId": "create_collection",
        "summary": "Collection: Create",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "default": "",
                    "type": "string",
                    "maxLength": 100000
                  },
                  "imageId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tagIds": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    }
                  }
                },
                "required": [
                  "name",
                  "description",
                  "tagIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Collection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Create collection. Data: name, description, tagIds, imageId. Add products with add_collection_product."
      }
    },
    "/v1/workspaces/{workspaceId}/collections/{id}": {
      "put": {
        "operationId": "update_collection",
        "summary": "Collection: Update",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "default": "",
                    "type": "string",
                    "maxLength": 100000
                  },
                  "imageId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tagIds": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    }
                  }
                },
                "required": [
                  "name",
                  "description",
                  "tagIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Collection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update collection with its full editable values."
      },
      "delete": {
        "operationId": "delete_collection",
        "summary": "Collection: Delete permanently",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Permanently delete collection."
      },
      "get": {
        "operationId": "get_collection",
        "summary": "Collection: Read",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Collection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Fetch one collection including its product and tag associations."
      }
    },
    "/v1/workspaces/{workspaceId}/tags": {
      "get": {
        "operationId": "list_tags",
        "summary": "Tags: List",
        "tags": [
          "tags"
        ],
        "x-required-scope": "tags:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List tags with pagination and search."
      },
      "post": {
        "operationId": "create_tag",
        "summary": "Tag: Create",
        "tags": [
          "tags"
        ],
        "x-required-scope": "tags:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tag"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Create tag. Data: name."
      }
    },
    "/v1/workspaces/{workspaceId}/tags/{id}": {
      "put": {
        "operationId": "update_tag",
        "summary": "Tag: Update",
        "tags": [
          "tags"
        ],
        "x-required-scope": "tags:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tag"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update tag with its full editable values."
      },
      "delete": {
        "operationId": "delete_tag",
        "summary": "Tag: Delete permanently",
        "tags": [
          "tags"
        ],
        "x-required-scope": "tags:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Permanently delete tag."
      },
      "get": {
        "operationId": "get_tag",
        "summary": "Tag: Read",
        "tags": [
          "tags"
        ],
        "x-required-scope": "tags:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tag"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Fetch one tag."
      }
    },
    "/v1/templates": {
      "get": {
        "operationId": "list_templates",
        "summary": "Website templates: List",
        "tags": [
          "Account"
        ],
        "x-required-scope": "website:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List public website templates available for workspace creation."
      }
    },
    "/v1/workspaces/{workspaceId}/website/templates": {
      "get": {
        "operationId": "list_workspace_templates",
        "summary": "Workspace website templates: List",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List public templates and private templates assigned to this workspace. Access grants do not change the selected design."
      }
    },
    "/v1/workspaces/{workspaceId}/collections/{id}/products": {
      "get": {
        "operationId": "list_collection_products",
        "summary": "Collection products: List",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List products in a collection."
      }
    },
    "/v1/workspaces/{workspaceId}/collections/{id}/products/{productId}": {
      "post": {
        "operationId": "add_collection_product",
        "summary": "Collection products: Add",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "add a workspace product in a workspace collection."
      },
      "delete": {
        "operationId": "remove_collection_product",
        "summary": "Collection products: Remove association",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "remove a workspace product in a workspace collection."
      }
    },
    "/v1/workspaces/{workspaceId}/products/{id}/tags/{tagId}": {
      "post": {
        "operationId": "add_product_tag",
        "summary": "Product tag: Add",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "add a workspace tag on a workspace product."
      },
      "delete": {
        "operationId": "remove_product_tag",
        "summary": "Product tag: Remove association",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "remove a workspace tag on a workspace product."
      }
    },
    "/v1/workspaces/{workspaceId}/collections/{id}/tags/{tagId}": {
      "post": {
        "operationId": "add_collection_tag",
        "summary": "Collection tag: Add",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "add a workspace tag on a workspace collection."
      },
      "delete": {
        "operationId": "remove_collection_tag",
        "summary": "Collection tag: Remove association",
        "tags": [
          "collections"
        ],
        "x-required-scope": "collections:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "remove a workspace tag on a workspace collection."
      }
    },
    "/v1/workspaces/{workspaceId}/media": {
      "get": {
        "operationId": "list_media",
        "summary": "Media: List",
        "tags": [
          "media"
        ],
        "x-required-scope": "media:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List uploaded images with pagination, usage, and search."
      },
      "post": {
        "operationId": "upload_media",
        "summary": "Image: Upload",
        "tags": [
          "media"
        ],
        "x-required-scope": "media:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": [
                      "image/jpeg",
                      "image/png",
                      "image/webp",
                      "image/gif",
                      "image/avif"
                    ]
                  },
                  "base64": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 4194304
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "base64"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Upload an image as base64 (maximum 3 MiB decoded). Returns media id for imageIds fields. REST also supports multipart upload at /v1/media/upload."
      }
    },
    "/v1/workspaces/{workspaceId}/media/{id}": {
      "get": {
        "operationId": "get_media",
        "summary": "Media: Read",
        "tags": [
          "media"
        ],
        "x-required-scope": "media:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Fetch uploaded media metadata."
      },
      "put": {
        "operationId": "replace_media",
        "summary": "Image: Replace",
        "tags": [
          "media"
        ],
        "x-required-scope": "media:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": [
                      "image/jpeg",
                      "image/png",
                      "image/webp",
                      "image/gif",
                      "image/avif"
                    ]
                  },
                  "base64": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 4194304
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "base64"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Replace an uploaded image while retaining its media id."
      },
      "delete": {
        "operationId": "delete_media",
        "summary": "Media: Delete permanently",
        "tags": [
          "media"
        ],
        "x-required-scope": "media:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Delete uploaded media and remove its references."
      }
    },
    "/v1/workspaces/{workspaceId}/workspace": {
      "get": {
        "operationId": "get_workspace",
        "summary": "Workspace: Read",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read the selected workspace profile, business contact information and agent instructions."
      },
      "put": {
        "operationId": "update_workspace",
        "summary": "Workspace: Update",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "subDomain": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32,
                    "pattern": "^(?!-)[a-z0-9-]+(?<!-)$"
                  },
                  "billingEmail": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "billingEmailOtpCode": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  },
                  "billingPhone": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "billingGsmCountryCode": {
                    "type": "string"
                  },
                  "hostedSitePublished": {
                    "type": "boolean"
                  },
                  "chatIdleTimeoutSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update workspace profile fields: name, subDomain, billingEmail, billingPhone, billingGsmCountryCode, hostedSitePublished. Billing email changes require an existing verification code; subdomain validation/cooldowns apply. Ownership, wallet and access policy are not delegated."
      }
    },
    "/v1/workspaces/{workspaceId}/website/{templateKey}": {
      "get": {
        "operationId": "get_website",
        "summary": "Website: Read",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "templateKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read editable website content, theme, assets, translations, template layout and its JSON schema. Read this before updating."
      },
      "put": {
        "operationId": "update_website",
        "summary": "Website: Update",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "templateKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update editable website configuration. Use the editable object and editorSchema returned by get_website; readonly meta/template fields are excluded. Partial website updates are supported. Existing template validation applies."
      }
    },
    "/v1/workspaces/{workspaceId}/knowledge": {
      "get": {
        "operationId": "list_knowledge_sources",
        "summary": "Knowledge sources: List",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read private source summaries and publication status, with optional full-text search. Draft bodies load through get_knowledge_source."
      },
      "post": {
        "operationId": "create_knowledge_source",
        "summary": "Knowledge source: Create",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "ARTICLE",
                      "FAQ"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "tr",
                      "de",
                      "es",
                      "fr"
                    ]
                  },
                  "question": {
                    "default": "",
                    "type": "string",
                    "maxLength": 400
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keywords": {
                    "default": [],
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    }
                  },
                  "shareOriginal": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "kind",
                  "title",
                  "language",
                  "question",
                  "body",
                  "keywords",
                  "shareOriginal"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Create an article or FAQ draft. Does not publish."
      }
    },
    "/v1/workspaces/{workspaceId}/knowledge/{id}": {
      "get": {
        "operationId": "get_knowledge_source",
        "summary": "Knowledge source: Read",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read one complete private knowledge draft for review. Current owner and explicit knowledge read scope required."
      },
      "put": {
        "operationId": "update_knowledge_source",
        "summary": "Knowledge source: Update",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "ARTICLE",
                      "FAQ"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "tr",
                      "de",
                      "es",
                      "fr"
                    ]
                  },
                  "question": {
                    "default": "",
                    "type": "string",
                    "maxLength": 400
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keywords": {
                    "default": [],
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    }
                  },
                  "shareOriginal": {
                    "default": false,
                    "type": "boolean"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "kind",
                  "title",
                  "language",
                  "question",
                  "body",
                  "keywords",
                  "shareOriginal",
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update a knowledge draft at its current revision. Published text remains unchanged."
      },
      "delete": {
        "operationId": "delete_knowledge_source",
        "summary": "Knowledge source: Delete permanently",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:publish",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Revoke publication and permanently delete a knowledge source. Originals are tracked for private cleanup."
      }
    },
    "/v1/workspaces/{workspaceId}/business/profile": {
      "get": {
        "operationId": "get_business_profile",
        "summary": "Public business profile: Read",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read the independent public business profile draft and publication status; excludes account and billing identity."
      },
      "put": {
        "operationId": "save_business_profile",
        "summary": "Public business profile: Save draft",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "profile": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 120
                      },
                      "description": {
                        "type": "string",
                        "maxLength": 4000
                      },
                      "supportEmail": {
                        "default": "",
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 254,
                            "format": "email",
                            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "supportPhone": {
                        "default": "",
                        "type": "string",
                        "maxLength": 50,
                        "pattern": "^[+()\\d .-]*$"
                      },
                      "links": {
                        "default": [],
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "label": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 1000,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "label",
                            "url"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "locations": {
                        "default": [],
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 100
                            },
                            "address": {
                              "type": "string",
                              "maxLength": 600
                            },
                            "hours": {
                              "type": "string",
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "name",
                            "address",
                            "hours"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "facts": {
                        "default": [],
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "label": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "label",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "language": {
                        "type": "string",
                        "enum": [
                          "en",
                          "tr",
                          "de",
                          "es",
                          "fr"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "description",
                      "supportEmail",
                      "supportPhone",
                      "links",
                      "locations",
                      "facts",
                      "language"
                    ],
                    "additionalProperties": false
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "profile",
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Save a public profile draft. Does not publish."
      }
    },
    "/v1/workspaces/{workspaceId}/knowledge/{id}/publish": {
      "post": {
        "operationId": "publish_knowledge_source",
        "summary": "Knowledge source: Publish explicitly",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:publish",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Explicitly publish a reviewed source at its current revision."
      }
    },
    "/v1/workspaces/{workspaceId}/business/profile/publish": {
      "post": {
        "operationId": "publish_business_profile",
        "summary": "Public business profile: Publish explicitly",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:publish",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Explicitly publish the public business profile."
      }
    },
    "/v1/workspaces/{workspaceId}/knowledge/{id}/unpublish": {
      "post": {
        "operationId": "unpublish_knowledge_source",
        "summary": "Knowledge source: Unpublish explicitly",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:publish",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Explicitly unpublish a reviewed source at its current revision."
      }
    },
    "/v1/workspaces/{workspaceId}/business/profile/unpublish": {
      "post": {
        "operationId": "unpublish_business_profile",
        "summary": "Public business profile: Unpublish explicitly",
        "tags": [
          "knowledge"
        ],
        "x-required-scope": "knowledge:publish",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Explicitly unpublish the public business profile."
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "get_account",
        "summary": "Account: Read",
        "tags": [
          "Account"
        ],
        "x-required-scope": "account:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read your account profile and workspace creation limit."
      },
      "put": {
        "operationId": "update_account",
        "summary": "Account: Update",
        "tags": [
          "Account"
        ],
        "x-required-scope": "account:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "emailOtpCode": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "language": {
                    "default": "",
                    "type": "string",
                    "maxLength": 24
                  }
                },
                "required": [
                  "name",
                  "email",
                  "phone",
                  "language"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Update your profile. Read it first. Email changes require an email verification code obtained in the dashboard. Roles, verification and workspace limits cannot be changed."
      }
    },
    "/v1/workspaces": {
      "get": {
        "operationId": "list_workspaces",
        "summary": "Workspaces: List",
        "tags": [
          "Account"
        ],
        "x-required-scope": "workspaces:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List your active owned workspaces and creation limit. Use a workspace ID returned here for subsequent workspace tools."
      },
      "post": {
        "operationId": "create_workspace",
        "summary": "Workspace: Create",
        "tags": [
          "Account"
        ],
        "x-required-scope": "workspaces:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "subDomain": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32,
                    "pattern": "^(?!-)[a-z0-9-]+(?<!-)$"
                  },
                  "templateKey": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "support-v1",
                          "support-v2",
                          "support-v3",
                          "support-v4",
                          "ecommerce-v2",
                          "ecommerce-v3",
                          "ecommerce-v4",
                          "cosmetics-v2",
                          "beauty-v1",
                          "beauty-v3",
                          "beauty-v4",
                          "yossco-v1",
                          "textile-v1",
                          "customized"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "experienceMode": {
                    "default": "HOSTED",
                    "type": "string",
                    "enum": [
                      "HOSTED",
                      "ASSISTANT_ONLY"
                    ]
                  },
                  "commerceEnabled": {
                    "type": "boolean"
                  },
                  "knowledgeEnabled": {
                    "type": "boolean"
                  },
                  "businessCategories": {
                    "maxItems": 94,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "ACCOUNTING",
                        "ADVERTISING",
                        "AGRICULTURE",
                        "AI",
                        "AIRLINES",
                        "ANIMAL_CARE",
                        "ANTIQUES",
                        "ARCHITECTURE",
                        "ARTS",
                        "AUTOMOTIVE",
                        "BAKERY",
                        "BANKING",
                        "BEAUTY",
                        "BIOTECHNOLOGY",
                        "BOOKS",
                        "BUSINESS_SERVICES",
                        "CAFE",
                        "CHARITY",
                        "CHEMICALS",
                        "CHILDCARE",
                        "CLEANING",
                        "CLOTHING",
                        "COMPUTERS",
                        "CONSTRUCTION",
                        "CONSULTING",
                        "COSMETICS",
                        "CRAFT_TRADE",
                        "DENTAL",
                        "DISTRIBUTION",
                        "ECOMMERCE",
                        "EDUCATION",
                        "ELECTRONICS",
                        "ENERGY",
                        "ENGINEERING",
                        "ENTERTAINMENT",
                        "ENVIRONMENT",
                        "EVENTS",
                        "FISHING",
                        "FITNESS",
                        "FLORIST",
                        "FOOD",
                        "FORESTRY",
                        "FURNITURE",
                        "GAMING",
                        "GIFTS",
                        "GOVERNMENT",
                        "GROCERY",
                        "HAIR",
                        "HARDWARE",
                        "HEALTHCARE",
                        "HOSPITALITY",
                        "HOUSEHOLD",
                        "IMPORT_EXPORT",
                        "INSURANCE",
                        "INTERIOR_DESIGN",
                        "JEWELRY",
                        "LEGAL",
                        "LOGISTICS",
                        "MANUFACTURING",
                        "MARINE",
                        "MEDIA",
                        "MINING",
                        "MUSEUMS",
                        "MUSIC",
                        "OFFICE",
                        "OPTICS",
                        "PACKAGING",
                        "PARKING",
                        "PERSONAL_SERVICES",
                        "PET_RETAIL",
                        "PHARMACY",
                        "PHOTOGRAPHY",
                        "PROPERTY",
                        "PUBLISHING",
                        "RECRUITMENT",
                        "RELIGION",
                        "RENTAL",
                        "RESEARCH",
                        "RESTAURANTS",
                        "RETAIL",
                        "SECURITY",
                        "SHOES_BAGS",
                        "SOFTWARE",
                        "SPORTS",
                        "STORAGE",
                        "TELECOM",
                        "TEXTILES",
                        "TOBACCO",
                        "TOYS",
                        "TRANSPORT",
                        "TRAVEL",
                        "UNIVERSITIES",
                        "WELLNESS",
                        "OTHER"
                      ]
                    }
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "hostedSitePublished": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "experienceMode",
                  "businessCategories",
                  "hostedSitePublished"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Create a workspace for the account with zero credits, subject to the administrator-configured ownership limit. Choose HOSTED with a template from list_templates or, where enabled, ASSISTANT_ONLY with templateKey=null. Select Commerce/Knowledge capabilities explicitly. Customized websites require a phone number and notify the team."
      }
    },
    "/v1/workspaces/{workspaceId}/feedbacks": {
      "get": {
        "operationId": "list_feedbacks",
        "summary": "Customer feedback: List",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "workspaceId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "userId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "visitor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "ALL",
              "type": "string",
              "enum": [
                "ALL",
                "GUEST",
                "USER"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedbackList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List workspace feedback with pagination, search, visitor and date filters."
      }
    },
    "/v1/workspaces/{workspaceId}/ai-settings": {
      "get": {
        "operationId": "get_ai_settings",
        "summary": "AI settings: Read",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiSettings"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Get the owner-selected AI response level, Knowledge answer policy, revision and credit prices."
      },
      "put": {
        "operationId": "update_ai_settings",
        "summary": "AI settings: Update",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "enum": [
                      "SMART",
                      "SMARTER",
                      "SMARTEST"
                    ]
                  },
                  "answerPolicy": {
                    "type": "string",
                    "enum": [
                      "SOURCE_BASED_REASONING",
                      "SOURCE_ONLY"
                    ]
                  },
                  "revision": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "chatIdleTimeoutSeconds": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "sector": {
                    "type": "string",
                    "enum": [
                      "AUTO",
                      "GENERAL",
                      "BEAUTY",
                      "TEXTILE"
                    ]
                  }
                },
                "required": [
                  "level",
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiSettings"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Owner selects the workspace AI response level and Knowledge answer policy using the current settings revision. Customers cannot override them."
      }
    },
    "/v1/workspaces/{workspaceId}/questions": {
      "get": {
        "operationId": "list_product_questions",
        "summary": "Reusable product questions: List",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionLibrary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List reusable workspace questions."
      },
      "post": {
        "operationId": "create_product_question",
        "summary": "Reusable product question: Create",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductQuestion"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Create a reusable product question."
      }
    },
    "/v1/workspaces/{workspaceId}/questions/{id}": {
      "put": {
        "operationId": "update_product_question",
        "summary": "Reusable product question: Update",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductQuestion"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Edit a reusable question in every assigned product."
      },
      "delete": {
        "operationId": "delete_product_question",
        "summary": "Reusable product question: Delete permanently",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Remove a reusable question and its assignments."
      }
    },
    "/v1/workspaces/{workspaceId}/products/{id}/questions": {
      "get": {
        "operationId": "get_product_questions",
        "summary": "Product question selection: Read",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductQuestionSet"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Get the ordered selection, an intentional empty list, or three template defaults."
      },
      "put": {
        "operationId": "assign_product_questions",
        "summary": "Product question selection: Assign",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "questionIds": {
                    "minItems": 0,
                    "maxItems": 5,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  }
                },
                "required": [
                  "questionIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductQuestionSet"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Assign zero to five workspace question IDs in product-specific order. An empty list hides initial questions."
      },
      "delete": {
        "operationId": "reset_product_questions",
        "summary": "Product question selection: Restore defaults",
        "tags": [
          "products"
        ],
        "x-required-scope": "products:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "const": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Restore the three template defaults for this product."
      }
    },
    "/v1/workspaces/{workspaceId}/usage-report": {
      "get": {
        "operationId": "list_usage_report",
        "summary": "Usage report: Read",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "required": false,
            "schema": {
              "default": "ALL",
              "type": "string",
              "enum": [
                "ALL",
                "HOSTED"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "actorType",
            "in": "query",
            "required": false,
            "schema": {
              "default": "ALL",
              "type": "string",
              "enum": [
                "ALL",
                "AUTH_USER",
                "WORKSPACE_USER",
                "WORKSPACE_KIOSK_DEVICE",
                "GUEST"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "credits",
              "type": "string",
              "enum": [
                "credits",
                "requests",
                "lastUsedAt",
                "name"
              ]
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageReport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read paginated per-user usage, AI credits, models and activity, with date/search/actor filters."
      }
    },
    "/v1/workspaces/{workspaceId}/usage-report/events": {
      "get": {
        "operationId": "list_usage_events",
        "summary": "Activity events: Read",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "required": false,
            "schema": {
              "default": "ALL",
              "type": "string",
              "enum": [
                "ALL",
                "HOSTED"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "actorType",
            "in": "query",
            "required": false,
            "schema": {
              "default": "ALL",
              "type": "string",
              "enum": [
                "ALL",
                "AUTH_USER",
                "WORKSPACE_USER",
                "WORKSPACE_KIOSK_DEVICE",
                "GUEST"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "credits",
              "type": "string",
              "enum": [
                "credits",
                "requests",
                "lastUsedAt",
                "name"
              ]
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageEvents"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read paginated activity events filtered by user/date/actor without internal session or network metadata."
      }
    },
    "/v1/workspaces/{workspaceId}/chatbot-templates": {
      "get": {
        "operationId": "list_chatbot_templates",
        "summary": "Chatbot layouts: List",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "List supported versioned chatbot layouts and their presentation metadata."
      }
    },
    "/v1/workspaces/{workspaceId}/chatbot-template": {
      "put": {
        "operationId": "update_chatbot_template",
        "summary": "Chatbot layout: Update",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "templateKey": {
                    "type": "string",
                    "enum": [
                      "support-v1",
                      "support-v2",
                      "support-v3",
                      "support-v4",
                      "ecommerce-v1",
                      "ecommerce-v2",
                      "ecommerce-v3",
                      "ecommerce-v4",
                      "cosmetics-v1",
                      "cosmetics-v2",
                      "cosmetics-v3",
                      "cosmetics-v4"
                    ]
                  }
                },
                "required": [
                  "templateKey"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list."
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Switch only the chatbot layout, preserving branding, origins, availability, social links and conversations."
      }
    },
    "/v1/workspaces/{workspaceId}/chatbot-settings": {
      "get": {
        "operationId": "get_chatbot_settings",
        "summary": "Chatbot settings: Read",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatbotSettings"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read the workspace chatbot configuration."
      },
      "put": {
        "operationId": "update_chatbot_settings",
        "summary": "Chatbot settings: Update",
        "tags": [
          "website"
        ],
        "x-required-scope": "website:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "templateKey": {
                    "type": "string",
                    "enum": [
                      "support-v1",
                      "support-v2",
                      "support-v3",
                      "support-v4",
                      "ecommerce-v1",
                      "ecommerce-v2",
                      "ecommerce-v3",
                      "ecommerce-v4",
                      "cosmetics-v1",
                      "cosmetics-v2",
                      "cosmetics-v3",
                      "cosmetics-v4"
                    ]
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "templateSettings": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "support-v1",
                        "support-v2",
                        "support-v3",
                        "support-v4",
                        "ecommerce-v1",
                        "ecommerce-v2",
                        "ecommerce-v3",
                        "ecommerce-v4",
                        "cosmetics-v1",
                        "cosmetics-v2",
                        "cosmetics-v3",
                        "cosmetics-v4"
                      ]
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "compactIntro": {
                          "type": "boolean"
                        },
                        "showArticles": {
                          "type": "boolean"
                        },
                        "showContact": {
                          "type": "boolean"
                        },
                        "showProductSearch": {
                          "type": "boolean"
                        },
                        "showRoutine": {
                          "type": "boolean"
                        },
                        "showManualProfile": {
                          "type": "boolean"
                        },
                        "showPhoto": {
                          "type": "boolean"
                        },
                        "density": {
                          "type": "string",
                          "enum": [
                            "comfortable",
                            "compact"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "launcherIcon": {
                    "default": "sparkles",
                    "type": "string",
                    "enum": [
                      "sparkles",
                      "message-circle",
                      "bot",
                      "headset",
                      "help-circle",
                      "shopping-bag",
                      "heart",
                      "flower",
                      "stars",
                      "smile"
                    ]
                  },
                  "launcherDisplay": {
                    "default": "icon-text",
                    "type": "string",
                    "enum": [
                      "icon",
                      "text",
                      "icon-text"
                    ]
                  },
                  "launcherSize": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "small",
                      "medium",
                      "large"
                    ]
                  },
                  "launcherHighlight": {
                    "default": "orbit",
                    "type": "string",
                    "enum": [
                      "none",
                      "orbit",
                      "halo",
                      "pulse",
                      "ripple",
                      "aurora",
                      "gradient",
                      "sparkle",
                      "beacon",
                      "float",
                      "outline"
                    ]
                  },
                  "draggable": {
                    "default": true,
                    "type": "boolean"
                  },
                  "captureMode": {
                    "default": "manual",
                    "type": "string",
                    "enum": [
                      "manual",
                      "automatic"
                    ]
                  },
                  "authenticationMode": {
                    "type": "string",
                    "enum": [
                      "DISABLED",
                      "OPTIONAL",
                      "REQUIRED"
                    ]
                  },
                  "allowedOrigins": {
                    "default": [],
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  },
                  "position": {
                    "default": "bottom-right",
                    "type": "string",
                    "enum": [
                      "bottom-right",
                      "bottom-left"
                    ]
                  },
                  "color": {
                    "default": "#635bff",
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "textColor": {
                    "default": "#ffffff",
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                  },
                  "title": {
                    "default": "Help & Support",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "launcherText": {
                    "default": "Ask AI",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "welcomeText": {
                    "default": "Ask AI a question or choose an available support option.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 600
                  },
                  "placeholder": {
                    "default": "Ask a support question…",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "defaultLanguage": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "tr",
                      "de",
                      "es",
                      "fr"
                    ]
                  },
                  "messages": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "en",
                        "tr",
                        "de",
                        "es",
                        "fr"
                      ]
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "launcherText": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        },
                        "welcomeText": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 600
                        },
                        "placeholder": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      },
                      "required": [
                        "title",
                        "launcherText",
                        "welcomeText",
                        "placeholder"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "productBrowsingEnabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "photoAnalysisEnabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "contactEmailNotifications": {
                    "default": false,
                    "type": "boolean"
                  },
                  "contactForms": {
                    "default": [],
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "fields": {
                          "minItems": 1,
                          "maxItems": 12,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "TEXTAREA",
                                  "EMAIL",
                                  "PHONE",
                                  "SELECT",
                                  "RADIO",
                                  "CHECKBOX",
                                  "BOOLEAN"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              },
                              "options": {
                                "default": [],
                                "maxItems": 12,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                }
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "type",
                              "required",
                              "options"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "translations": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "en",
                              "tr",
                              "de",
                              "es",
                              "fr"
                            ]
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "fields": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_-]{0,39}$"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "options": {
                                      "maxItems": 12,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "label": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          }
                                        },
                                        "required": [
                                          "value",
                                          "label"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "fields",
                        "translations"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "activeContactFormId": {
                    "default": "default",
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "default"
                      },
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    ]
                  },
                  "starterQuestions": {
                    "default": [],
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "translations": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "en",
                              "tr",
                              "de",
                              "es",
                              "fr"
                            ]
                          },
                          "additionalProperties": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          }
                        }
                      },
                      "required": [
                        "id",
                        "text",
                        "translations"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "selectedStarterIds": {
                    "default": [
                      "about",
                      "services",
                      "contact",
                      "getting-started"
                    ],
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    }
                  },
                  "socialLinks": {
                    "default": [],
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "platform": {
                          "type": "string",
                          "enum": [
                            "instagram",
                            "facebook",
                            "youtube",
                            "tiktok",
                            "linkedin",
                            "x",
                            "website"
                          ]
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 2048,
                          "format": "uri"
                        },
                        "visible": {
                          "default": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "platform",
                        "url",
                        "visible"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "offset": {
                    "default": 20,
                    "type": "integer",
                    "minimum": 8,
                    "maximum": 100
                  }
                },
                "required": [
                  "enabled",
                  "templateSettings",
                  "launcherIcon",
                  "launcherDisplay",
                  "launcherSize",
                  "launcherHighlight",
                  "draggable",
                  "captureMode",
                  "allowedOrigins",
                  "position",
                  "color",
                  "textColor",
                  "title",
                  "launcherText",
                  "welcomeText",
                  "placeholder",
                  "defaultLanguage",
                  "messages",
                  "productBrowsingEnabled",
                  "photoAnalysisEnabled",
                  "contactEmailNotifications",
                  "contactForms",
                  "activeContactFormId",
                  "starterQuestions",
                  "selectedStarterIds",
                  "socialLinks",
                  "offset"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatbotSettings"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Configure the opt-in chatbot and exact allowed HTTPS website origins."
      }
    },
    "/v1/workspaces/{workspaceId}/chatbot-analytics": {
      "get": {
        "operationId": "get_chatbot_analytics",
        "summary": "Chatbot analytics: Read",
        "tags": [
          "workspace"
        ],
        "x-required-scope": "workspace:read",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation; resource or paginated resource list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatbotReport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in this workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflicting resource or duplicate identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected service failure. Internal details are hidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Read aggregate chatbot visitors, messages and routine/product usage. Visitor identifiers and message text are never returned."
      }
    },
    "/v1/workspaces/{workspaceId}/media/upload": {
      "post": {
        "operationId": "upload_media_files",
        "tags": [
          "media"
        ],
        "summary": "Image files: Upload",
        "x-required-scope": "media:write",
        "security": [
          {
            "integrationToken": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "files"
                ],
                "properties": {
                  "files": {
                    "type": "array",
                    "maxItems": 12,
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Uploaded media records."
          },
          "400": {
            "description": "Invalid image or input."
          },
          "401": {
            "description": "Invalid token."
          },
          "403": {
            "description": "Missing media:write scope or ownership."
          },
          "413": {
            "description": "File too large."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        },
        "description": "Upload up to 12 raster images (10 MiB per file)."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/bootstrap": {
      "get": {
        "operationId": "storefront_bootstrap",
        "summary": "Visitor access: Initialize",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Bootstrap visitor access, guest token and Turnstile configuration."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/products": {
      "get": {
        "operationId": "storefront_products",
        "summary": "Published products: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/products/{productId}": {
      "get": {
        "operationId": "storefront_products_productId",
        "summary": "Published product: Read",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/products/{productId}/questions": {
      "get": {
        "operationId": "storefront_products_productId_questions",
        "summary": "Published product questions: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/products/slug/{productSlug}": {
      "get": {
        "operationId": "storefront_products_slug_productSlug",
        "summary": "Published product: Read",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "productSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/collections": {
      "get": {
        "operationId": "storefront_collections",
        "summary": "Published collections: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/collections/{collectionId}/products": {
      "get": {
        "operationId": "storefront_collections_collectionId_products",
        "summary": "Collection products: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "collectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/tags": {
      "get": {
        "operationId": "storefront_tags",
        "summary": "Published tags: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/tags/{tagId}/products": {
      "get": {
        "operationId": "storefront_tags_tagId_products",
        "summary": "Published products: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/tags/{tagId}/collections": {
      "get": {
        "operationId": "storefront_tags_tagId_collections",
        "summary": "Published collections: List",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "storefront:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read published catalogue data subject to visitor access policy."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/customer/otp/request": {
      "post": {
        "operationId": "customer_otp_request",
        "summary": "Visitor email code: Request",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "turnstileToken": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  }
                },
                "required": [
                  "name",
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Request a customer email code. Turnstile, email validation and resend limits apply."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/customer/otp/verify": {
      "post": {
        "operationId": "customer_otp_verify",
        "summary": "Visitor email code: Verify",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  }
                },
                "required": [
                  "email",
                  "code"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Verify a one-use customer code and receive a tenant-scoped visitor session. Never a management session."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/customer/session": {
      "get": {
        "operationId": "customer_session",
        "summary": "Visitor session: Read",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read current visitor session status. Supply X-Visitor-Token."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/customer/refresh": {
      "post": {
        "operationId": "customer_refresh",
        "summary": "Visitor session: Renew",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Renew an active tenant visitor session. Supply X-Visitor-Token."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/customer/logout": {
      "post": {
        "operationId": "customer_logout",
        "summary": "Visitor session: Revoke",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Revoke the current visitor session. Supply X-Visitor-Token."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/customer/profile": {
      "get": {
        "operationId": "customer_profile",
        "summary": "Visitor profile: Read",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:read",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read only the visitor public profile fields. Supply X-Visitor-Token."
      },
      "put": {
        "operationId": "customer_profile_update",
        "summary": "Visitor profile: Update",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string",
                    "maxLength": 24
                  }
                },
                "required": [
                  "name",
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Update visitor name, phone and language. Email must remain unchanged; account email changes require account sign-in."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/chat/general": {
      "post": {
        "operationId": "storefront_ai_general",
        "summary": "Business Assistant: Run",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "ai:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "contextToken": {
                    "type": "string",
                    "maxLength": 32000
                  },
                  "threadId": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "turnstileToken": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": [
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Read-only Business Assistant with current published evidence, citations, visitor security and explicit credit accounting. For follow-ups, echo the returned signed threadId and opaque contextToken; never send caller-authored history. Expired or bounded conversation context requires an explicit new chat."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/chat/product": {
      "post": {
        "operationId": "storefront_ai_product",
        "summary": "AI product guidance: Run",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "ai:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "message": {
                    "default": "",
                    "type": "string",
                    "maxLength": 2000
                  },
                  "threadId": {
                    "type": "string",
                    "maxLength": 150
                  },
                  "thinkingLevel": {
                    "type": "string",
                    "enum": [
                      "LOW",
                      "MEDIUM",
                      "HIGH"
                    ]
                  },
                  "images": {
                    "default": [],
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 4194368
                    }
                  },
                  "turnstileToken": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "productId": {
                    "default": "",
                    "type": "string",
                    "maxLength": 128
                  },
                  "productName": {
                    "default": "",
                    "type": "string",
                    "maxLength": 200
                  },
                  "userProfile": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "maxLength": 60
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        },
                        {
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4000
                          }
                        }
                      ]
                    }
                  },
                  "userSelectedRoutineProducts": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "productName": {
                          "type": "string",
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "id",
                        "productName"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "message",
                  "images",
                  "productId",
                  "productName"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Run product AI with visitor access, Turnstile, quotas and atomic workspace credit reservations. Uses real credits."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/chat/routine": {
      "post": {
        "operationId": "storefront_ai_routine",
        "summary": "AI routine guidance: Run",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "ai:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "message": {
                    "default": "",
                    "type": "string",
                    "maxLength": 2000
                  },
                  "threadId": {
                    "type": "string",
                    "maxLength": 150
                  },
                  "thinkingLevel": {
                    "type": "string",
                    "enum": [
                      "LOW",
                      "MEDIUM",
                      "HIGH"
                    ]
                  },
                  "images": {
                    "default": [],
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 4194368
                    }
                  },
                  "turnstileToken": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "userProfile": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "maxLength": 60
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        },
                        {
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4000
                          }
                        }
                      ]
                    }
                  },
                  "userSelectedRoutineProducts": {
                    "default": [],
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "productName": {
                          "type": "string",
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "id",
                        "productName"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "allowAiSuggestions": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "message",
                  "images",
                  "userProfile",
                  "userSelectedRoutineProducts",
                  "allowAiSuggestions"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Run routine AI with visitor access, Turnstile, quotas and atomic workspace credit reservations. Uses real credits."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/chat/analyze-face": {
      "post": {
        "operationId": "storefront_ai_analyze_face",
        "summary": "AI photo analysis: Run",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "ai:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string",
                    "maxLength": 4194368
                  },
                  "turnstileToken": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": [
                  "image"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Run analyze-face AI with visitor access, Turnstile, quotas and atomic workspace credit reservations. Uses real credits."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/threads/{threadId}": {
      "delete": {
        "operationId": "storefront_thread_delete",
        "summary": "Visitor conversation: Delete permanently",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "threadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Delete only a conversation signed for this workspace and visitor."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/feedback": {
      "post": {
        "operationId": "storefront_feedback",
        "summary": "Visitor feedback: Submit",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Submit visitor feedback using the same validated hosted-site contract."
      }
    },
    "/v1/workspaces/{workspaceId}/experience/events": {
      "post": {
        "operationId": "storefront_event",
        "summary": "Visitor activity event: Record",
        "tags": [
          "Customer experience"
        ],
        "security": [
          {
            "integrationToken": []
          }
        ],
        "x-required-scope": "visitors:write",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Visitor-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Tenant-scoped visitor session; never the integration owner credential."
          },
          {
            "name": "X-Guest-Device-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          },
          {
            "name": "X-Guest-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Preserve guest identity across requests."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "eventName": {
                    "type": "string",
                    "enum": [
                      "WEBSITE_VISIT",
                      "PRODUCT_VIEW",
                      "CONTACT_CLICK",
                      "BUY_CLICK",
                      "PHONE_CLICK",
                      "DIRECTION_CLICK",
                      "CUSTOMER_SIGNUP"
                    ]
                  },
                  "productId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "eventName"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Visitor result; chat returns threadId, response and access information where applicable."
          },
          "201": {
            "description": "Visitor event recorded."
          },
          "204": {
            "description": "Submission accepted."
          },
          "400": {
            "description": "Invalid input."
          },
          "401": {
            "description": "Missing/invalid integration or visitor credential."
          },
          "403": {
            "description": "Scope, ownership, visitor policy or credit access denied."
          },
          "429": {
            "description": "Rate limit or visitor quota reached."
          },
          "500": {
            "description": "Safe service error."
          }
        },
        "description": "Record an allowed visitor analytics event. Server validation and actor attribution apply."
      }
    }
  }
}