incele.aiDocumentationGuidesSite web
Français
Ouvrir le tableau de bord

Référence de l’API

Référence de l’API

REST utilise des clés bearer de compte à portée limitée. MCP utilise des jetons OAuth à https://api.incele.ai/mcp. Chaque outil d’espace exige workspaceId au premier niveau ; REST sélectionne l’espace dans le chemin. Les identifiants, autorisations, champs et schémas ci-dessous proviennent du registre actuel de l’API.

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

Produits: Lister

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

Autorisation requise: products:read. Cible de l’autorisation: workspace.

Inclut les produits inactifs ; pagination, recherche et filtres d’état disponibles.

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

Produit: Consulter

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

Autorisation requise: products:read. Cible de l’autorisation: workspace.

Renvoie un produit appartenant à l’espace sélectionné, même s’il est inactif.

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

Produit: Créer

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Champs : name, brand, sku, barcode, stock, status (ACTIVE/INACTIVE/DELETED), description, information, imageIds, tagIds, sales. Les règles métier sont vérifiées.

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

Produit: Modifier

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Consultez d’abord le produit, puis envoyez l’ensemble de ses valeurs modifiables actuelles. Mêmes champs que 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
}

Produit: Supprimer définitivement

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Supprime définitivement le produit et ses associations.

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

Collections: Lister

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

Autorisation requise: collections:read. Cible de l’autorisation: workspace.

Prend en charge la pagination et la recherche.

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

Collection: Créer

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

Champs : name, description, tagIds, imageId. Ajoutez les produits séparément avec 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
}

Collection: Modifier

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

Envoyez toutes les valeurs modifiables actuelles.

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

Collection: Supprimer définitivement

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

La suppression est définitive.

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

Étiquettes: Lister

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

Autorisation requise: tags:read. Cible de l’autorisation: workspace.

Prend en charge la pagination et la recherche.

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

Étiquette: Créer

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

Autorisation requise: tags:write. Cible de l’autorisation: workspace.

Renseignez le champ 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
}

Étiquette: Modifier

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

Autorisation requise: tags:write. Cible de l’autorisation: workspace.

Envoyez toutes les valeurs modifiables actuelles.

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

Étiquette: Supprimer définitivement

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

Autorisation requise: tags:write. Cible de l’autorisation: workspace.

La suppression est définitive.

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

Collection: Consulter

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

Autorisation requise: collections:read. Cible de l’autorisation: workspace.

Inclut les associations de produits et d’étiquettes de la collection.

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

Étiquette: Consulter

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

Autorisation requise: tags:read. Cible de l’autorisation: workspace.

Renvoie l’élément sélectionné.

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

Modèles de site: Lister

list_templates · GET /v1/templates

Autorisation requise: website:read. Cible de l’autorisation: account.

Renvoie uniquement les modèles de site publics disponibles pour créer un espace de travail.

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

Modèles de site de l’espace de travail: Lister

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

Autorisation requise: website:read. Cible de l’autorisation: workspace.

Renvoie les modèles publics et les modèles privés attribués à l’espace de travail sélectionné. Les autorisations d’accès ne modifient pas le modèle sélectionné.

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

Produits d’une collection: Lister

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

Autorisation requise: collections:read. Cible de l’autorisation: workspace.

Renvoie les produits associés à la collection sélectionnée.

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

Produits d’une collection: Ajouter

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

Les deux éléments associés doivent appartenir au même espace de travail.

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

Étiquette d’un produit: Ajouter

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Les deux éléments associés doivent appartenir au même espace de travail.

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

Étiquette d’une collection: Ajouter

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

Les deux éléments associés doivent appartenir au même espace de travail.

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

Produits d’une collection: Retirer l’association

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

Les deux éléments associés doivent appartenir au même espace de travail.

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

Étiquette d’un produit: Retirer l’association

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Les deux éléments associés doivent appartenir au même espace de travail.

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

Étiquette d’une collection: Retirer l’association

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

Autorisation requise: collections:write. Cible de l’autorisation: workspace.

Les deux éléments associés doivent appartenir au même espace de travail.

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

Médias: Lister

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

Autorisation requise: media:read. Cible de l’autorisation: workspace.

Prend en charge la pagination, les informations d’utilisation et la recherche.

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

Médias: Consulter

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

Autorisation requise: media:read. Cible de l’autorisation: workspace.

Renvoie les métadonnées des médias importés.

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

Image: Importer

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

Autorisation requise: media:write. Cible de l’autorisation: workspace.

Envoyez une image en base64, de 3 MiB maximum après décodage. Renvoie l’identifiant du média pour imageIds. REST accepte aussi les envois multipart à /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
}

Image: Remplacer

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

Autorisation requise: media:write. Cible de l’autorisation: workspace.

L’identifiant du média existant est conservé.

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

Médias: Supprimer définitivement

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

Autorisation requise: media:write. Cible de l’autorisation: workspace.

Supprime le média importé et toutes ses références.

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

Espace de travail: Consulter

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

Autorisation requise: workspace:read. Cible de l’autorisation: workspace.

Renvoie le profil, les coordonnées professionnelles et les instructions pour agents de l’espace sélectionné.

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

Espace de travail: Modifier

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

Autorisation requise: workspace:write. Cible de l’autorisation: workspace.

Champs : name, subDomain, billingEmail, billingPhone, billingGsmCountryCode, hostedSitePublished. L’e-mail de facturation nécessite un code de vérification existant. Validation et délais d’attente du sous-domaine s’appliquent. Propriété, portefeuille et règles d’accès ne sont pas délégués.

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

Site web: Consulter

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

Autorisation requise: website:read. Cible de l’autorisation: workspace.

Avant toute modification, consultez le contenu modifiable, le thème, les fichiers, les traductions, la mise en page et le schéma 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
}

Site web: Modifier

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

Autorisation requise: website:write. Cible de l’autorisation: workspace.

Utilisez editable et editorSchema renvoyés par get_website. Les champs meta/template en lecture seule sont exclus. Les mises à jour partielles sont acceptées ; le modèle est validé.

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

Sources de connaissances: Lister

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

Autorisation requise: knowledge:read. Cible de l’autorisation: workspace.

Renvoie les résumés de sources privées et leur état de publication, avec recherche en texte intégral facultative. Chargez les brouillons complets avec 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
}

Source de connaissances: Consulter

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

Autorisation requise: knowledge:read. Cible de l’autorisation: workspace.

Renvoie un brouillon privé complet pour révision. Nécessite le propriétaire actuel et une autorisation explicite de lecture des connaissances.

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

Profil public de l’entreprise: Consulter

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

Autorisation requise: knowledge:read. Cible de l’autorisation: workspace.

Renvoie le brouillon indépendant du profil public et son état de publication. L’identité du compte et de facturation est exclue.

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

Profil public de l’entreprise: Enregistrer le brouillon

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

Autorisation requise: knowledge:write. Cible de l’autorisation: workspace.

Enregistre un brouillon privé sans le publier.

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

Source de connaissances: Créer

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

Autorisation requise: knowledge:write. Cible de l’autorisation: workspace.

Crée un brouillon d’article ou de FAQ sans le publier.

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

Source de connaissances: Modifier

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

Autorisation requise: knowledge:write. Cible de l’autorisation: workspace.

Utilise la révision actuelle du brouillon. Le texte publié reste inchangé.

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

Source de connaissances: Publier explicitement

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

Autorisation requise: knowledge:publish. Cible de l’autorisation: workspace.

Nécessite une action explicite sur la source vérifiée à sa révision actuelle.

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

Profil public de l’entreprise: Publier explicitement

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

Autorisation requise: knowledge:publish. Cible de l’autorisation: workspace.

Modifie la publication uniquement par une opération explicite.

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

Source de connaissances: Dépublier explicitement

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

Autorisation requise: knowledge:publish. Cible de l’autorisation: workspace.

Nécessite une action explicite sur la source vérifiée à sa révision actuelle.

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

Profil public de l’entreprise: Dépublier explicitement

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

Autorisation requise: knowledge:publish. Cible de l’autorisation: workspace.

Modifie la publication uniquement par une opération explicite.

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

Source de connaissances: Supprimer définitivement

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

Autorisation requise: knowledge:publish. Cible de l’autorisation: workspace.

Révoque la publication et supprime définitivement la source. Les originaux sont suivis pour un nettoyage privé.

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

Compte: Consulter

get_account · GET /v1/account

Autorisation requise: account:read. Cible de l’autorisation: account.

Renvoie le profil de votre compte et la limite de création d’espaces.

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

Compte: Modifier

update_account · PUT /v1/account

Autorisation requise: account:write. Cible de l’autorisation: account.

Consultez d’abord le profil. Un changement d’e-mail nécessite un code obtenu dans le tableau de bord. Les rôles, la vérification et les limites d’espaces ne peuvent pas être modifiés.

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

Espaces de travail: Lister

list_workspaces · GET /v1/workspaces

Autorisation requise: workspaces:read. Cible de l’autorisation: account.

Renvoie les espaces actifs dont vous êtes propriétaire et la limite de création. Utilisez un identifiant renvoyé pour les outils suivants.

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

Espace de travail: Créer

create_workspace · POST /v1/workspaces

Autorisation requise: workspaces:write. Cible de l’autorisation: account.

Crée un espace sans crédits, dans la limite de propriété fixée par l’administrateur. Choisissez HOSTED avec un modèle de list_templates ou ASSISTANT_ONLY avec templateKey=null si disponible. Sélectionnez explicitement les capacités Commerce/Knowledge. Les sites personnalisés nécessitent un téléphone et avertissent l’équipe.

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

Avis clients: Lister

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

Autorisation requise: workspace:read. Cible de l’autorisation: workspace.

Prend en charge la pagination, la recherche et les filtres de visiteur et de date.

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

Paramètres d’IA: Consulter

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

Autorisation requise: workspace:read. Cible de l’autorisation: workspace.

Renvoie le niveau de réponse choisi par le propriétaire, la politique de réponse Knowledge, la révision des paramètres et les coûts en crédits.

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

Paramètres d’IA: Modifier

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

Autorisation requise: workspace:write. Cible de l’autorisation: workspace.

Seul le propriétaire choisit le niveau de réponse et la politique Knowledge avec la révision actuelle. Les clients ne peuvent pas les remplacer.

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

Questions produit réutilisables: Lister

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

Autorisation requise: products:read. Cible de l’autorisation: workspace.

La question appartient à cet espace et peut être réutilisée pour plusieurs produits.

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

Question produit réutilisable: Créer

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

La question appartient à cet espace et peut être réutilisée pour plusieurs produits.

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

Question produit réutilisable: Modifier

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Modifie la question réutilisable dans tous les produits auxquels elle est attribuée.

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

Question produit réutilisable: Supprimer définitivement

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Supprime la question réutilisable et toutes ses attributions.

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

Sélection de questions d’un produit: Consulter

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

Autorisation requise: products:read. Cible de l’autorisation: workspace.

Renvoie une sélection ordonnée, une liste volontairement vide ou les trois questions par défaut du modèle.

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

Sélection de questions d’un produit: Attribuer

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Attribuez de zéro à cinq identifiants de questions de l’espace dans l’ordre propre au produit. Une liste vide masque les questions initiales.

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

Sélection de questions d’un produit: Rétablir les valeurs par défaut

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

Autorisation requise: products:write. Cible de l’autorisation: workspace.

Rétablit les trois questions par défaut du modèle du produit.

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

Rapport d’utilisation: Consulter

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

Autorisation requise: workspace:read. Cible de l’autorisation: workspace.

Renvoie l’utilisation par utilisateur, les crédits d’IA, les modèles et l’activité avec pagination et filtres de date, recherche et acteur.

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

Événements d’activité: Consulter

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

Autorisation requise: workspace:read. Cible de l’autorisation: workspace.

Renvoie les événements paginés avec filtres d’utilisateur, date et acteur. Les métadonnées internes de session et de réseau sont exclues.

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

Mises en page du chatbot: Lister

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

Autorisation requise: website:read. Cible de l’autorisation: workspace.

Renvoie les mises en page versionnées prises en charge et leurs métadonnées de présentation.

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

Mise en page du chatbot: Modifier

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

Autorisation requise: website:write. Cible de l’autorisation: workspace.

Modifie uniquement la mise en page. L’identité visuelle, les origines autorisées, la disponibilité, les liens sociaux et les conversations sont conservés.

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

Paramètres du chatbot: Consulter

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

Autorisation requise: website:read. Cible de l’autorisation: workspace.

Renvoie la configuration du chatbot de l’espace sélectionné.

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

Paramètres du chatbot: Modifier

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

Autorisation requise: website:write. Cible de l’autorisation: workspace.

Configure le chatbot activé volontairement et les origines HTTPS exactes autorisées.

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

Statistiques du chatbot: Consulter

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

Autorisation requise: workspace:read. Cible de l’autorisation: workspace.

Renvoie les totaux de visiteurs, messages et usages routine/produit. Aucun identifiant de visiteur ni texte de message n’est renvoyé.

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

Points d’accès de l’expérience client

Consultez le guide de l’expérience client pour les identifiants visiteur et des exemples de requêtes.

Accès visiteur: Initialiser

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

Autorisation requise: storefront:read.

Initialise l’accès visiteur, un jeton invité et la configuration Turnstile.

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

Produits publiés: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Produit publié: Consulter

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Questions publiées d’un produit: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Produit publié: Consulter

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Collections publiées: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Produits d’une collection: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Étiquettes publiées: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Produits publiés: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Collections publiées: Lister

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

Autorisation requise: storefront:read.

Renvoie uniquement les données publiées du catalogue autorisées par les règles d’accès visiteur.

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

Code reçu par e-mail du visiteur: Demander

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

Autorisation requise: visitors:write.

Demande un code par e-mail. Turnstile, validation de l’e-mail et limites de renvoi s’appliquent.

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

Code reçu par e-mail du visiteur: Vérifier

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

Autorisation requise: visitors:write.

Valide un code à usage unique et renvoie une session visiteur limitée au tenant, jamais une session de gestion.

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

Session visiteur: Consulter

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

Autorisation requise: visitors:read.

Fournissez X-Visitor-Token pour la session visiteur du tenant actuel.

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

Session visiteur: Renouveler

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

Autorisation requise: visitors:write.

Fournissez X-Visitor-Token pour la session visiteur du tenant actuel.

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

Session visiteur: Révoquer

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

Autorisation requise: visitors:write.

Fournissez X-Visitor-Token pour la session visiteur du tenant actuel.

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

Profil du visiteur: Consulter

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

Autorisation requise: visitors:read.

Renvoie uniquement les champs publics du profil visiteur. Fournissez X-Visitor-Token.

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

Profil du visiteur: Modifier

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

Autorisation requise: visitors:write.

Modifie le nom, le téléphone et la langue du visiteur. L’e-mail reste inchangé ici ; un changement d’e-mail du compte nécessite une connexion au compte.

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

Assistant d’entreprise: Exécuter

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

Autorisation requise: ai:write.

Utilise les preuves publiées actuelles et les citations, avec sécurité visiteur et décompte explicite des crédits ; lecture seule. Pour les suivis, renvoyez threadId signé et contextToken opaque exactement tels que reçus. N’envoyez jamais d’historique rédigé par l’appelant. Un contexte expiré ou limité exige un nouveau chat explicite.

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

Conseil produit par IA: Exécuter

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

Autorisation requise: ai:write.

Nécessite l’accès visiteur, Turnstile et des quotas, avec réservation atomique des crédits de l’espace. Consomme de vrais crédits.

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

Conseil de routine par IA: Exécuter

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

Autorisation requise: ai:write.

Nécessite l’accès visiteur, Turnstile et des quotas, avec réservation atomique des crédits de l’espace. Consomme de vrais crédits.

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

Analyse photo par IA: Exécuter

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

Autorisation requise: ai:write.

Nécessite l’accès visiteur, Turnstile et des quotas, avec réservation atomique des crédits de l’espace. Consomme de vrais crédits.

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

Conversation du visiteur: Supprimer définitivement

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

Autorisation requise: visitors:write.

Supprime uniquement une conversation signée pour l’espace et le visiteur sélectionnés.

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

Avis du visiteur: Envoyer

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

Autorisation requise: visitors:write.

Utilise le même contrat validé que le site hébergé.

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

Événement d’activité du visiteur: Enregistrer

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

Autorisation requise: visitors:write.

Enregistre uniquement les événements autorisés, avec validation serveur et attribution de l’acteur.

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