> ## 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.

# Send the tables of a database once, as CSV or Parquet files



## OpenAPI

````yaml /api-reference/openapi.json post /v1/databases-files
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/databases-files:
    post:
      summary: Send the tables of a database once, as CSV or Parquet files
      operationId: make_database_files_v1_databases_files_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_make_database_files_v1_databases_files_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatabaseResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_make_database_files_v1_databases_files_post:
      properties:
        files:
          items:
            type: string
            contentMediaType: application/octet-stream
          type: array
          title: Files
          description: One CSV or Parquet file per table.
        tables:
          type: string
          title: Tables
          description: >-
            JSON: a list of tables, each {"name", "file" (the file's name),
            "primary_key", "foreign_keys", "time_column"}
        name:
          type: string
          title: Name
          default: database
      type: object
      required:
        - files
        - tables
      title: Body_make_database_files_v1_databases_files_post
    DatabaseResponse:
      properties:
        database_id:
          type: string
          title: Database Id
          description: >-
            Pass it to the database's predict and evaluate. The same tables
            always give the same id.
        report:
          additionalProperties: true
          type: object
          title: Report
          description: >-
            Per table: rows, kind (things or events), keys and the share of
            foreign keys found, the columns read and the text columns left out;
            which tables of events reach each table of things.
      type: object
      required:
        - database_id
        - report
      title: DatabaseResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  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.