> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tabsutra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Forecast, with the history and the future inputs as files

> The same as /v1/forecast, with CSV or Parquet files.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/forecast-file
openapi: 3.1.0
info:
  title: tabSutra API
  version: '1.0'
  description: >-
    One pretrained model for forecasting, classification, regression and
    recommendation on tables and databases.
servers:
  - url: https://api.tabsutra.com
security:
  - bearerAuth: []
paths:
  /v1/forecast-file:
    post:
      summary: Forecast, with the history and the future inputs as files
      description: The same as /v1/forecast, with CSV or Parquet files.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_forecast_file'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForecastResponse'
        '400':
          description: An error
          content:
            application/json:
              schema:
                type: object
        '422':
          description: An error
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    Body_forecast_file:
      type: object
      title: Body_forecast_file
      required:
        - history
        - time_column
        - target
        - horizon
      properties:
        history:
          type: string
          format: binary
          description: The history as a CSV or Parquet file.
        future:
          type: string
          format: binary
          description: The inputs known in advance, as a CSV or Parquet file.
        series_column:
          type: string
          description: 'JSON: a column name or a list of names.'
        time_column:
          type: string
        target:
          type: string
        horizon:
          type: integer
        frequency:
          type: string
        target_range:
          type: string
          description: JSON, for example [0, null]
        quantiles:
          type: string
          description: JSON, for example [0.1, 0.5, 0.9]
        format:
          type: string
          enum:
            - json
            - csv
            - parquet
          default: json
        explain:
          type: boolean
          default: false
    ForecastResponse:
      type: object
      title: ForecastResponse
      required:
        - predictions
        - report
      properties:
        predictions:
          type: array
          items:
            additionalProperties: true
            type: object
          title: Predictions
          description: >-
            One object per series and future step: series, time, step, and the
            outputs asked for.
        report:
          additionalProperties: true
          type: object
          title: Report
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as ''Authorization: Bearer <key>''.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.