Skip to main content

Forecasting API

The Forecasting API provides endpoints for managing forecast scenarios, external events, accuracy metrics, and channel projections.
Scope: Tenant-scoped; requires authenticated org context
Availability: Not available in SuperAdmin

Authentication

All requests require authentication. Include your API key in the Authorization header:
See Authentication for details.

Base URL

Headers

All requests must include:

Endpoints

Example Requests

List Forecast Scenarios

Response:

Create Forecast Scenario

Response:

Create External Event

Response:

Common Errors

401 Unauthorized

Cause: Missing or invalid API key. Solution: Include a valid API key in the Authorization header.

403 Forbidden

Cause: Forecasting feature not enabled for your organization. Solution: Contact your organization administrator to enable the forecasting feature.

400 Bad Request

Cause: Invalid request parameters. Solution: Review the request body and ensure all required fields are provided with valid values.

404 Not Found

Cause: The requested scenario or event doesn’t exist or isn’t accessible. Solution: Verify the ID and ensure you have access to the resource.

Query Parameters

List Scenarios

  • status: Filter by status (DRAFT, PUBLISHED, ARCHIVED)
  • type: Filter by type (BASELINE, PROMOTIONAL, CONSERVATIVE, OPTIMISTIC, CHANNEL_LAUNCH, CUSTOM)
  • includeArchived: Include archived scenarios (boolean)

List Events

  • from: Start date (ISO string, default: today)
  • to: End date (ISO string, default: +90 days)
  • productMasterId: Filter by product
  • locationId: Filter by location
  • type: Filter by event type
  • includeGlobal: Include global events (boolean, default: true)
  • includeOrgWide: Include org-wide events (boolean, default: true)

Request/Response Schemas

Scenario

External Event



Permissions & Roles

Forecasting API access requires the ai.forecasting.demand entitlement. Contact your organization administrator to enable forecasting features.