Reportes
Reportes agregados (volumen, tiempos, agentes, etiquetas).
/organizations/:orgId/reports·13 endpoints·Source: mosend-wb-backend/src/modules/reports/reports.controller.ts/organizations/:orgId/reports/summaryResumen general del dashboard de la organización.
Path params
orgIdstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/summary' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/portadaPortada del panel: qué espera ahora y cómo va la atención por día, con totales del período y del anterior.
Path params
orgIdstringrequerido
Query params
diasnumberdesdestringhastastring
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/portada' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/ventasReporte de ventas de licencias: ingresos por día/semana/mes contra el período anterior, por medio de pago, por agente del bot y por asesor (vendió y cerró), productos, marcas, canales, anuncios de Click-to-WhatsApp (cada venta al último anuncio por el que llegó el cliente, dentro de 30 días), tiempos, horas pico, clientes nuevos y lo pendiente. Solo propietarios y administradores.
Path params
orgIdstringrequerido
Query params
desdestringPrimer día (YYYY-MM-DD, en la zona horaria de la organización).
hastastringÚltimo día, incluido.
agruparstringdiasemanamesmonedastringperfilIdstringphoneNumberIdstringagentIdstringuserIdstringproductIdstringanuncioIdstringSolo las ventas que llegaron por este anuncio (id de Anuncios).
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/ventas' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/channels-summarySeñal unificada de canales conectados (WhatsApp, Instagram, Web Chat) para onboarding y empty-states.
Path params
orgIdstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/channels-summary' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/messagingMétricas de mensajería agregadas desde una fecha.
Path params
orgIdstringrequerido
Query params
sincestringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/messaging' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/billingResumen de facturación y consumo de la organización.
Path params
orgIdstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/billing' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/customersLista contactos con métricas agregadas de conversaciones (paginado).
Path params
orgIdstringrequerido
Query params
sincestringrequeridountilstringrequeridocategorystringrequeridoresolutionOutcomestringrequeridoqstringrequeridolimitstringrequeridocursorstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/customers' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/customers/:contactIdDetalle de un contacto con métricas históricas y timeline.
Path params
orgIdstringrequeridocontactIdstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/customers/00000000-0000-0000-0000-000000000000' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/team/weeklyMétricas semanales del equipo (default últimas 12 semanas).
Path params
orgIdstringrequerido
Query params
weeksstringrequeridocomparestringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/team/weekly' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/team/seriesSerie del equipo por día/semana/mes en un rango, con comparación, canal/etiqueta y SLA.
Path params
orgIdstringrequerido
Query params
fromstringrequeridotostringrequeridogranularitystringrequeridocomparestringrequeridochannelstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/team/series' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/team/by-agentMétricas por agente para un período (default últimas 4 semanas).
Path params
orgIdstringrequerido
Query params
sincestringrequeridountilstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/team/by-agent' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/team/goalsMetas semanales del equipo (volúmenes y tasas).
Path params
orgIdstringrequerido
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/team/goals' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/organizations/:orgId/reports/team/goalsActualiza metas semanales del equipo (parcial).
Path params
orgIdstringrequerido
Body (JSON)
weeklyConversationsCreatednumberweeklyConversationsClosednumberweeklyMessagesOutnumberclosureRateTargetnumberresolutionRateTargetnumber
Respuestas
- 200
curl -X PATCH 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/reports/team/goals' \
-H 'X-Api-Key: mk_live_<prefix>.<secret>' \
-H 'Content-Type: application/json' \
-d '{"weeklyConversationsCreated": 0,"weeklyConversationsClosed": 0,"weeklyMessagesOut": 0,"closureRateTarget": 0,"resolutionRateTarget": 0}'{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}