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

# Table question answering



## OpenAPI

````yaml /api-reference/openapi.json post /v1/question-answering/table
openapi: 3.1.0
info:
  title: SynapsAI Inference API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/question-answering/table:
    post:
      summary: Table question answering
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TableQuestionAnsweringRequest'
      responses:
        '200':
          description: Table QA result
          content:
            application/json:
              schema:
                type: object
                properties:
                  answer:
                    type: string
                  coordinates:
                    type: array
                    items:
                      type: array
                      items:
                        type: integer
                  cells:
                    type: array
                    items:
                      type: string
                  aggregator:
                    type: string
components:
  schemas:
    TableQuestionAnsweringRequest:
      allOf:
        - type: object
          description: Request to run question-answering against a tabular dataset.
          properties:
            table:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
              description: >-
                Table represented as a dict mapping column names to lists of
                strings (or a DataFrame equivalent). Required.
            query:
              oneOf:
                - type: string
                - type: array
                  items:
                    type: string
              description: Query string(s) to run against the table. Required.
            sequential:
              type: boolean
              default: false
              description: >-
                If true, run queries sequentially rather than batching (required
                for some models).
            padding:
              oneOf:
                - type: boolean
                - type: string
              default: false
              description: >-
                Controls padding behavior; accepts booleans or mode strings such
                as 'longest'.
            truncation:
              oneOf:
                - type: boolean
                - type: string
              default: false
              description: >-
                Controls truncation behavior; accepts booleans or mode strings
                such as 'drop_rows_to_fit'.
          required:
            - table
            - query

````