Skip to content

Explain forecast confidence

POST/sales/forecasts/explain

Runs the forecast confidence engine and returns a human-readable explanation of how the AI-weighted pipeline forecast was calculated. Use this endpoint to surface confidence factors and assumptions in sales dashboards or when presenting forecasts to leadership.

Request

Request body

Content type application/json.

FieldTypeRequiredDescription
pipeline_idinteger, nullableNo

Scope the forecast explanation to a specific pipeline. Omit to use the default active pipeline.

territory_idinteger, nullableNo

Further scope the explanation to a single territory.

limitintegerNo

Maximum number of explanation factors to include in the response.

Default: 12

Example

{
  "pipeline_id": 1,
  "territory_id": 3,
  "limit": 12
}

Responses

200 Forecast confidence explanation with key factors

Content type application/json, any.

Example

{
  "explanation": {
    "pipeline_id": 1,
    "territory_id": 3,
    "weighted_total": 98500.0,
    "confidence": 0.74,
    "factors": [
      {
        "factor": "Historical win rate (90d)",
        "value": 0.62,
        "weight": 0.4
      },
      {
        "factor": "Stage-weighted probability",
        "value": 0.85,
        "weight": 0.35
      },
      {
        "factor": "Deal age penalty",
        "value": 0.72,
        "weight": 0.25
      }
    ],
    "notes": "Forecast excludes 3 deals with no expected close date."
  }
}

401 Unauthenticated

Example request

curl -X POST "https://{tenant}.faciotech.net/api/v1/sales/forecasts/explain" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"pipeline_id": 1, "territory_id": 3, "limit": 12}'
Loading