Menú

Referencia de la API · CRM

Pronóstico

crm · forecast · 1 operación

GET/v1/crm/forecast

Get the weighted forecast of a pipeline

crm.forecast.get

LecturaIdempotenteDesde 2026-11-01

Weighted forecast of the open deals of one pipeline whose expected close date falls in the period (deals without a close date are included too): open value, weighted value (each deal's value × its probability), best case (probability ≥ 50) and committed (probability ≥ 90). The probability is the one set by hand on the deal, otherwise its stage's current probability (a deal that kept the number of a stage it left is not counted with it), and the one stored on the deal only when its stage has none. It is broken down by stage and by owner (with the name the CRM team shows), in one currency (each deal converted with today's rate; the organization's reporting currency, else the pipeline's). Archived and merged deals are left out. Members without view_all_performance only get their own deals. Not found if the pipeline does not exist; crm.pipelines.list gives the ids.

Alcance
crm:read
Permiso
Ver el módulo · Acción del CRM: view_performance
Tool del MCP
crm_forecast_getEn la superficie completa; en la compacta, mb_execute_operation con id: "crm.forecast.get".

Costo declarado: hasta 30003 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

pipeline_idstringqueryrequerido

Pipeline id from crm.pipelines.list.

startintegerqueryrequerido

Start of the period, on the deals' expected close date (epoch ms); deals without a close date are included.

endintegerqueryrequerido

End of the period (epoch ms), not before start.

owner_idstringqueryopcional

Only the records of this owner: a user_id from crm.team.list.

Respuesta

pipeline_idstring
pipeline_namestring
currencystring

Currency of every amount: each deal is converted to it (today's rate) before summing; the organization's reporting currency, else the pipeline's.

open_deals_countnumber
open_valuenumber
weighted_valuenumber
best_case_valuenumber
committed_valuenumber
stagesarray<object>
ownersarray<object>
fx_unconvertedarray<object>

Currencies without an exchange rate: their deals are left out of the amounts (currencies are never mixed in a sum).

truncatedboolean

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/crm/forecast?pipeline_id=PIPELINE_ID&start=0&end=0" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl "https://api.mb-suite.com/v1/crm/forecast?pipeline_id=PIPELINE_ID&start=0&end=0" \
  -H "Authorization: Bearer $MB_TEST_KEY"