{
  "openapi": "3.1.0",
  "info": {
    "title": "Conversia API pública",
    "version": "1.0.0",
    "summary": "Información oficial de Conversia, la AI Revenue Platform de Impulse, para agentes y desarrolladores.",
    "description": "API REST de solo lectura con la información pública de Conversia: productos (agentes de IA en WhatsApp, web y voz, Contextual Brain, Superhuman, MCP), soluciones por industria y área, casos, integraciones, seguridad, datos de la empresa y el modelo de precios con rangos de referencia. No requiere clave ni registro: es gratuita y abierta. No cotiza ni vende: el precio exacto se define con el equipo en una demo.\n\nVersionado: la versión mayor va en la ruta (/v1). Los cambios compatibles no cambian la ruta; un cambio incompatible saldría en /v2 y /v1 se mantendría al menos 6 meses, anunciado con las cabeceras Deprecation y Sunset. Cada respuesta trae API-Version con la fecha del contrato.\n\nLímite: 60 solicitudes por minuto por dirección IP, informado en las cabeceras RateLimit y RateLimit-Policy; al superarlo responde 429 con Retry-After.\n\nErrores: todos en application/problem+json (RFC 9457) con code, detail y hint.\n\nEntorno de prueba: el servidor sandbox devuelve el mismo contenido con la cabecera X-Conversia-Environment: sandbox; ningún endpoint modifica datos.",
    "contact": {
      "name": "Conversia",
      "url": "https://conversia.impulse.lat/desarrolladores",
      "email": "contacto@conversia.ai"
    },
    "termsOfService": "https://conversia.impulse.lat/legal/terminos",
    "license": {
      "name": "Contenido público de Conversia; se puede citar con enlace a la fuente.",
      "url": "https://conversia.impulse.lat/legal/terminos"
    }
  },
  "servers": [
    {
      "url": "https://api.conversia.impulse.lat/v1",
      "description": "Producción (solo lectura, sin clave)"
    },
    {
      "url": "https://sandbox.conversia.impulse.lat/v1",
      "description": "Sandbox: mismo contenido, marcado como entorno de prueba"
    }
  ],
  "externalDocs": {
    "description": "Portal para desarrolladores de Conversia",
    "url": "https://conversia.impulse.lat/desarrolladores"
  },
  "security": [],
  "tags": [
    {
      "name": "Catálogo",
      "description": "Productos, soluciones, casos, integraciones y recursos."
    },
    {
      "name": "Empresa",
      "description": "Datos de la empresa, seguridad y modelo de precios."
    },
    {
      "name": "Búsqueda",
      "description": "Buscar y preguntar en lenguaje natural."
    },
    {
      "name": "Exportaciones",
      "description": "Exportar el catálogo completo como trabajo asíncrono."
    }
  ],
  "paths": {
    "/products": {
      "get": {
        "operationId": "listProducts",
        "summary": "Listar productos",
        "description": "Devuelve los productos, canales y piezas de la plataforma de Conversia, con resumen, capacidades y enlace. Úsalo para responder qué hace Conversia.",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Cantidad de elementos por página (1 a 100, 20 por defecto).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor opaco que devolvió la página anterior en pagination.next_cursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/products/{productId}": {
      "get": {
        "operationId": "getProduct",
        "summary": "Obtener un producto",
        "description": "Devuelve un producto por su identificador (por ejemplo agents, agents-voice, contextual-brain, superhuman o mcp).",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "description": "Identificador del producto.",
            "schema": {
              "type": "string",
              "enum": [
                "agents",
                "agents-whatsapp",
                "agents-web",
                "agents-voice",
                "contextual-brain",
                "superhuman",
                "mcp",
                "platform"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "404": {
            "description": "El recurso no existe. El cuerpo sugiere dónde buscar.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/solutions": {
      "get": {
        "operationId": "listSolutions",
        "summary": "Listar soluciones",
        "description": "Devuelve las soluciones por industria (educación superior, salud, servicios financieros, automotriz, inmobiliaria, retail) y por área (ventas, marketing, servicio al cliente, cobranzas).",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "description": "Filtra por industry o area.",
            "schema": {
              "type": "string",
              "enum": [
                "industry",
                "area"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Cantidad de elementos por página (1 a 100, 20 por defecto).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor opaco que devolvió la página anterior en pagination.next_cursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Solution"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/solutions/{solutionId}": {
      "get": {
        "operationId": "getSolution",
        "summary": "Obtener una solución",
        "description": "Devuelve una solución por su identificador.",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "solutionId",
            "in": "path",
            "required": true,
            "description": "Identificador de la solución.",
            "schema": {
              "type": "string",
              "enum": [
                "educacion-superior",
                "salud",
                "servicios-financieros",
                "automotriz",
                "inmobiliaria",
                "retail",
                "ventas",
                "marketing",
                "servicio-al-cliente",
                "cobranzas"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Solution"
                }
              }
            }
          },
          "404": {
            "description": "El recurso no existe. El cuerpo sugiere dónde buscar.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/cases": {
      "get": {
        "operationId": "listCases",
        "summary": "Listar casos",
        "description": "Devuelve los casos publicados de clientes que operan con Conversia, con su resultado principal y enlace al caso completo.",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Cantidad de elementos por página (1 a 100, 20 por defecto).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor opaco que devolvió la página anterior en pagination.next_cursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Case"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/cases/{caseId}": {
      "get": {
        "operationId": "getCase",
        "summary": "Obtener un caso",
        "description": "Devuelve un caso por su identificador.",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "caseId",
            "in": "path",
            "required": true,
            "description": "Identificador del caso.",
            "schema": {
              "type": "string",
              "enum": [
                "social-learning",
                "siglo21",
                "auna"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Case"
                }
              }
            }
          },
          "404": {
            "description": "El recurso no existe. El cuerpo sugiere dónde buscar.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/integrations": {
      "get": {
        "operationId": "listIntegrations",
        "summary": "Listar integraciones",
        "description": "Devuelve los CRM, canales y LLM con los que se integra Conversia y cómo (nativa, por API o por MCP).",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Cantidad de elementos por página (1 a 100, 20 por defecto).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor opaco que devolvió la página anterior en pagination.next_cursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Integration"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/resources": {
      "get": {
        "operationId": "listResources",
        "summary": "Listar recursos",
        "description": "Devuelve los recursos públicos: el Informe del 56%, los skills de diagnóstico gratuitos y el blog.",
        "tags": [
          "Catálogo"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Cantidad de elementos por página (1 a 100, 20 por defecto).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor opaco que devolvió la página anterior en pagination.next_cursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Resource"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/company": {
      "get": {
        "operationId": "getCompany",
        "summary": "Datos de la empresa",
        "description": "Devuelve quién está detrás de Conversia, la razón social, la dirección, el correo de contacto, los países y las páginas de confianza (nosotros, contacto, privacidad, términos, seguridad).",
        "tags": [
          "Empresa"
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/security": {
      "get": {
        "operationId": "getSecurity",
        "summary": "Seguridad y privacidad",
        "description": "Devuelve cómo protege Conversia los datos: infraestructura, cifrado, acceso, despliegue en la nube del cliente y cumplimiento.",
        "tags": [
          "Empresa"
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Security"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/pricing-model": {
      "get": {
        "operationId": "getPricingModel",
        "summary": "Modelo de precios",
        "description": "Explica cómo cobra cada producto de Conversia y en qué rango de referencia se mueve. No es una cotización ni devuelve un precio exacto: ese se define con el equipo en una demo.",
        "tags": [
          "Empresa"
        ],
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "description": "Limita la respuesta a un producto.",
            "schema": {
              "type": "string",
              "enum": [
                "agents",
                "agents-voice",
                "superhuman",
                "contextual-brain",
                "activar"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingModel"
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "searchCatalog",
        "summary": "Buscar en el catálogo",
        "description": "Busca por palabras clave en productos, soluciones, casos, integraciones, recursos, seguridad, precios y preguntas frecuentes, y devuelve los resultados ordenados por relevancia con un extracto y su enlace.",
        "tags": [
          "Búsqueda"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Palabras a buscar, idealmente en español. Ejemplo: agentes de voz para cobranzas.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 200
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Filtra por tipo de resultado.",
            "schema": {
              "type": "string",
              "enum": [
                "product",
                "solution",
                "case",
                "resource",
                "integration",
                "topic"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Cantidad de elementos por página (1 a 100, 20 por defecto).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor opaco que devolvió la página anterior en pagination.next_cursor.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SearchResult"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/ask": {
      "post": {
        "operationId": "askConversia",
        "summary": "Preguntar en lenguaje natural",
        "description": "Recibe una pregunta en lenguaje natural con el formato de NLWeb (query.text) y devuelve los elementos del catálogo que la responden. Es de solo lectura y no guarda la pregunta.",
        "tags": [
          "Búsqueda"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Clave única que elige el cliente para reintentar sin duplicar el trabajo. Se devuelve en la respuesta; repetirla devuelve el mismo resultado.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AskRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskResponse"
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/exports": {
      "post": {
        "operationId": "createExport",
        "summary": "Crear una exportación del catálogo",
        "description": "Inicia una exportación del catálogo completo como trabajo asíncrono. Responde 202 con el identificador del trabajo y la dirección donde consultar su estado (cabecera Location).",
        "tags": [
          "Exportaciones"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Clave única que elige el cliente para reintentar sin duplicar el trabajo. Se devuelve en la respuesta; repetirla devuelve el mismo resultado.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Trabajo aceptado. Consulta su estado en Location.",
            "headers": {
              "Location": {
                "description": "Dirección del trabajo.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "400": {
            "description": "Parámetros inválidos. El cuerpo explica qué corregir.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/jobs/{jobId}": {
      "get": {
        "operationId": "getJob",
        "summary": "Consultar un trabajo",
        "description": "Devuelve el estado de una exportación (queued, running, succeeded) y, al terminar, la dirección del resultado.",
        "tags": [
          "Exportaciones"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "description": "Identificador que devolvió POST /exports.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "404": {
            "description": "El recurso no existe. El cuerpo sugiere dónde buscar.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/exports/{jobId}": {
      "get": {
        "operationId": "getExport",
        "summary": "Descargar una exportación",
        "description": "Devuelve el catálogo completo exportado por un trabajo terminado.",
        "tags": [
          "Exportaciones"
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "description": "Identificador del trabajo.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Respuesta correcta.",
            "headers": {
              "RateLimit": {
                "description": "Cuota restante en la ventana actual (draft-ietf-httpapi-ratelimit-headers).",
                "schema": {
                  "type": "string",
                  "example": "limit=60, remaining=59, reset=60"
                }
              },
              "RateLimit-Policy": {
                "description": "Política de límite: 60 solicitudes por ventana de 60 segundos.",
                "schema": {
                  "type": "string",
                  "example": "60;w=60"
                }
              },
              "API-Version": {
                "description": "Fecha de la versión del contrato que respondió.",
                "schema": {
                  "type": "string",
                  "example": "2026-12-06"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Export"
                }
              }
            }
          },
          "404": {
            "description": "El recurso no existe. El cuerpo sugiere dónde buscar.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Se superó el límite de 60 solicitudes por minuto. Espera los segundos de Retry-After.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Error interno. Vuelve a intentar; si persiste, escribe a contacto@conversia.ai.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Pagination": {
        "type": "object",
        "description": "Paginación por cursor.",
        "required": [
          "limit",
          "has_more",
          "next_cursor"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "description": "Tamaño de página usado."
          },
          "has_more": {
            "type": "boolean",
            "description": "Si hay más elementos."
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cursor para pedir la página siguiente; null si no hay más."
          },
          "total": {
            "type": "integer",
            "description": "Total de elementos."
          }
        }
      },
      "Product": {
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "summary",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Identificador estable."
          },
          "name": {
            "type": "string",
            "description": "Nombre del producto."
          },
          "kind": {
            "type": "string",
            "enum": [
              "product",
              "channel",
              "platform"
            ],
            "description": "Producto, canal de Conversia Agents o pieza de la plataforma."
          },
          "summary": {
            "type": "string",
            "description": "Qué hace, en una frase."
          },
          "description": {
            "type": "string",
            "description": "Detalle."
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Capacidades principales."
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "whatsapp",
                "web",
                "voz"
              ]
            },
            "description": "Canales donde opera."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Página oficial."
          }
        }
      },
      "Solution": {
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "summary",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "industry",
              "area"
            ]
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Case": {
        "type": "object",
        "required": [
          "id",
          "client",
          "industry",
          "headline_result",
          "summary",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "client": {
            "type": "string",
            "description": "Cliente."
          },
          "industry": {
            "type": "string"
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "headline_result": {
            "type": "string",
            "description": "Resultado principal publicado."
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Caso completo."
          }
        }
      },
      "Integration": {
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "summary"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "nativa",
              "api",
              "canal",
              "mcp"
            ]
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Resource": {
        "type": "object",
        "required": [
          "id",
          "name",
          "summary",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Company": {
        "type": "object",
        "required": [
          "name",
          "legal_name",
          "description",
          "email",
          "address",
          "pages"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "alternate_name": {
            "type": "string"
          },
          "legal_name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "parent_organization": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "description": {
                "type": "string"
              }
            }
          },
          "email": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "type": "string"
          },
          "badges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "pages": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      },
      "Security": {
        "type": "object",
        "required": [
          "points",
          "url"
        ],
        "properties": {
          "points": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "privacy": {
            "type": "string"
          },
          "terms": {
            "type": "string"
          }
        }
      },
      "PriceRange": {
        "type": "object",
        "required": [
          "concept",
          "currency",
          "from",
          "per",
          "label"
        ],
        "properties": {
          "concept": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD"
            ]
          },
          "from": {
            "type": "number",
            "description": "Límite inferior de referencia."
          },
          "to": {
            "type": [
              "number",
              "null"
            ],
            "description": "Límite superior de referencia; null si solo hay un desde."
          },
          "per": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "description": "El rango dicho en una frase."
          },
          "note": {
            "type": "string"
          }
        }
      },
      "PricingModel": {
        "type": "object",
        "required": [
          "principle",
          "is_quote",
          "products",
          "book_demo_url"
        ],
        "properties": {
          "principle": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "is_quote": {
            "type": "boolean",
            "const": false,
            "description": "Siempre false: esto no es una cotización."
          },
          "exact_price": {
            "type": "string"
          },
          "book_demo_url": {
            "type": "string",
            "format": "uri"
          },
          "pricing_page": {
            "type": "string",
            "format": "uri"
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "product_id",
                "name",
                "billing_unit",
                "how_it_works",
                "reference_ranges"
              ],
              "properties": {
                "product_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "billing_unit": {
                  "type": "string"
                },
                "how_it_works": {
                  "type": "string"
                },
                "reference_ranges": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PriceRange"
                  }
                }
              }
            }
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "required": [
          "id",
          "type",
          "title",
          "url",
          "snippet"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Identificador del tema, usable con el MCP (get_conversia_info)."
          },
          "type": {
            "type": "string",
            "enum": [
              "product",
              "solution",
              "case",
              "resource",
              "integration",
              "topic"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "snippet": {
            "type": "string"
          },
          "score": {
            "type": "number"
          }
        }
      },
      "AskRequest": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "object",
            "required": [
              "text"
            ],
            "properties": {
              "text": {
                "type": "string",
                "minLength": 2,
                "maxLength": 500,
                "description": "La pregunta."
              }
            }
          },
          "prefer": {
            "type": "object",
            "properties": {
              "streaming": {
                "type": "boolean",
                "description": "Ignorado: la respuesta siempre llega completa."
              }
            }
          }
        }
      },
      "AskResponse": {
        "type": "object",
        "required": [
          "_meta",
          "results"
        ],
        "properties": {
          "_meta": {
            "type": "object",
            "required": [
              "response_type",
              "version"
            ],
            "properties": {
              "response_type": {
                "type": "string",
                "enum": [
                  "list"
                ]
              },
              "version": {
                "type": "string"
              }
            }
          },
          "query": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "@type",
                "name",
                "url",
                "description"
              ],
              "properties": {
                "@type": {
                  "type": "string"
                },
                "@id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ExportRequest": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "json",
              "markdown"
            ],
            "default": "json",
            "description": "Formato del resultado."
          }
        }
      },
      "Job": {
        "type": "object",
        "required": [
          "job_id",
          "status",
          "status_url"
        ],
        "properties": {
          "job_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed"
            ]
          },
          "status_url": {
            "type": "string",
            "format": "uri"
          },
          "result_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "format": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Export": {
        "type": "object",
        "required": [
          "generated_at",
          "format",
          "content"
        ],
        "properties": {
          "generated_at": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "content": {
            "description": "Catálogo completo (objeto en json, texto en markdown)."
          }
        }
      },
      "Problem": {
        "type": "object",
        "description": "Error en formato RFC 9457 (application/problem+json).",
        "required": [
          "type",
          "title",
          "status",
          "code",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "Enlace a la documentación del error."
          },
          "title": {
            "type": "string",
            "description": "Resumen del error."
          },
          "status": {
            "type": "integer",
            "description": "Código HTTP."
          },
          "code": {
            "type": "string",
            "description": "Código estable para programas, por ejemplo not_found o rate_limited."
          },
          "detail": {
            "type": "string",
            "description": "Qué pasó en este caso."
          },
          "hint": {
            "type": "string",
            "description": "Qué hacer para resolverlo."
          },
          "instance": {
            "type": "string",
            "description": "Ruta que falló."
          }
        }
      }
    }
  }
}
