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

# Create a connection table

> Creates a connection table.

Typed endpoints are also available for specific connectors under `POST /connectors/{connector}/tables`.




## OpenAPI

````yaml /openapi/ingest.yaml post /connection_tables
openapi: 3.1.0
info:
  title: Ingest Engine HTTP API
  version: '1.0'
  description: >
    The Ingest Engine exposes an HTTP API for managing pipelines, connections,
    and jobs programmatically.


    All responses are JSON. Errors return an object with an `error` message.


    List endpoints use cursor-based pagination. Responses contain a `data` array
    and a `has_more` flag.

    Pass `?starting_after=<last_id>&limit=10` to get the next page.
servers:
  - url: http://{controllerHost}:8000/api/v1
    description: The Ingest Engine controller.
    variables:
      controllerHost:
        default: localhost
        description: Host name of the Ingest Engine controller.
security:
  - bearerAuth: []
tags:
  - name: Pipelines
    description: Create, update, restart, and delete pipelines.
  - name: Jobs
    description: >-
      A job is a single execution of a pipeline. Each time a pipeline starts or
      restarts, a new job is created.
  - name: Connection profiles
    description: >-
      A connection profile stores reusable connection credentials, such as Kafka
      bootstrap servers and authentication.
  - name: Connection tables
    description: >-
      A connection table defines a specific source or sink, binding a connector,
      connection profile, schema, and table-specific configuration together.
  - name: Connectors
    description: Metadata about available connectors.
  - name: Health
    description: Health checks.
paths:
  /connection_tables:
    post:
      tags:
        - Connection tables
      summary: Create a connection table
      description: >
        Creates a connection table.


        Typed endpoints are also available for specific connectors under `POST
        /connectors/{connector}/tables`.
      operationId: createConnectionTable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Table name.
                connector:
                  type: string
                  description: Connector type, for example `kafka`.
                connection_profile_id:
                  type: string
                  description: ID of the connection profile to use.
                config:
                  type: object
                  description: Table-specific connector configuration.
                schema:
                  type: object
                  description: Schema definition, including the format and fields.
            example:
              name: orders
              connector: kafka
              connection_profile_id: prof-123
              config:
                topic: orders
                read_mode: read_uncommitted
              schema:
                format:
                  json: {}
                fields:
                  - field_name: id
                    field_type:
                      primitive: Int64
                  - field_name: amount
                    field_type:
                      primitive: Float64
      responses:
        '200':
          description: The created `ConnectionTable` object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionTable'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    ConnectionTable:
      type: object
      properties:
        id:
          type: integer
        pub_id:
          type: string
        name:
          type: string
        created_at:
          type: integer
        connector:
          type: string
        table_type:
          type: string
          description: Table type, for example `source`.
        config:
          type: object
        schema:
          type: object
        consumers:
          type: integer
      example:
        id: 1
        pub_id: tbl-456
        name: orders
        created_at: 1700000000000000
        connector: kafka
        table_type: source
        config: {}
        schema: {}
        consumers: 1
    Error:
      type: object
      properties:
        error:
          type: string
          description: Descriptive error message.
      example:
        error: descriptive error message
  responses:
    Error:
      description: Error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send the API token as `Authorization: Bearer <token>`.'

````

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