Skip to Content
Back to Security & API
Security & API

Capacity Forecasting API

Capacity Forecasting API

The Capacity Forecasting API provides predictive analytics for your Scalelite infrastructure, helping you plan for future capacity needs based on historical usage patterns.

Endpoint

GET /api/v1/instances/{instance_id}/forecast

Authentication

Include your API key in the request header:

X-API-Key: your-api-key-here

Example Request

curl -X GET \
  https://scalelitemanager.com/api/v1/instances/1/forecast \
  -H "X-API-Key: sk_live_abc123..."

Response Fields

FieldTypeDescription
forecast_datedatetimeWhen the forecast was generated
forecast_horizon_daysintegerNumber of days forecasted (default: 30)
disk_forecastobjectDisk usage predictions including current %, projected %, days until 80% full, and daily growth rate
capacity_forecastobjectServer capacity predictions with current/recommended server counts and peak participant estimate
meetings_forecastobjectMeeting volume predictions with average daily meetings and growth trend
recordings_forecastobjectRecording storage predictions including current count, projected growth, and storage needs
health_scoreobjectPredicted infrastructure health score (0-100) with trend direction
recommendationsarrayActionable recommendations based on forecast analysis

Disk Forecast Object

FieldDescription
current_usage_percentCurrent disk usage as percentage (e.g., 45.2)
projected_usage_percentProjected disk usage at end of forecast horizon
days_until_80_percentEstimated days until disk reaches 80% (warning threshold)
growth_rate_per_dayAverage daily growth rate in percentage points

Capacity Forecast Object

FieldDescription
current_serversNumber of BBB servers currently in your pool
recommended_serversRecommended number of servers based on projected load
peak_predicted_participantsEstimated peak concurrent participants in forecast period

Example Response

{
  "success": true,
  "forecast": {
    "forecast_date": "2025-12-04T10:30:00",
    "forecast_horizon_days": 30,
    "disk_forecast": {
      "current_usage_percent": 45.2,
      "projected_usage_percent": 52.8,
      "days_until_80_percent": 45,
      "growth_rate_per_day": 0.25
    },
    "capacity_forecast": {
      "current_servers": 5,
      "recommended_servers": 6,
      "peak_predicted_participants": 450
    },
    "meetings_forecast": {
      "average_daily_meetings": 85,
      "projected_daily_meetings": 102,
      "growth_trend": "increasing"
    },
    "recordings_forecast": {
      "current_count": 1250,
      "projected_count": 1450,
      "storage_gb_needed": 125
    },
    "health_score": {
      "current": 85,
      "projected": 78,
      "trend": "declining"
    },
    "recommendations": [
      "Consider adding 1 server in the next 30 days",
      "Monitor disk usage - projected to reach 80% in 45 days",
      "Review recording retention policy to manage storage growth"
    ]
  }
}

How Forecasting Works

The forecasting engine uses linear regression analysis on your historical webhook data to identify trends:

  • Data Collection: Analyzes the last 30-90 days of webhook reports
  • Trend Analysis: Calculates growth rates for disk, meetings, participants, and recordings
  • Projection: Extrapolates trends forward by the forecast horizon (default 30 days)
  • Recommendations: Generates actionable insights based on projected thresholds

Forecasts are automatically refreshed when:

  • The existing forecast is older than 24 hours
  • A new webhook report is received with significantly different metrics
  • You explicitly request a refresh via the API

Error Responses

Status CodeDescription
401Invalid or missing API key
403API key does not have access to this instance
404Instance not found
500Insufficient historical data for forecasting (need at least 7 days)

Use Cases

  • Capacity Planning: Predict when you need to add more BBB servers before performance degrades
  • Storage Management: Plan disk upgrades or implement retention policies before running out of space
  • Budget Planning: Forecast infrastructure costs based on projected growth rates
  • SLA Compliance: Ensure your infrastructure can meet expected demand peaks
  • Proactive Alerting: Set up alerts based on forecast thresholds

Was this article helpful?

Still need help? Contact support

Searching...
Search across meetings, recordings, and participants
Press ESC to close