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

# Create Connector Job

> Dispatch a job to a connector.



## OpenAPI

````yaml POST /orgs/{org_id}/connectors/{connector_id}/jobs
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/connectors/{connector_id}/jobs:
    post:
      tags:
        - connectors
      summary: '`POST /orgs/{org_id}/connectors/{connector_id}/jobs`'
      description: Dispatch a job to a connector.
      operationId: create
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: connector_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DispatchReq'
        required: true
      responses:
        '202':
          description: Job accepted and dispatched
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DispatchRes'
        '400':
          description: Invalid request
        '403':
          description: Forbidden
        '404':
          description: Connector or KB not found
        '422':
          description: Unprocessable entity
      security:
        - bearer_auth: []
components:
  schemas:
    DispatchReq:
      type: object
      required:
        - kb_id
        - dest_table
        - source
      properties:
        batch_rows:
          type:
            - integer
            - 'null'
          format: int32
          description: Target rows per batch. Defaults to 5000.
          minimum: 0
        cursor:
          type:
            - object
            - 'null'
          description: Resume checkpoint; omit for a full initial extract.
        dest_table:
          type: string
          description: Destination table inside the KB.
        kb_id:
          type: integer
          format: int64
          description: Target KB (numeric id, same as the `/k2` routes).
        mode:
          type:
            - string
            - 'null'
          description: '`create` | `append` | `replace`. Defaults to `create`.'
        pacing:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PacingBody'
              description: >-
                Optional load-shaping for gentle extraction against busy source
                systems.

                Omit for no throttle.
        placement:
          type:
            - string
            - 'null'
          description: >-
            Where the KB's data lives: `hosted` (control-plane KB, the default)
            or

            `local` (a KB runtime inside the connector's environment — requires
            the

            connector to advertise the `kb:local` capability).
        source:
          $ref: '#/components/schemas/SourceBody'
    DispatchRes:
      type: object
      required:
        - job_id
      properties:
        job_id:
          type: string
    PacingBody:
      type: object
      description: >-
        Request mirror of [`Pacing`]. All fields optional; absent ==
        unthrottled.
      properties:
        batch_delay_ms:
          type:
            - integer
            - 'null'
          format: int64
          description: Sleep (ms) between batches. `0`/omitted = none.
          minimum: 0
        max_dop:
          type:
            - integer
            - 'null'
          format: int32
          description: |-
            SQL Server only: `OPTION (MAXDOP n)` to cap server-side query
            parallelism. `1` pins single-threaded. Ignored by other sources.
          minimum: 0
        max_rows_per_sec:
          type:
            - integer
            - 'null'
          format: int32
          description: Cap on sustained rows/sec across the job. Omit = unlimited.
          minimum: 0
        read_uncommitted:
          type:
            - boolean
            - 'null'
          description: >-
            SQL Server only: read with `READ UNCOMMITTED` (no shared locks,
            never

            blocks the source's OLTP; dirty reads OK for snapshots). No-op
            elsewhere.
    SourceBody:
      oneOf:
        - allOf:
            - $ref: '#/components/schemas/RelationalSourceBody'
            - type: object
              required:
                - kind
              properties:
                kind:
                  type: string
                  enum:
                    - postgres
        - allOf:
            - $ref: '#/components/schemas/RelationalSourceBody'
            - type: object
              required:
                - kind
              properties:
                kind:
                  type: string
                  enum:
                    - sql_server
      description: >-
        The source half of a dispatch, tagged by `kind`. Each variant maps to a

        `SourceSpec` and gates on the connector advertising the matching

        `source:<kind>` capability. Request shape:

        `"source": { "kind": "sql_server", "connection_ref": "...", "table":
        "...", "cursor_column": "..." }`.
    RelationalSourceBody:
      type: object
      description: |-
        Shared shape for the relational sources (Postgres, SQL Server). `schema`
        defaults per-source (`public` / `dbo`).
      required:
        - connection_ref
        - table
        - cursor_column
      properties:
        columns:
          type:
            - array
            - 'null'
          items:
            type: string
          description: Projection; omit for all columns.
        connection_ref:
          type: string
          description: |-
            Name of a connection in the connector's local `connections.json`.
            The DSN itself never leaves the connector box.
        cursor_column:
          type: string
          description: >-
            Monotonic column for incremental extraction (`id`, `updated_at`,
            ...).
        schema:
          type:
            - string
            - 'null'
          description: Source schema; defaults to `public` (Postgres) / `dbo` (SQL Server).
        table:
          type: string
          description: Source table to extract.
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````