Analytics
Metricas, reportes y analisis de oportunidades, tickets y encuestas
Deals Analytics
Base: https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/analytics
KPIs y Breakdowns
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/analytics?pipeline_id={pipeline_id}" \
-H "X-API-Key: sk_live_tu_api_key"| Parametro | Tipo | Requerido | Descripcion |
|---|---|---|---|
pipeline_id | string | Si | UUID del pipeline |
owner_id | string | No | Filtrar por responsable |
status | string | No | open, won, lost |
created_after | string | No | Fecha ISO |
created_before | string | No | Fecha ISO |
Timeline
Deals creados, ganados y perdidos agrupados por intervalo de tiempo.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/analytics/timeline?pipeline_id={pipeline_id}" \
-H "X-API-Key: sk_live_tu_api_key"Embudo de Conversion
Conversion entre etapas del pipeline.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/analytics/funnel?pipeline_id={pipeline_id}" \
-H "X-API-Key: sk_live_tu_api_key"Forecast
Forecast ponderado del pipeline por mes de cierre esperado.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/analytics/forecast?pipeline_id={pipeline_id}" \
-H "X-API-Key: sk_live_tu_api_key"Aging
Deals estancados, rankeados por dias desde la ultima actividad.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/analytics/aging?pipeline_id={pipeline_id}" \
-H "X-API-Key: sk_live_tu_api_key"Kanban Summary
Resumen agregado del board Kanban por pipeline.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/kanban-summary?pipeline_id={pipeline_id}" \
-H "X-API-Key: sk_live_tu_api_key"Export CSV
Exporta deals con los mismos filtros del listado.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/deals/export?status=open" \
-H "X-API-Key: sk_live_tu_api_key"Tickets Analytics
Base: https://api.mirlo.com/v1/crm/organizations/{organization_id}/tickets/analytics
KPIs y Breakdowns
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/tickets/analytics" \
-H "X-API-Key: sk_live_tu_api_key"Incluye breakdowns por status, prioridad, proyecto, tipo, canal y responsable. Incluye metricas SLA.
Timeline
Tickets creados y resueltos agrupados por intervalo de tiempo.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/tickets/analytics/timeline" \
-H "X-API-Key: sk_live_tu_api_key"Aging
Tickets abiertos agrupados en buckets de antiguedad.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/tickets/analytics/aging" \
-H "X-API-Key: sk_live_tu_api_key"Insights (AI por contacto)
Insights generados por IA asociados a contactos.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/insights?contact_id={contact_id}" \
-H "X-API-Key: sk_live_tu_api_key"| Parametro | Tipo | Descripcion |
|---|---|---|
contact_id | string | Filtrar por contacto |
insight_type | string | sentiment, intent, risk, churn, topic |
limit | number | Resultados por pagina |
offset | number | Offset para paginacion |
Product Mentions
Menciones de productos detectadas por agentes de IA en conversaciones.
Listar Menciones
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/product-mentions" \
-H "X-API-Key: sk_live_tu_api_key"| Parametro | Tipo | Descripcion |
|---|---|---|
product_id | string | Filtrar por producto |
catalog_id | string | Filtrar por catalogo |
contact_id | string | Filtrar por contacto |
mention_type | string | Tipo de mencion |
channel | string | Canal de la conversacion |
from | string | Fecha desde |
to | string | Fecha hasta |
Resumen
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/product-mentions/summary" \
-H "X-API-Key: sk_live_tu_api_key"Tendencias
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/product-mentions/trends?granularity=week" \
-H "X-API-Key: sk_live_tu_api_key"| Parametro | Tipo | Descripcion |
|---|---|---|
granularity | string | day, week, month |
Productos No Matcheados
Top menciones de productos no encontrados en el catalogo.
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/product-mentions/unmatched" \
-H "X-API-Key: sk_live_tu_api_key"Top Productos
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/product-mentions/top-products" \
-H "X-API-Key: sk_live_tu_api_key"Stats por Producto
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/product-mentions/products/{product_id}/stats" \
-H "X-API-Key: sk_live_tu_api_key"Surveys
Stats por Agente
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/surveys/stats/by-agent" \
-H "X-API-Key: sk_live_tu_api_key"Stats de Encuesta
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/surveys/{survey_id}/stats?start=2026-01-01&end=2026-12-31" \
-H "X-API-Key: sk_live_tu_api_key"Export Respuestas
curl "https://api.mirlo.com/v1/crm/organizations/{organization_id}/surveys/{survey_id}/responses/export" \
-H "X-API-Key: sk_live_tu_api_key"Referencia de Endpoints
Deals Analytics
| Metodo | Ruta | Descripcion |
|---|---|---|
GET | /deals/analytics | KPIs y breakdowns |
GET | /deals/analytics/timeline | Timeline de deals |
GET | /deals/analytics/funnel | Embudo de conversion |
GET | /deals/analytics/forecast | Forecast ponderado |
GET | /deals/analytics/aging | Deals estancados |
GET | /deals/kanban-summary | Resumen Kanban |
GET | /deals/export | Export CSV |
Tickets Analytics
| Metodo | Ruta | Descripcion |
|---|---|---|
GET | /tickets/analytics | KPIs y breakdowns |
GET | /tickets/analytics/timeline | Timeline de tickets |
GET | /tickets/analytics/aging | Tickets por antiguedad |
Insights y Menciones
| Metodo | Ruta | Descripcion |
|---|---|---|
GET | /insights | Insights AI por contacto |
GET | /product-mentions | Listar menciones |
GET | /product-mentions/summary | Resumen de menciones |
GET | /product-mentions/trends | Tendencias |
GET | /product-mentions/unmatched | Productos no matcheados |
GET | /product-mentions/top-products | Top productos |
GET | /product-mentions/products/:id/stats | Stats por producto |
Surveys
| Metodo | Ruta | Descripcion |
|---|---|---|
GET | /surveys/stats/by-agent | Stats por agente |
GET | /surveys/:id/stats | Stats de encuesta |
GET | /surveys/:id/responses/export | Export respuestas |