Referencia de la API
REST usa claves bearer de cuenta con permisos limitados. MCP usa tokens OAuth en https://api.incele.ai/mcp. Cada herramienta de espacio requiere workspaceId en el nivel superior; REST selecciona el espacio en la ruta. Los identificadores, permisos, campos y esquemas siguientes proceden del registro actual de la API.
URL base: https://api.incele.ai
Productos: Listar
list_products · GET /v1/workspaces/{workspaceId}/products
Permiso necesario: products:read. Destino de autorización: workspace.
Incluye productos inactivos; admite paginación, búsqueda y filtros de estado.
{
"$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
}
Producto: Consultar
get_product · GET /v1/workspaces/{workspaceId}/products/{id}
Permiso necesario: products:read. Destino de autorización: workspace.
Devuelve un producto del espacio de trabajo seleccionado, aunque esté inactivo.
{
"$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
}
Producto: Crear
create_product · POST /v1/workspaces/{workspaceId}/products
Permiso necesario: products:write. Destino de autorización: workspace.
Campos: name, brand, sku, barcode, stock, status (ACTIVE/INACTIVE/DELETED), description, information, imageIds, tagIds, sales. Se aplica la validación de negocio.
{
"$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
}
Producto: Actualizar
update_product · PUT /v1/workspaces/{workspaceId}/products/{id}
Permiso necesario: products:write. Destino de autorización: workspace.
Consulta primero el producto y envía todos sus valores editables actuales. Usa los mismos campos 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
}
Producto: Eliminar definitivamente
delete_product · DELETE /v1/workspaces/{workspaceId}/products/{id}
Permiso necesario: products:write. Destino de autorización: workspace.
Elimina definitivamente el producto y sus asociaciones.
{
"$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
}
Colecciones: Listar
list_collections · GET /v1/workspaces/{workspaceId}/collections
Permiso necesario: collections:read. Destino de autorización: workspace.
Admite paginación y búsqueda.
{
"$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
}
Colección: Crear
create_collection · POST /v1/workspaces/{workspaceId}/collections
Permiso necesario: collections:write. Destino de autorización: workspace.
Campos: name, description, tagIds, imageId. Añade los productos por separado con add_collection_product.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"default": "",
"type": "string",
"maxLength": 100000
},
"imageId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 160
},
{
"type": "null"
}
]
},
"tagIds": {
"default": [],
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
}
},
"required": [
"name",
"description",
"tagIds"
],
"additionalProperties": false
},
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"data",
"workspaceId"
],
"additionalProperties": false
}
Colección: Actualizar
update_collection · PUT /v1/workspaces/{workspaceId}/collections/{id}
Permiso necesario: collections:write. Destino de autorización: workspace.
Envía todos los valores editables actuales.
{
"$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
}
Colección: Eliminar definitivamente
delete_collection · DELETE /v1/workspaces/{workspaceId}/collections/{id}
Permiso necesario: collections:write. Destino de autorización: workspace.
La eliminación es permanente.
{
"$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
}
Etiquetas: Listar
list_tags · GET /v1/workspaces/{workspaceId}/tags
Permiso necesario: tags:read. Destino de autorización: workspace.
Admite paginación y búsqueda.
{
"$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
}
Etiqueta: Crear
create_tag · POST /v1/workspaces/{workspaceId}/tags
Permiso necesario: tags:write. Destino de autorización: workspace.
Indica el campo name.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"name"
],
"additionalProperties": false
},
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"data",
"workspaceId"
],
"additionalProperties": false
}
Etiqueta: Actualizar
update_tag · PUT /v1/workspaces/{workspaceId}/tags/{id}
Permiso necesario: tags:write. Destino de autorización: workspace.
Envía todos los valores editables actuales.
{
"$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
}
Etiqueta: Eliminar definitivamente
delete_tag · DELETE /v1/workspaces/{workspaceId}/tags/{id}
Permiso necesario: tags:write. Destino de autorización: workspace.
La eliminación es permanente.
{
"$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
}
Colección: Consultar
get_collection · GET /v1/workspaces/{workspaceId}/collections/{id}
Permiso necesario: collections:read. Destino de autorización: workspace.
Incluye las asociaciones de productos y etiquetas de la colección.
{
"$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
}
Etiqueta: Consultar
get_tag · GET /v1/workspaces/{workspaceId}/tags/{id}
Permiso necesario: tags:read. Destino de autorización: workspace.
Devuelve el registro seleccionado.
{
"$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
}
Plantillas web: Listar
list_templates · GET /v1/templates
Permiso necesario: website:read. Destino de autorización: account.
Devuelve solo las plantillas web públicas disponibles para crear un espacio de trabajo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Plantillas web del espacio de trabajo: Listar
list_workspace_templates · GET /v1/workspaces/{workspaceId}/website/templates
Permiso necesario: website:read. Destino de autorización: workspace.
Devuelve las plantillas públicas y las privadas asignadas al espacio de trabajo seleccionado. Conceder acceso no cambia el diseño seleccionado.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Productos de una colección: Listar
list_collection_products · GET /v1/workspaces/{workspaceId}/collections/{id}/products
Permiso necesario: collections:read. Destino de autorización: workspace.
Devuelve los productos asociados a la colección seleccionada.
{
"$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
}
Productos de una colección: Añadir
add_collection_product · POST /v1/workspaces/{workspaceId}/collections/{id}/products/{productId}
Permiso necesario: collections:write. Destino de autorización: workspace.
Ambos registros asociados deben pertenecer al mismo espacio de trabajo.
{
"$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
}
Etiqueta de producto: Añadir
add_product_tag · POST /v1/workspaces/{workspaceId}/products/{id}/tags/{tagId}
Permiso necesario: products:write. Destino de autorización: workspace.
Ambos registros asociados deben pertenecer al mismo espacio de trabajo.
{
"$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
}
Etiqueta de colección: Añadir
add_collection_tag · POST /v1/workspaces/{workspaceId}/collections/{id}/tags/{tagId}
Permiso necesario: collections:write. Destino de autorización: workspace.
Ambos registros asociados deben pertenecer al mismo espacio de trabajo.
{
"$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
}
Productos de una colección: Quitar asociación
remove_collection_product · DELETE /v1/workspaces/{workspaceId}/collections/{id}/products/{productId}
Permiso necesario: collections:write. Destino de autorización: workspace.
Ambos registros asociados deben pertenecer al mismo espacio de trabajo.
{
"$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
}
Etiqueta de producto: Quitar asociación
remove_product_tag · DELETE /v1/workspaces/{workspaceId}/products/{id}/tags/{tagId}
Permiso necesario: products:write. Destino de autorización: workspace.
Ambos registros asociados deben pertenecer al mismo espacio de trabajo.
{
"$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
}
Etiqueta de colección: Quitar asociación
remove_collection_tag · DELETE /v1/workspaces/{workspaceId}/collections/{id}/tags/{tagId}
Permiso necesario: collections:write. Destino de autorización: workspace.
Ambos registros asociados deben pertenecer al mismo espacio de trabajo.
{
"$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
}
Archivos multimedia: Listar
list_media · GET /v1/workspaces/{workspaceId}/media
Permiso necesario: media:read. Destino de autorización: workspace.
Admite paginación, información de uso y búsqueda.
{
"$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
}
Archivos multimedia: Consultar
get_media · GET /v1/workspaces/{workspaceId}/media/{id}
Permiso necesario: media:read. Destino de autorización: workspace.
Devuelve los metadatos del archivo multimedia subido.
{
"$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
}
Imagen: Subir
upload_media · POST /v1/workspaces/{workspaceId}/media
Permiso necesario: media:write. Destino de autorización: workspace.
Envía una imagen en base64, de hasta 3 MiB una vez decodificada. Devuelve el ID multimedia para imageIds. REST también admite cargas multipart en /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
}
Imagen: Reemplazar
replace_media · PUT /v1/workspaces/{workspaceId}/media/{id}
Permiso necesario: media:write. Destino de autorización: workspace.
Conserva el ID multimedia existente.
{
"$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
}
Archivos multimedia: Eliminar definitivamente
delete_media · DELETE /v1/workspaces/{workspaceId}/media/{id}
Permiso necesario: media:write. Destino de autorización: workspace.
Elimina el archivo subido y todas sus referencias.
{
"$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
}
Espacio de trabajo: Consultar
get_workspace · GET /v1/workspaces/{workspaceId}/workspace
Permiso necesario: workspace:read. Destino de autorización: workspace.
Devuelve el perfil, los datos de contacto de empresa y las instrucciones para agentes del espacio seleccionado.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Espacio de trabajo: Actualizar
update_workspace · PUT /v1/workspaces/{workspaceId}/workspace
Permiso necesario: workspace:write. Destino de autorización: workspace.
Campos: name, subDomain, billingEmail, billingPhone, billingGsmCountryCode, hostedSitePublished. El correo de facturación requiere un código de verificación existente. Se validan el subdominio y sus tiempos de espera. No se delegan propiedad, saldo ni política de acceso.
{
"$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
}
Sitio web: Consultar
get_website · GET /v1/workspaces/{workspaceId}/website/{templateKey}
Permiso necesario: website:read. Destino de autorización: workspace.
Antes de actualizar, consulta el contenido editable, tema, archivos, traducciones, diseño de plantilla y esquema 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
}
Sitio web: Actualizar
update_website · PUT /v1/workspaces/{workspaceId}/website/{templateKey}
Permiso necesario: website:write. Destino de autorización: workspace.
Usa editable y editorSchema devueltos por get_website. Se excluyen los campos meta/template de solo lectura. Admite cambios parciales y aplica la validación de plantilla.
{
"$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
}
Fuentes de conocimiento: Listar
list_knowledge_sources · GET /v1/workspaces/{workspaceId}/knowledge
Permiso necesario: knowledge:read. Destino de autorización: workspace.
Devuelve resúmenes de fuentes privadas y estado de publicación, con búsqueda de texto completo opcional. Carga los borradores completos con get_knowledge_source.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"search": {
"type": "string",
"maxLength": 200
},
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Fuente de conocimiento: Consultar
get_knowledge_source · GET /v1/workspaces/{workspaceId}/knowledge/{id}
Permiso necesario: knowledge:read. Destino de autorización: workspace.
Devuelve un borrador privado completo para revisarlo. Requiere al propietario actual y un permiso explícito de lectura de conocimiento.
{
"$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
}
Perfil público de empresa: Consultar
get_business_profile · GET /v1/workspaces/{workspaceId}/business/profile
Permiso necesario: knowledge:read. Destino de autorización: workspace.
Devuelve el borrador independiente del perfil público y su estado de publicación. Excluye la identidad de cuenta y facturación.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Perfil público de empresa: Guardar borrador
save_business_profile · PUT /v1/workspaces/{workspaceId}/business/profile
Permiso necesario: knowledge:write. Destino de autorización: workspace.
Guarda un borrador privado sin publicarlo.
{
"$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
}
Fuente de conocimiento: Crear
create_knowledge_source · POST /v1/workspaces/{workspaceId}/knowledge
Permiso necesario: knowledge:write. Destino de autorización: workspace.
Crea un borrador de artículo o preguntas frecuentes sin publicarlo.
{
"$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
}
Fuente de conocimiento: Actualizar
update_knowledge_source · PUT /v1/workspaces/{workspaceId}/knowledge/{id}
Permiso necesario: knowledge:write. Destino de autorización: workspace.
Usa la revisión actual del borrador. El texto publicado no cambia.
{
"$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
}
Fuente de conocimiento: Publicar expresamente
publish_knowledge_source · POST /v1/workspaces/{workspaceId}/knowledge/{id}/publish
Permiso necesario: knowledge:publish. Destino de autorización: workspace.
Requiere una acción expresa sobre la fuente revisada y su revisión actual.
{
"$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
}
Perfil público de empresa: Publicar expresamente
publish_business_profile · POST /v1/workspaces/{workspaceId}/business/profile/publish
Permiso necesario: knowledge:publish. Destino de autorización: workspace.
Cambia la publicación únicamente mediante una operación expresa.
{
"$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
}
Fuente de conocimiento: Retirar expresamente
unpublish_knowledge_source · POST /v1/workspaces/{workspaceId}/knowledge/{id}/unpublish
Permiso necesario: knowledge:publish. Destino de autorización: workspace.
Requiere una acción expresa sobre la fuente revisada y su revisión actual.
{
"$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
}
Perfil público de empresa: Retirar expresamente
unpublish_business_profile · POST /v1/workspaces/{workspaceId}/business/profile/unpublish
Permiso necesario: knowledge:publish. Destino de autorización: workspace.
Cambia la publicación únicamente mediante una operación expresa.
{
"$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
}
Fuente de conocimiento: Eliminar definitivamente
delete_knowledge_source · DELETE /v1/workspaces/{workspaceId}/knowledge/{id}
Permiso necesario: knowledge:publish. Destino de autorización: workspace.
Retira la publicación y elimina definitivamente la fuente. Los originales se registran para su limpieza privada.
{
"$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
}
Cuenta: Consultar
get_account · GET /v1/account
Permiso necesario: account:read. Destino de autorización: account.
Devuelve el perfil de tu cuenta y el límite de creación de espacios.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Cuenta: Actualizar
update_account · PUT /v1/account
Permiso necesario: account:write. Destino de autorización: account.
Consulta primero el perfil. Cambiar el correo requiere un código de verificación obtenido en el panel. No permite cambiar roles, verificación ni límites de espacios.
{
"$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
}
Espacios de trabajo: Listar
list_workspaces · GET /v1/workspaces
Permiso necesario: workspaces:read. Destino de autorización: account.
Devuelve tus espacios activos y el límite de creación. Usa uno de los ID devueltos en las herramientas posteriores.
{
"$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
}
Espacio de trabajo: Crear
create_workspace · POST /v1/workspaces
Permiso necesario: workspaces:write. Destino de autorización: account.
Crea un espacio sin créditos, sujeto al límite de propiedad del administrador. Elige HOSTED con una plantilla de list_templates o ASSISTANT_ONLY con templateKey=null si está habilitado. Selecciona expresamente las capacidades Commerce/Knowledge. Los sitios personalizados requieren teléfono y notifican al equipo.
{
"$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
}
Comentarios de clientes: Listar
list_feedbacks · GET /v1/workspaces/{workspaceId}/feedbacks
Permiso necesario: workspace:read. Destino de autorización: workspace.
Admite paginación, búsqueda y filtros de visitante y fecha.
{
"$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
}
Ajustes de IA: Consultar
get_ai_settings · GET /v1/workspaces/{workspaceId}/ai-settings
Permiso necesario: workspace:read. Destino de autorización: workspace.
Devuelve el nivel de respuesta elegido por el propietario, la política de respuestas de Knowledge, la revisión de ajustes y los precios en créditos.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Ajustes de IA: Actualizar
update_ai_settings · PUT /v1/workspaces/{workspaceId}/ai-settings
Permiso necesario: workspace:write. Destino de autorización: workspace.
Solo el propietario elige el nivel de respuesta y la política de Knowledge con la revisión actual. Los clientes no pueden anularlos.
{
"$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
}
Preguntas de producto reutilizables: Listar
list_product_questions · GET /v1/workspaces/{workspaceId}/questions
Permiso necesario: products:read. Destino de autorización: workspace.
La pregunta pertenece a este espacio y puede reutilizarse en varios productos.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Pregunta de producto reutilizable: Crear
create_product_question · POST /v1/workspaces/{workspaceId}/questions
Permiso necesario: products:write. Destino de autorización: workspace.
La pregunta pertenece a este espacio y puede reutilizarse en varios productos.
{
"$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
}
Pregunta de producto reutilizable: Actualizar
update_product_question · PUT /v1/workspaces/{workspaceId}/questions/{id}
Permiso necesario: products:write. Destino de autorización: workspace.
Modifica la pregunta reutilizable en todos los productos a los que está asignada.
{
"$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
}
Pregunta de producto reutilizable: Eliminar definitivamente
delete_product_question · DELETE /v1/workspaces/{workspaceId}/questions/{id}
Permiso necesario: products:write. Destino de autorización: workspace.
Elimina la pregunta reutilizable y todas sus asignaciones.
{
"$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
}
Selección de preguntas del producto: Consultar
get_product_questions · GET /v1/workspaces/{workspaceId}/products/{id}/questions
Permiso necesario: products:read. Destino de autorización: workspace.
Devuelve una selección ordenada, una lista vacía intencional o las tres preguntas predeterminadas de la plantilla.
{
"$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
}
Selección de preguntas del producto: Asignar
assign_product_questions · PUT /v1/workspaces/{workspaceId}/products/{id}/questions
Permiso necesario: products:write. Destino de autorización: workspace.
Asigna entre cero y cinco ID de preguntas del espacio en el orden específico del producto. Una lista vacía oculta las preguntas iniciales.
{
"$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
}
Selección de preguntas del producto: Restaurar valores predeterminados
reset_product_questions · DELETE /v1/workspaces/{workspaceId}/products/{id}/questions
Permiso necesario: products:write. Destino de autorización: workspace.
Restaura las tres preguntas predeterminadas de la plantilla del producto.
{
"$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
}
Informe de uso: Consultar
list_usage_report · GET /v1/workspaces/{workspaceId}/usage-report
Permiso necesario: workspace:read. Destino de autorización: workspace.
Devuelve uso por usuario, créditos de IA, modelos y actividad paginados, con filtros de fecha, búsqueda y actor.
{
"$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
}
Eventos de actividad: Consultar
list_usage_events · GET /v1/workspaces/{workspaceId}/usage-report/events
Permiso necesario: workspace:read. Destino de autorización: workspace.
Devuelve eventos paginados con filtros de usuario, fecha y actor. Excluye metadatos internos de sesión y red.
{
"$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
}
Diseños del chatbot: Listar
list_chatbot_templates · GET /v1/workspaces/{workspaceId}/chatbot-templates
Permiso necesario: website:read. Destino de autorización: workspace.
Devuelve los diseños versionados compatibles y sus metadatos de presentación.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Diseño del chatbot: Actualizar
update_chatbot_template · PUT /v1/workspaces/{workspaceId}/chatbot-template
Permiso necesario: website:write. Destino de autorización: workspace.
Cambia solo el diseño. Conserva la marca, los orígenes permitidos, la disponibilidad, los enlaces sociales y las conversaciones.
{
"$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
}
Ajustes del chatbot: Consultar
get_chatbot_settings · GET /v1/workspaces/{workspaceId}/chatbot-settings
Permiso necesario: website:read. Destino de autorización: workspace.
Devuelve la configuración del chatbot del espacio seleccionado.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"required": [
"workspaceId"
],
"additionalProperties": false
}
Ajustes del chatbot: Actualizar
update_chatbot_settings · PUT /v1/workspaces/{workspaceId}/chatbot-settings
Permiso necesario: website:write. Destino de autorización: workspace.
Configura el chatbot opcional y los orígenes HTTPS exactos permitidos del sitio.
{
"$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
}
Estadísticas del chatbot: Consultar
get_chatbot_analytics · GET /v1/workspaces/{workspaceId}/chatbot-analytics
Permiso necesario: workspace:read. Destino de autorización: workspace.
Devuelve cifras agregadas de visitantes, mensajes y uso de rutinas/productos. Nunca devuelve identificadores de visitantes ni texto de mensajes.
{
"$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
}
Endpoints de experiencia del cliente
Consulta la guía de experiencia del cliente para las credenciales de visitante y ejemplos de solicitudes.
Acceso de visitantes: Inicializar
storefront_bootstrap · GET /v1/workspaces/{workspaceId}/experience/bootstrap
Permiso necesario: storefront:read.
Inicializa el acceso del visitante, un token de invitado y la configuración de Turnstile.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Productos publicados: Listar
storefront_products · GET /v1/workspaces/{workspaceId}/experience/products
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Producto publicado: Consultar
storefront_products_productId · GET /v1/workspaces/{workspaceId}/experience/products/{productId}
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Preguntas de producto publicadas: Listar
storefront_products_productId_questions · GET /v1/workspaces/{workspaceId}/experience/products/{productId}/questions
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Producto publicado: Consultar
storefront_products_slug_productSlug · GET /v1/workspaces/{workspaceId}/experience/products/slug/{productSlug}
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Colecciones publicadas: Listar
storefront_collections · GET /v1/workspaces/{workspaceId}/experience/collections
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Productos de una colección: Listar
storefront_collections_collectionId_products · GET /v1/workspaces/{workspaceId}/experience/collections/{collectionId}/products
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Etiquetas publicadas: Listar
storefront_tags · GET /v1/workspaces/{workspaceId}/experience/tags
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Productos publicados: Listar
storefront_tags_tagId_products · GET /v1/workspaces/{workspaceId}/experience/tags/{tagId}/products
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Colecciones publicadas: Listar
storefront_tags_tagId_collections · GET /v1/workspaces/{workspaceId}/experience/tags/{tagId}/collections
Permiso necesario: storefront:read.
Devuelve solo los datos publicados del catálogo permitidos por la política de acceso de visitantes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Código por correo del visitante: Solicitar
customer_otp_request · POST /v1/workspaces/{workspaceId}/experience/customer/otp/request
Permiso necesario: visitors:write.
Solicita un código por correo. Se aplican Turnstile, validación del correo y límites de reenvío.
{
"$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
}
Código por correo del visitante: Verificar
customer_otp_verify · POST /v1/workspaces/{workspaceId}/experience/customer/otp/verify
Permiso necesario: visitors:write.
Valida un código de un solo uso y devuelve una sesión de visitante del negocio, nunca una sesión de gestión.
{
"$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
}
Sesión de visitante: Consultar
customer_session · GET /v1/workspaces/{workspaceId}/experience/customer/session
Permiso necesario: visitors:read.
Envía X-Visitor-Token para la sesión de visitante del negocio actual.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Sesión de visitante: Renovar
customer_refresh · POST /v1/workspaces/{workspaceId}/experience/customer/refresh
Permiso necesario: visitors:write.
Envía X-Visitor-Token para la sesión de visitante del negocio actual.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Sesión de visitante: Revocar
customer_logout · POST /v1/workspaces/{workspaceId}/experience/customer/logout
Permiso necesario: visitors:write.
Envía X-Visitor-Token para la sesión de visitante del negocio actual.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Perfil del visitante: Consultar
customer_profile · GET /v1/workspaces/{workspaceId}/experience/customer/profile
Permiso necesario: visitors:read.
Devuelve solo los campos públicos del perfil del visitante. Envía X-Visitor-Token.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Perfil del visitante: Actualizar
customer_profile_update · PUT /v1/workspaces/{workspaceId}/experience/customer/profile
Permiso necesario: visitors:write.
Actualiza nombre, teléfono e idioma del visitante. El correo no se cambia aquí; cambiar el correo de cuenta requiere iniciar sesión en la cuenta.
{
"$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
}
Asistente de empresa: Ejecutar
storefront_ai_general · POST /v1/workspaces/{workspaceId}/experience/chat/general
Permiso necesario: ai:write.
Usa evidencias publicadas actuales y citas, con seguridad de visitantes y contabilización explícita de créditos; solo lectura. En el seguimiento devuelve threadId firmado y contextToken opaco tal como se recibieron. Nunca envíes historial redactado por el cliente. Un contexto caducado o limitado requiere iniciar expresamente otro chat.
{
"$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
}
Orientación de productos con IA: Ejecutar
storefront_ai_product · POST /v1/workspaces/{workspaceId}/experience/chat/product
Permiso necesario: ai:write.
Requiere acceso de visitante, Turnstile y cuotas, con reservas atómicas de créditos del espacio. Consume créditos reales.
{
"$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
}
Orientación de rutinas con IA: Ejecutar
storefront_ai_routine · POST /v1/workspaces/{workspaceId}/experience/chat/routine
Permiso necesario: ai:write.
Requiere acceso de visitante, Turnstile y cuotas, con reservas atómicas de créditos del espacio. Consume créditos reales.
{
"$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
}
Análisis de fotos con IA: Ejecutar
storefront_ai_analyze_face · POST /v1/workspaces/{workspaceId}/experience/chat/analyze-face
Permiso necesario: ai:write.
Requiere acceso de visitante, Turnstile y cuotas, con reservas atómicas de créditos del espacio. Consume créditos reales.
{
"$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
}
Conversación del visitante: Eliminar definitivamente
storefront_thread_delete · DELETE /v1/workspaces/{workspaceId}/experience/threads/{threadId}
Permiso necesario: visitors:write.
Elimina solo una conversación firmada para el espacio y visitante seleccionados.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
Comentarios del visitante: Enviar
storefront_feedback · POST /v1/workspaces/{workspaceId}/experience/feedback
Permiso necesario: visitors:write.
Usa el mismo contrato validado que el sitio alojado.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"message": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"required": [
"message"
],
"additionalProperties": false
}
Evento de actividad del visitante: Registrar
storefront_event · POST /v1/workspaces/{workspaceId}/experience/events
Permiso necesario: visitors:write.
Registra solo eventos permitidos, con validación del servidor y atribución del actor.
{
"$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
}