incele.aiDocumentazioneGuideSito web
Italiano
Apri il pannello

Riferimento API

Riferimento API

REST usa chiavi bearer dell’account con ambiti limitati. MCP usa token OAuth su https://api.incele.ai/mcp. Ogni strumento di spazio richiede workspaceId al livello principale; REST seleziona lo spazio nel percorso. Identificatori, autorizzazioni, campi e schemi seguenti provengono dal registro attuale dell’API.

URL di base: https://api.incele.ai

Prodotti: Elencare

list_products · GET /v1/workspaces/{workspaceId}/products

Autorizzazione richiesta: products:read. Destinazione dell’autorizzazione: workspace.

Include i prodotti inattivi; supporta paginazione, ricerca e filtri di stato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotto: Leggere

get_product · GET /v1/workspaces/{workspaceId}/products/{id}

Autorizzazione richiesta: products:read. Destinazione dell’autorizzazione: workspace.

Restituisce un prodotto dello spazio selezionato, anche se inattivo.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotto: Creare

create_product · POST /v1/workspaces/{workspaceId}/products

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Campi: name, brand, sku, barcode, stock, status (ACTIVE/INACTIVE/DELETED), description, information, imageIds, tagIds, sales. Si applicano le convalide aziendali.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotto: Aggiornare

update_product · PUT /v1/workspaces/{workspaceId}/products/{id}

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Leggi prima il prodotto, poi invia tutti i valori modificabili aggiornati. Usa gli stessi campi di create_product.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotto: Eliminare definitivamente

delete_product · DELETE /v1/workspaces/{workspaceId}/products/{id}

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Elimina definitivamente il prodotto e le sue associazioni.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Collezioni: Elencare

list_collections · GET /v1/workspaces/{workspaceId}/collections

Autorizzazione richiesta: collections:read. Destinazione dell’autorizzazione: workspace.

Supporta paginazione e ricerca.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Collezione: Creare

create_collection · POST /v1/workspaces/{workspaceId}/collections

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

Campi: name, description, tagIds, imageId. Aggiungi i prodotti separatamente con add_collection_product.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Collezione: Aggiornare

update_collection · PUT /v1/workspaces/{workspaceId}/collections/{id}

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

Invia tutti i valori modificabili aggiornati.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Collezione: Eliminare definitivamente

delete_collection · DELETE /v1/workspaces/{workspaceId}/collections/{id}

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

L’eliminazione è definitiva.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichette: Elencare

list_tags · GET /v1/workspaces/{workspaceId}/tags

Autorizzazione richiesta: tags:read. Destinazione dell’autorizzazione: workspace.

Supporta paginazione e ricerca.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta: Creare

create_tag · POST /v1/workspaces/{workspaceId}/tags

Autorizzazione richiesta: tags:write. Destinazione dell’autorizzazione: workspace.

Fornisci il campo name.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta: Aggiornare

update_tag · PUT /v1/workspaces/{workspaceId}/tags/{id}

Autorizzazione richiesta: tags:write. Destinazione dell’autorizzazione: workspace.

Invia tutti i valori modificabili aggiornati.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "data": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta: Eliminare definitivamente

delete_tag · DELETE /v1/workspaces/{workspaceId}/tags/{id}

Autorizzazione richiesta: tags:write. Destinazione dell’autorizzazione: workspace.

L’eliminazione è definitiva.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Collezione: Leggere

get_collection · GET /v1/workspaces/{workspaceId}/collections/{id}

Autorizzazione richiesta: collections:read. Destinazione dell’autorizzazione: workspace.

Include le associazioni ai prodotti e alle etichette della collezione.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta: Leggere

get_tag · GET /v1/workspaces/{workspaceId}/tags/{id}

Autorizzazione richiesta: tags:read. Destinazione dell’autorizzazione: workspace.

Restituisce il record selezionato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Modelli di sito: Elencare

list_templates · GET /v1/templates

Autorizzazione richiesta: website:read. Destinazione dell’autorizzazione: account.

Restituisce solo i modelli di sito pubblici disponibili per creare uno spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Modelli di sito dello spazio di lavoro: Elencare

list_workspace_templates · GET /v1/workspaces/{workspaceId}/website/templates

Autorizzazione richiesta: website:read. Destinazione dell’autorizzazione: workspace.

Restituisce i modelli pubblici e i modelli privati assegnati allo spazio di lavoro selezionato. La concessione dell’accesso non modifica il design selezionato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotti di una collezione: Elencare

list_collection_products · GET /v1/workspaces/{workspaceId}/collections/{id}/products

Autorizzazione richiesta: collections:read. Destinazione dell’autorizzazione: workspace.

Restituisce i prodotti associati alla collezione selezionata.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "query": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotti di una collezione: Aggiungere

add_collection_product · POST /v1/workspaces/{workspaceId}/collections/{id}/products/{productId}

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

Entrambi i record associati devono appartenere allo stesso spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "productId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "productId",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta di un prodotto: Aggiungere

add_product_tag · POST /v1/workspaces/{workspaceId}/products/{id}/tags/{tagId}

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Entrambi i record associati devono appartenere allo stesso spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "tagId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "tagId",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta di una collezione: Aggiungere

add_collection_tag · POST /v1/workspaces/{workspaceId}/collections/{id}/tags/{tagId}

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

Entrambi i record associati devono appartenere allo stesso spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "tagId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "tagId",
    "workspaceId"
  ],
  "additionalProperties": false
}

Prodotti di una collezione: Rimuovere l’associazione

remove_collection_product · DELETE /v1/workspaces/{workspaceId}/collections/{id}/products/{productId}

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

Entrambi i record associati devono appartenere allo stesso spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "productId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "productId",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta di un prodotto: Rimuovere l’associazione

remove_product_tag · DELETE /v1/workspaces/{workspaceId}/products/{id}/tags/{tagId}

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Entrambi i record associati devono appartenere allo stesso spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "tagId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "tagId",
    "workspaceId"
  ],
  "additionalProperties": false
}

Etichetta di una collezione: Rimuovere l’associazione

remove_collection_tag · DELETE /v1/workspaces/{workspaceId}/collections/{id}/tags/{tagId}

Autorizzazione richiesta: collections:write. Destinazione dell’autorizzazione: workspace.

Entrambi i record associati devono appartenere allo stesso spazio di lavoro.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "tagId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "tagId",
    "workspaceId"
  ],
  "additionalProperties": false
}

File multimediali: Elencare

list_media · GET /v1/workspaces/{workspaceId}/media

Autorizzazione richiesta: media:read. Destinazione dell’autorizzazione: workspace.

Supporta paginazione, informazioni di utilizzo e ricerca.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

File multimediali: Leggere

get_media · GET /v1/workspaces/{workspaceId}/media/{id}

Autorizzazione richiesta: media:read. Destinazione dell’autorizzazione: workspace.

Restituisce i metadati dei file multimediali caricati.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Immagine: Caricare

upload_media · POST /v1/workspaces/{workspaceId}/media

Autorizzazione richiesta: media:write. Destinazione dell’autorizzazione: workspace.

Invia un’immagine base64 di massimo 3 MiB dopo la decodifica. Restituisce l’ID del file per imageIds. REST accetta anche caricamenti multipart su /v1/media/upload.

{
  "$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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "fileName",
    "mimeType",
    "base64",
    "workspaceId"
  ],
  "additionalProperties": false
}

Immagine: Sostituire

replace_media · PUT /v1/workspaces/{workspaceId}/media/{id}

Autorizzazione richiesta: media:write. Destinazione dell’autorizzazione: workspace.

L’ID del file esistente viene mantenuto.

{
  "$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
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "fileName",
    "mimeType",
    "base64",
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

File multimediali: Eliminare definitivamente

delete_media · DELETE /v1/workspaces/{workspaceId}/media/{id}

Autorizzazione richiesta: media:write. Destinazione dell’autorizzazione: workspace.

Rimuove il file caricato e tutti i suoi riferimenti.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Spazio di lavoro: Leggere

get_workspace · GET /v1/workspaces/{workspaceId}/workspace

Autorizzazione richiesta: workspace:read. Destinazione dell’autorizzazione: workspace.

Restituisce profilo, contatti aziendali e istruzioni per gli agenti dello spazio selezionato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Spazio di lavoro: Aggiornare

update_workspace · PUT /v1/workspaces/{workspaceId}/workspace

Autorizzazione richiesta: workspace:write. Destinazione dell’autorizzazione: workspace.

Campi: name, subDomain, billingEmail, billingPhone, billingGsmCountryCode, hostedSitePublished. L’email di fatturazione richiede un codice di verifica esistente. Si applicano convalida e tempi di attesa del sottodominio. Proprietà, portafoglio e criteri di accesso non sono delegati.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Sito web: Leggere

get_website · GET /v1/workspaces/{workspaceId}/website/{templateKey}

Autorizzazione richiesta: website:read. Destinazione dell’autorizzazione: workspace.

Prima di aggiornare, leggi contenuti modificabili, tema, risorse, traduzioni, layout del modello e schema JSON.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "templateKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "templateKey",
    "workspaceId"
  ],
  "additionalProperties": false
}

Sito web: Aggiornare

update_website · PUT /v1/workspaces/{workspaceId}/website/{templateKey}

Autorizzazione richiesta: website:write. Destinazione dell’autorizzazione: workspace.

Usa editable ed editorSchema restituiti da get_website. I campi meta/template di sola lettura sono esclusi. Sono supportati aggiornamenti parziali; si applica la convalida del modello.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "templateKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "data": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "templateKey",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonti di conoscenza: Elencare

list_knowledge_sources · GET /v1/workspaces/{workspaceId}/knowledge

Autorizzazione richiesta: knowledge:read. Destinazione dell’autorizzazione: workspace.

Restituisce riepiloghi delle fonti private e stato di pubblicazione, con ricerca testuale facoltativa. Carica le bozze complete con get_knowledge_source.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "search": {
      "type": "string",
      "maxLength": 200
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonte di conoscenza: Leggere

get_knowledge_source · GET /v1/workspaces/{workspaceId}/knowledge/{id}

Autorizzazione richiesta: knowledge:read. Destinazione dell’autorizzazione: workspace.

Restituisce una bozza privata completa per la revisione. Richiede il proprietario attuale e un ambito esplicito di lettura delle conoscenze.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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)$"
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Profilo pubblico dell’attività: Leggere

get_business_profile · GET /v1/workspaces/{workspaceId}/business/profile

Autorizzazione richiesta: knowledge:read. Destinazione dell’autorizzazione: workspace.

Restituisce la bozza indipendente del profilo pubblico e lo stato di pubblicazione. Esclude identità dell’account e dati di fatturazione.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Profilo pubblico dell’attività: Salvare la bozza

save_business_profile · PUT /v1/workspaces/{workspaceId}/business/profile

Autorizzazione richiesta: knowledge:write. Destinazione dell’autorizzazione: workspace.

Salva una bozza privata senza pubblicarla.

{
  "$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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "profile",
    "revision",
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonte di conoscenza: Creare

create_knowledge_source · POST /v1/workspaces/{workspaceId}/knowledge

Autorizzazione richiesta: knowledge:write. Destinazione dell’autorizzazione: workspace.

Crea una bozza di articolo o FAQ senza pubblicarla.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonte di conoscenza: Aggiornare

update_knowledge_source · PUT /v1/workspaces/{workspaceId}/knowledge/{id}

Autorizzazione richiesta: knowledge:write. Destinazione dell’autorizzazione: workspace.

Usa la revisione attuale della bozza. Il testo pubblicato rimane invariato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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)$"
    },
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonte di conoscenza: Pubblicare esplicitamente

publish_knowledge_source · POST /v1/workspaces/{workspaceId}/knowledge/{id}/publish

Autorizzazione richiesta: knowledge:publish. Destinazione dell’autorizzazione: workspace.

Richiede un’azione esplicita sulla fonte verificata alla revisione attuale.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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)$"
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "revision",
    "workspaceId"
  ],
  "additionalProperties": false
}

Profilo pubblico dell’attività: Pubblicare esplicitamente

publish_business_profile · POST /v1/workspaces/{workspaceId}/business/profile/publish

Autorizzazione richiesta: knowledge:publish. Destinazione dell’autorizzazione: workspace.

Modifica la pubblicazione solo con un’operazione esplicita.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "revision",
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonte di conoscenza: Ritirare esplicitamente

unpublish_knowledge_source · POST /v1/workspaces/{workspaceId}/knowledge/{id}/unpublish

Autorizzazione richiesta: knowledge:publish. Destinazione dell’autorizzazione: workspace.

Richiede un’azione esplicita sulla fonte verificata alla revisione attuale.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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)$"
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "revision",
    "workspaceId"
  ],
  "additionalProperties": false
}

Profilo pubblico dell’attività: Ritirare esplicitamente

unpublish_business_profile · POST /v1/workspaces/{workspaceId}/business/profile/unpublish

Autorizzazione richiesta: knowledge:publish. Destinazione dell’autorizzazione: workspace.

Modifica la pubblicazione solo con un’operazione esplicita.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "revision",
    "workspaceId"
  ],
  "additionalProperties": false
}

Fonte di conoscenza: Eliminare definitivamente

delete_knowledge_source · DELETE /v1/workspaces/{workspaceId}/knowledge/{id}

Autorizzazione richiesta: knowledge:publish. Destinazione dell’autorizzazione: workspace.

Revoca la pubblicazione ed elimina definitivamente la fonte. Gli originali sono tracciati per la pulizia privata.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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)$"
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "revision",
    "workspaceId"
  ],
  "additionalProperties": false
}

Account: Leggere

get_account · GET /v1/account

Autorizzazione richiesta: account:read. Destinazione dell’autorizzazione: account.

Restituisce il profilo dell’account e il limite di creazione degli spazi.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Account: Aggiornare

update_account · PUT /v1/account

Autorizzazione richiesta: account:write. Destinazione dell’autorizzazione: account.

Leggi prima il profilo. Le modifiche all’email richiedono un codice ottenuto nella dashboard. Ruoli, verifica e limiti degli spazi non sono modificabili.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}

Spazi di lavoro: Elencare

list_workspaces · GET /v1/workspaces

Autorizzazione richiesta: workspaces:read. Destinazione dell’autorizzazione: account.

Restituisce gli spazi attivi di tua proprietà e il limite di creazione. Usa uno degli ID restituiti negli strumenti successivi.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {
        "page": 1,
        "pageSize": 25
      },
      "type": "object",
      "properties": {
        "page": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "pageSize": {
          "default": 25,
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "page",
        "pageSize"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Spazio di lavoro: Creare

create_workspace · POST /v1/workspaces

Autorizzazione richiesta: workspaces:write. Destinazione dell’autorizzazione: account.

Crea uno spazio con zero crediti entro il limite di proprietà impostato dall’amministratore. Scegli HOSTED con un modello di list_templates oppure ASSISTANT_ONLY con templateKey=null, se abilitato. Seleziona esplicitamente le capacità Commerce/Knowledge. I siti personalizzati richiedono un telefono e notificano il team.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}

Feedback dei clienti: Elencare

list_feedbacks · GET /v1/workspaces/{workspaceId}/feedbacks

Autorizzazione richiesta: workspace:read. Destinazione dell’autorizzazione: workspace.

Supporta paginazione, ricerca e filtri per visitatore e data.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {
        "page": 1,
        "pageSize": 25,
        "search": "",
        "visitor": "ALL",
        "sortDirection": "desc"
      },
      "type": "object",
      "properties": {
        "page": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "pageSize": {
          "default": 25,
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "search": {
          "default": "",
          "type": "string",
          "maxLength": 200
        },
        "workspaceId": {
          "type": "string",
          "maxLength": 160
        },
        "userId": {
          "type": "string",
          "maxLength": 160
        },
        "visitor": {
          "default": "ALL",
          "type": "string",
          "enum": [
            "ALL",
            "GUEST",
            "USER"
          ]
        },
        "from": {
          "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])))$"
        },
        "to": {
          "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])))$"
        },
        "sortDirection": {
          "default": "desc",
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "required": [
        "page",
        "pageSize",
        "search",
        "visitor",
        "sortDirection"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Impostazioni IA: Leggere

get_ai_settings · GET /v1/workspaces/{workspaceId}/ai-settings

Autorizzazione richiesta: workspace:read. Destinazione dell’autorizzazione: workspace.

Restituisce livello di risposta scelto dal proprietario, criteri di risposta Knowledge, revisione delle impostazioni e prezzi in crediti.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Impostazioni IA: Aggiornare

update_ai_settings · PUT /v1/workspaces/{workspaceId}/ai-settings

Autorizzazione richiesta: workspace:write. Destinazione dell’autorizzazione: workspace.

Solo il proprietario sceglie livello di risposta e criteri Knowledge con la revisione attuale. I clienti non possono modificarli.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Domande prodotto riutilizzabili: Elencare

list_product_questions · GET /v1/workspaces/{workspaceId}/questions

Autorizzazione richiesta: products:read. Destinazione dell’autorizzazione: workspace.

La domanda appartiene a questo spazio e può essere riutilizzata in più prodotti.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Domanda prodotto riutilizzabile: Creare

create_product_question · POST /v1/workspaces/{workspaceId}/questions

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

La domanda appartiene a questo spazio e può essere riutilizzata in più prodotti.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "text"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Domanda prodotto riutilizzabile: Aggiornare

update_product_question · PUT /v1/workspaces/{workspaceId}/questions/{id}

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Modifica la domanda riutilizzabile in tutti i prodotti a cui è assegnata.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "data": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "text"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Domanda prodotto riutilizzabile: Eliminare definitivamente

delete_product_question · DELETE /v1/workspaces/{workspaceId}/questions/{id}

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Rimuove la domanda riutilizzabile e tutte le sue assegnazioni.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Selezione delle domande del prodotto: Leggere

get_product_questions · GET /v1/workspaces/{workspaceId}/products/{id}/questions

Autorizzazione richiesta: products:read. Destinazione dell’autorizzazione: workspace.

Restituisce una selezione ordinata, un elenco intenzionalmente vuoto o le tre domande predefinite del modello.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Selezione delle domande del prodotto: Assegnare

assign_product_questions · PUT /v1/workspaces/{workspaceId}/products/{id}/questions

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Assegna da zero a cinque ID di domande dello spazio nell’ordine specifico del prodotto. Un elenco vuoto nasconde le domande iniziali.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Selezione delle domande del prodotto: Ripristinare i valori predefiniti

reset_product_questions · DELETE /v1/workspaces/{workspaceId}/products/{id}/questions

Autorizzazione richiesta: products:write. Destinazione dell’autorizzazione: workspace.

Ripristina le tre domande predefinite del modello del prodotto.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "id",
    "workspaceId"
  ],
  "additionalProperties": false
}

Rapporto di utilizzo: Leggere

list_usage_report · GET /v1/workspaces/{workspaceId}/usage-report

Autorizzazione richiesta: workspace:read. Destinazione dell’autorizzazione: workspace.

Restituisce utilizzo per utente, crediti IA, modelli e attività con paginazione e filtri per data, ricerca e attore.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {
        "surface": "ALL",
        "page": 1,
        "pageSize": 25,
        "search": "",
        "actorType": "ALL",
        "sortBy": "credits",
        "sortDirection": "desc"
      },
      "type": "object",
      "properties": {
        "surface": {
          "default": "ALL",
          "type": "string",
          "enum": [
            "ALL",
            "HOSTED"
          ]
        },
        "page": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "pageSize": {
          "default": 25,
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "search": {
          "default": "",
          "type": "string",
          "maxLength": 200
        },
        "actorType": {
          "default": "ALL",
          "type": "string",
          "enum": [
            "ALL",
            "AUTH_USER",
            "WORKSPACE_USER",
            "WORKSPACE_KIOSK_DEVICE",
            "GUEST"
          ]
        },
        "from": {
          "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])))$"
        },
        "to": {
          "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])))$"
        },
        "userId": {
          "type": "string",
          "maxLength": 160
        },
        "sortBy": {
          "default": "credits",
          "type": "string",
          "enum": [
            "credits",
            "requests",
            "lastUsedAt",
            "name"
          ]
        },
        "sortDirection": {
          "default": "desc",
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "required": [
        "surface",
        "page",
        "pageSize",
        "search",
        "actorType",
        "sortBy",
        "sortDirection"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Eventi di attività: Leggere

list_usage_events · GET /v1/workspaces/{workspaceId}/usage-report/events

Autorizzazione richiesta: workspace:read. Destinazione dell’autorizzazione: workspace.

Restituisce eventi paginati con filtri per utente, data e attore. Esclude i metadati interni di sessione e rete.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": {
        "surface": "ALL",
        "page": 1,
        "pageSize": 25,
        "search": "",
        "actorType": "ALL",
        "sortBy": "credits",
        "sortDirection": "desc"
      },
      "type": "object",
      "properties": {
        "surface": {
          "default": "ALL",
          "type": "string",
          "enum": [
            "ALL",
            "HOSTED"
          ]
        },
        "page": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "pageSize": {
          "default": 25,
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "search": {
          "default": "",
          "type": "string",
          "maxLength": 200
        },
        "actorType": {
          "default": "ALL",
          "type": "string",
          "enum": [
            "ALL",
            "AUTH_USER",
            "WORKSPACE_USER",
            "WORKSPACE_KIOSK_DEVICE",
            "GUEST"
          ]
        },
        "from": {
          "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])))$"
        },
        "to": {
          "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])))$"
        },
        "userId": {
          "type": "string",
          "maxLength": 160
        },
        "sortBy": {
          "default": "credits",
          "type": "string",
          "enum": [
            "credits",
            "requests",
            "lastUsedAt",
            "name"
          ]
        },
        "sortDirection": {
          "default": "desc",
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "required": [
        "surface",
        "page",
        "pageSize",
        "search",
        "actorType",
        "sortBy",
        "sortDirection"
      ],
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Layout del chatbot: Elencare

list_chatbot_templates · GET /v1/workspaces/{workspaceId}/chatbot-templates

Autorizzazione richiesta: website:read. Destinazione dell’autorizzazione: workspace.

Restituisce i layout versionati supportati e i relativi metadati di presentazione.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Layout del chatbot: Aggiornare

update_chatbot_template · PUT /v1/workspaces/{workspaceId}/chatbot-template

Autorizzazione richiesta: website:write. Destinazione dell’autorizzazione: workspace.

Modifica solo il layout. Mantiene identità del marchio, origini consentite, disponibilità, collegamenti social e conversazioni.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Impostazioni del chatbot: Leggere

get_chatbot_settings · GET /v1/workspaces/{workspaceId}/chatbot-settings

Autorizzazione richiesta: website:read. Destinazione dell’autorizzazione: workspace.

Restituisce la configurazione del chatbot dello spazio selezionato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "workspaceId"
  ],
  "additionalProperties": false
}

Impostazioni del chatbot: Aggiornare

update_chatbot_settings · PUT /v1/workspaces/{workspaceId}/chatbot-settings

Autorizzazione richiesta: website:write. Destinazione dell’autorizzazione: workspace.

Configura il chatbot attivato esplicitamente e le origini HTTPS esatte consentite del sito.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "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
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "data",
    "workspaceId"
  ],
  "additionalProperties": false
}

Statistiche del chatbot: Leggere

get_chatbot_analytics · GET /v1/workspaces/{workspaceId}/chatbot-analytics

Autorizzazione richiesta: workspace:read. Destinazione dell’autorizzazione: workspace.

Restituisce dati aggregati su visitatori, messaggi e utilizzo di routine/prodotti. Non restituisce mai identificativi dei visitatori o testi dei messaggi.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "object",
      "properties": {
        "from": {
          "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])))$"
        },
        "to": {
          "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])))$"
        },
        "origin": {
          "type": "string",
          "maxLength": 300
        }
      },
      "additionalProperties": false
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "query",
    "workspaceId"
  ],
  "additionalProperties": false
}

Endpoint dell’esperienza cliente

Consulta la guida all’esperienza cliente per le credenziali visitatore e gli esempi di richieste.

Accesso visitatori: Inizializzare

storefront_bootstrap · GET /v1/workspaces/{workspaceId}/experience/bootstrap

Autorizzazione richiesta: storefront:read.

Inizializza accesso visitatori, token ospite e configurazione Turnstile.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Prodotti pubblicati: Elencare

storefront_products · GET /v1/workspaces/{workspaceId}/experience/products

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Prodotto pubblicato: Leggere

storefront_products_productId · GET /v1/workspaces/{workspaceId}/experience/products/{productId}

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Domande pubblicate del prodotto: Elencare

storefront_products_productId_questions · GET /v1/workspaces/{workspaceId}/experience/products/{productId}/questions

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Prodotto pubblicato: Leggere

storefront_products_slug_productSlug · GET /v1/workspaces/{workspaceId}/experience/products/slug/{productSlug}

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Collezioni pubblicate: Elencare

storefront_collections · GET /v1/workspaces/{workspaceId}/experience/collections

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Prodotti di una collezione: Elencare

storefront_collections_collectionId_products · GET /v1/workspaces/{workspaceId}/experience/collections/{collectionId}/products

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Etichette pubblicate: Elencare

storefront_tags · GET /v1/workspaces/{workspaceId}/experience/tags

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Prodotti pubblicati: Elencare

storefront_tags_tagId_products · GET /v1/workspaces/{workspaceId}/experience/tags/{tagId}/products

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Collezioni pubblicate: Elencare

storefront_tags_tagId_collections · GET /v1/workspaces/{workspaceId}/experience/tags/{tagId}/collections

Autorizzazione richiesta: storefront:read.

Restituisce solo i dati pubblicati del catalogo consentiti dai criteri di accesso visitatori.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Codice email del visitatore: Richiedere

customer_otp_request · POST /v1/workspaces/{workspaceId}/experience/customer/otp/request

Autorizzazione richiesta: visitors:write.

Richiede un codice email. Si applicano Turnstile, convalida dell’email e limiti di reinvio.

{
  "$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
}

Codice email del visitatore: Verificare

customer_otp_verify · POST /v1/workspaces/{workspaceId}/experience/customer/otp/verify

Autorizzazione richiesta: visitors:write.

Convalida un codice monouso e restituisce una sessione visitatore limitata al tenant, mai una sessione di gestione.

{
  "$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
}

Sessione visitatore: Leggere

customer_session · GET /v1/workspaces/{workspaceId}/experience/customer/session

Autorizzazione richiesta: visitors:read.

Fornisci X-Visitor-Token per la sessione visitatore del tenant attuale.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Sessione visitatore: Rinnovare

customer_refresh · POST /v1/workspaces/{workspaceId}/experience/customer/refresh

Autorizzazione richiesta: visitors:write.

Fornisci X-Visitor-Token per la sessione visitatore del tenant attuale.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Sessione visitatore: Revocare

customer_logout · POST /v1/workspaces/{workspaceId}/experience/customer/logout

Autorizzazione richiesta: visitors:write.

Fornisci X-Visitor-Token per la sessione visitatore del tenant attuale.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Profilo del visitatore: Leggere

customer_profile · GET /v1/workspaces/{workspaceId}/experience/customer/profile

Autorizzazione richiesta: visitors:read.

Restituisce solo i campi pubblici del profilo visitatore. Fornisci X-Visitor-Token.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Profilo del visitatore: Aggiornare

customer_profile_update · PUT /v1/workspaces/{workspaceId}/experience/customer/profile

Autorizzazione richiesta: visitors:write.

Aggiorna nome, telefono e lingua del visitatore. L’email non è modificabile qui; le modifiche all’email dell’account richiedono l’accesso all’account.

{
  "$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
}

Assistente aziendale: Eseguire

storefront_ai_general · POST /v1/workspaces/{workspaceId}/experience/chat/general

Autorizzazione richiesta: ai:write.

Usa prove pubblicate aggiornate e citazioni, con sicurezza dei visitatori e conteggio esplicito dei crediti; sola lettura. Nei messaggi successivi restituisci threadId firmato e contextToken opaco esattamente come ricevuti. Non inviare mai cronologie create dal chiamante. Un contesto scaduto o limitato richiede una nuova chat esplicita.

{
  "$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
}

Consigli sui prodotti con IA: Eseguire

storefront_ai_product · POST /v1/workspaces/{workspaceId}/experience/chat/product

Autorizzazione richiesta: ai:write.

Richiede accesso visitatori, Turnstile e quote, con prenotazione atomica dei crediti dello spazio. Consuma crediti reali.

{
  "$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
}

Consigli sulle routine con IA: Eseguire

storefront_ai_routine · POST /v1/workspaces/{workspaceId}/experience/chat/routine

Autorizzazione richiesta: ai:write.

Richiede accesso visitatori, Turnstile e quote, con prenotazione atomica dei crediti dello spazio. Consuma crediti reali.

{
  "$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
}

Analisi fotografica con IA: Eseguire

storefront_ai_analyze_face · POST /v1/workspaces/{workspaceId}/experience/chat/analyze-face

Autorizzazione richiesta: ai:write.

Richiede accesso visitatori, Turnstile e quote, con prenotazione atomica dei crediti dello spazio. Consuma crediti reali.

{
  "$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
}

Conversazione del visitatore: Eliminare definitivamente

storefront_thread_delete · DELETE /v1/workspaces/{workspaceId}/experience/threads/{threadId}

Autorizzazione richiesta: visitors:write.

Elimina solo una conversazione firmata per lo spazio e il visitatore selezionati.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Feedback del visitatore: Inviare

storefront_feedback · POST /v1/workspaces/{workspaceId}/experience/feedback

Autorizzazione richiesta: visitors:write.

Usa lo stesso contratto convalidato del sito ospitato.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    }
  },
  "required": [
    "message"
  ],
  "additionalProperties": false
}

Evento di attività del visitatore: Registrare

storefront_event · POST /v1/workspaces/{workspaceId}/experience/events

Autorizzazione richiesta: visitors:write.

Registra solo gli eventi consentiti, con convalida del server e attribuzione dell’attore.

{
  "$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
}