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

# Inputs and outputs of configured calculations

> What each calculation consumes and produces; an invalid one reports an error.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /model_builders/calculations/io
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /model_builders/calculations/io:
    post:
      tags:
        - Model builders
      summary: Inputs and outputs of configured calculations
      description: >-
        What each calculation consumes and produces; an invalid one reports an
        error.
      operationId: get_calculation_io_model_builders_calculations_io_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CalculationIORequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/CalculationIO'
                type: array
                title: >-
                  Response Get Calculation Io Model Builders Calculations Io
                  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CalculationIORequest:
      properties:
        calculations:
          items:
            $ref: '#/components/schemas/CalculationSpec'
          type: array
          title: Calculations
      type: object
      required:
        - calculations
      title: CalculationIORequest
      description: Calculations to describe, in one round trip.
    CalculationIO:
      properties:
        inputs:
          items:
            type: string
          type: array
          title: Inputs
        outputs:
          items:
            type: string
          type: array
          title: Outputs
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      title: CalculationIO
      description: >-
        What a configured calculation consumes and produces, or why it cannot
        say.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CalculationSpec:
      properties:
        type:
          type: string
          title: Type
        options:
          additionalProperties: true
          type: object
          title: Options
      type: object
      required:
        - type
      title: CalculationSpec
      description: A calculation type and its options.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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