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

# Create Source Table

> Register a parquet relation over a stored connector.

Resolves the named connector, validates ``location`` is a readable parquet
dataset (footer read), and persists the ``source_table``. Columns are not
stored — they are derived from the footer on demand.



## OpenAPI

````yaml https://api.outerproduct.com/openapi.json post /v1/source_tables
openapi: 3.1.0
info:
  title: OuterProduct API
  description: >-
    Public-facing REST API for OuterProduct model distillation, prediction, and
    explanation.
  version: 0.1.8
servers: []
security: []
paths:
  /v1/source_tables:
    post:
      tags:
        - source_tables
      summary: Create Source Table
      description: >-
        Register a parquet relation over a stored connector.


        Resolves the named connector, validates ``location`` is a readable
        parquet

        dataset (footer read), and persists the ``source_table``. Columns are
        not

        stored — they are derived from the footer on demand.
      operationId: create_source_table_v1_source_tables_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSourceTableRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceTableResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    CreateSourceTableRequest:
      properties:
        table_name:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[A-Za-z_][A-Za-z0-9_]*$
          title: SQLIdentifier
        connector:
          type: string
          minLength: 1
          title: Connector
        location:
          $ref: '#/components/schemas/SourceTableLocation'
      type: object
      required:
        - table_name
        - connector
        - location
      title: CreateSourceTableRequest
    SourceTableResponse:
      properties:
        id:
          $ref: '#/components/schemas/ID'
        short_id:
          type: string
          title: Short Id
        table_name:
          type: string
          title: Table Name
        connector_type:
          $ref: '#/components/schemas/ConnectorType'
        location:
          $ref: '#/components/schemas/SourceTableLocation'
      type: object
      required:
        - id
        - short_id
        - table_name
        - connector_type
        - location
      title: SourceTableResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SourceTableLocation:
      anyOf:
        - $ref: '#/components/schemas/S3SourceLocation'
        - $ref: '#/components/schemas/SnowflakeSourceLocation'
    ID:
      anyOf:
        - type: string
          format: uuid
        - type: string
    ConnectorType:
      type: string
      enum:
        - s3
        - snowflake
        - databricks
        - file_upload
      title: ConnectorType
    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
    S3SourceLocation:
      properties:
        uri:
          type: string
          minLength: 1
          format: uri
          title: Uri
        file_format:
          type: string
          const: parquet
          title: File Format
          default: parquet
      type: object
      required:
        - uri
      title: S3SourceLocation
    SnowflakeSourceLocation:
      properties:
        database:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[A-Za-z_][A-Za-z0-9_]*$
          title: SQLIdentifier
        schema_name:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[A-Za-z_][A-Za-z0-9_]*$
          title: SQLIdentifier
        table_name:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[A-Za-z_][A-Za-z0-9_]*$
          title: SQLIdentifier
      type: object
      required:
        - database
        - schema_name
        - table_name
      title: SnowflakeSourceLocation
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key or OAuth2/OIDC access token
      description: >-
        An API key or OAuth2/OIDC access token sent as `Authorization: Bearer
        <token>`.

````