Terabase Energy Time Series API

Custom time series data inputs

Operations 7

GET /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData List time series data sets #
POST /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData Create new time series #
PUT /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData Upload time series CSV #
GET /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/Template Download time series CSV template #
GET /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/{timeSeriesId}/Details Get time series details #
GET /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/{timeSeriesId}/CSV Download time series as CSV #
DELETE /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/{timeSeriesId} Delete a time series #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/terabase-energy-timeseries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

terabase-energy-timeseries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Terabase Energy Time Series API
  version: 12.13.0
  description: 'Operations tagged TimeSeries across 2 of this provider''s published API definitions: terabase-energy-plantpredict-openapi-original.yaml, terabase-energy-timeseries-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.plantpredict.terabase.energy
  description: Production
security:
- bearerAuth: []
tags:
- name: TimeSeries
  description: Custom time series data inputs
paths:
  /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData:
    get:
      tags:
      - TimeSeries
      summary: List time series data sets
      description: "Returns all time series data for a prediction.\n\n**Parameters:**\n\n- `projectId` (path, required): The project ID.\n    \n- `predictionId` (path, required): The prediction ID.\n"
      operationId: listTimeSeries
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Time series list
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeSeriesMeta'
              examples:
                postman-get-time-series:
                  value:
                  - id: 56735
                    predictionId: 707325
                    type: 3
                    name: 'MST Input #1'
                    detailsCount: 8760
                  - id: 56736
                    predictionId: 707325
                    type: 2
                    name: 'TSD Input #1'
                    detailsCount: 8760
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    post:
      tags:
      - TimeSeries
      summary: Create new time series
      description: "Adds time series data via JSON. Requires TimeSeriesDTO with Details array.\n\n**Parameters:**\n\n- `projectId` (path, required): The project ID.\n    \n- `predictionId` (path, required): The prediction ID.\n    \n- `timeSeriesData` (body, required): TimeSeriesDTO with Details array (non-empty).\n"
      operationId: createTimeSeries
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TimeSeriesDetail'
      responses:
        '200':
          description: Created
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    put:
      tags:
      - TimeSeries
      summary: Upload time series CSV
      description: "Updates time series data via file upload. Replaces existing data with the uploaded file contents.\n\n**Parameters:**\n\n- `projectId` (path, required): The project ID.\n    \n- `predictionId` (path, required): The prediction ID.\n    \n- `file` (form, required): The CSV or data file to upload.\n"
      operationId: uploadTimeSeriesCSV
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '200':
          description: Uploaded
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.plantpredict.terabase.energy
      description: Production
  /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/Template:
    get:
      tags:
      - TimeSeries
      summary: Download time series CSV template
      description: "Returns a CSV template for time series data upload. Use to understand the expected format.\n\n**Parameters:**\n\n- `projectId` (path, required): The project ID.\n    \n- `predictionId` (path, required): The prediction ID.\n"
      operationId: getTimeSeriesTemplate
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: CSV template file
          content:
            text/csv:
              schema:
                type: string
                description: 'CSV template: header row only. Fill in values per row and

                  re-upload via `POST .../TimeSeriesData` to create a new

                  time series.

                  '
              example: 'timestamp,value

                2024-01-01T00:00:00,

                2024-01-01T01:00:00,

                2024-01-01T02:00:00,

                '
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.plantpredict.terabase.energy
      description: Production
  /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/{timeSeriesId}/Details:
    get:
      tags:
      - TimeSeries
      summary: Get time series details
      description: Returns the specified time series data properties, including timestamp details.
      operationId: getTimeSeriesDetails
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      - name: timeSeriesId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Time series with row data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeSeriesDetail'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.plantpredict.terabase.energy
      description: Production
  /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/{timeSeriesId}/CSV:
    get:
      tags:
      - TimeSeries
      summary: Download time series as CSV
      description: Returns the specified time series data properties, including timestamp details except as a .csv binary stream.
      operationId: downloadTimeSeriesCSV
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      - name: timeSeriesId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: CSV file
          content:
            text/csv:
              schema:
                type: string
                description: Time-series data exported as CSV, one row per timestamp.
              example: 'timestamp,value

                2024-01-01T00:00:00,0.250

                2024-01-01T01:00:00,0.251

                2024-01-01T02:00:00,0.253

                '
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.plantpredict.terabase.energy
      description: Production
  /Project/{projectId}/Prediction/{predictionId}/TimeSeriesData/{timeSeriesId}:
    delete:
      tags:
      - TimeSeries
      summary: Delete a time series
      description: "Deletes a time series data entry by ID. Note: Time series inputs with active assignments to a power plant cannot be deleted.\n\n**Parameters:**\n\n- `projectId` (path, required): The project ID.\n    \n- `predictionId` (path, required): The prediction ID.\n    \n- `timeSeriesId` (path, required): The time series entry ID to delete.\n"
      operationId: deleteTimeSeries
      x-doc-source: postman
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: integer
      - name: predictionId
        in: path
        required: true
        schema:
          type: integer
      - name: timeSeriesId
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.plantpredict.terabase.energy
      description: Production
components:
  responses:
    ServerError:
      description: 'Unexpected server-side error. The body is usually a plain-text message

        but its structure is not guaranteed — treat it as opaque diagnostic

        text. Common causes: database constraint violation, downstream

        service timeout, internal exception. Retry-safe for idempotent

        requests; for non-idempotent ones, verify state before retrying.

        '
      content:
        text/plain:
          schema:
            type: string
          example: An error has occurred.
    NotFound:
      description: The referenced resource does not exist or is not accessible to the caller.
      content:
        text/plain:
          schema:
            type: string
          example: Project not found.
    Unauthorized:
      description: Missing or invalid bearer token. The response body is empty and no `Content-Type` header is set; the 401 status code is the only signal. Fetch a fresh token (see the **Authentication** section of the API description) and retry.
    BadRequest:
      description: "The request was rejected. PlantPredict returns one of two shapes:\n\n* `application/json` with `{message, modelState}` for input\n  validation errors (ASP.NET Web API model-state). The `modelState`\n  map keys field names to lists of human-readable error messages.\n* `text/plain` with a free-form message for runtime / database\n  errors that bubble up before validation completes.\n\nClients should branch on the `Content-Type` header.\n"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ModelStateError'
          example:
            message: The request is invalid.
            modelState:
              latitude:
              - The field Latitude must be between -90 and 90.
        text/plain:
          schema:
            type: string
          example: A successfully completed prediction cannot be cancelled.
  schemas:
    ModelStateError:
      type: object
      description: 'ASP.NET Web API validation error. `modelState` maps the offending

        field name (or `request`) to a list of human-readable messages.

        '
      properties:
        message:
          type: string
        modelState:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
      - message
    TimeSeriesMeta:
      type: object
      properties:
        id:
          type: integer
        predictionId:
          type: integer
        type:
          type: integer
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          x-enum-varnames:
          - InverterSetPoint
          - InverterDerate
          - TrackingAngle
          - ModuleSurfaceTemperature
          - LGIALimit
          - IMPPAdjustment
          - VMPPAdjustment
          description: TimeSeriesType
        name:
          type: string
        detailsCount:
          type: integer
    TimeSeriesDetail:
      allOf:
      - $ref: '#/components/schemas/TimeSeriesMeta'
      - type: object
        properties:
          details:
            type: array
            items:
              type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Pass `Authorization: Bearer <token>` on every request. See the **Authentication** section of the API description for how to fetch a token.'
x-refined-from:
- terabase-energy-plantpredict-openapi-original.yaml
- terabase-energy-timeseries-api-openapi.yml