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

# Add exporter to table

> Add an exporter (CRM/destination) to a table by its UUID.

Use `GET /v1/exporters` to list available exporters and `GET /v1/exporters/{id}` to see required parameters.

After adding, run the exporter with `POST /v1/table/{uuid}/run-enrichment/{id}`.



## OpenAPI

````yaml POST /v1/table/{table_uuid}/add-exporter
openapi: 3.1.0
info:
  title: Databar.ai API
  description: >-

    # Authentication


    Databar uses API keys to allow access to the API. You can find your API key
    in your workspace home page, but to use the REST API you’ll first need to
    schedule a call with us.

    Our API expects the API key to be included in all API requests to the server
    in the Header of your request with the key `x-apikey`.

    To find your API key, head over to your Databar workspace and click
    Integrations.


    **Example:**


    `bash

    curl https://api.databar.ai/v1/user/me -H x-apikey: {YOUR_API_KEY}`
  contact:
    email: info@databar.ai
  version: 0.1.2
servers:
  - url: https://api.databar.ai
    description: Production
security: []
paths:
  /v1/table/{table_uuid}/add-exporter:
    post:
      tags:
        - Table
      summary: Add exporter to table
      description: >-
        Add an exporter (CRM/destination) to a table by its UUID.


        Use `GET /v1/exporters` to list available exporters and `GET
        /v1/exporters/{id}` to see required parameters.


        After adding, run the exporter with `POST
        /v1/table/{uuid}/run-enrichment/{id}`.
      operationId: Add_exporter_to_table_v1_table__table_uuid__add_exporter_post
      parameters:
        - name: table_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The UUID of the table
            title: Table Uuid
          description: The UUID of the table
        - name: x-apikey
          in: header
          required: true
          schema:
            type: string
            title: API Key
            description: API Key for authentication
          description: API Key for authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddExporter'
            examples:
              with_column_uuid:
                summary: Mapping with column UUID
                value:
                  exporter: 1
                  mapping:
                    email:
                      value: 42902e11-fa09-4abd-a627-77c07fc40cde
                      type: mapping
              with_column_name:
                summary: Mapping with column name
                description: >-
                  Use the column name as it appears in GET /v1/table/{uuid}/rows
                  response.
                value:
                  exporter: 1
                  mapping:
                    email:
                      value: email_address
                      type: mapping
                    list_id:
                      value: my-list-123
                      type: simple
      responses:
        '200':
          description: Exporter added successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddExporterResponse'
              example:
                id: 42
                exporter_name: Google Sheets Exporter
        '400':
          description: Invalid request
          content:
            application/json:
              example:
                detail: Column 'email' not found in the table
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: Not allowed
        '404':
          description: Table not found
          content:
            application/json:
              example:
                detail: Table not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AddExporter:
      properties:
        exporter:
          type: integer
          title: Exporter
          description: The exporter ID to add (from GET /v1/exporters).
        mapping:
          additionalProperties:
            $ref: '#/components/schemas/MappingEntry'
          type: object
          title: Mapping
          description: Parameter mapping. Keys are exporter parameter slugs.
        launch_strategy:
          type: string
          enum:
            - run_on_click
            - run_on_update
          title: Launch Strategy
          description: >-
            When to run: 'run_on_click' (manual only) or 'run_on_update'
            (auto-trigger when mapped input columns change).
          default: run_on_click
        authorization:
          anyOf:
            - type: integer
            - type: 'null'
          title: Authorization
          description: >-
            ID of the API key / OAuth connection to use for this exporter.
            Required for exporters that need user authorization. If omitted, the
            system auto-selects the first available key.
        custom_body_template:
          anyOf:
            - type: string
            - type: 'null'
          title: Custom Body Template
          description: >-
            Custom JSON body template. Column values are referenced via
            {column_internal_name} placeholders. When provided, 'mapping' is
            ignored.
      type: object
      required:
        - exporter
        - mapping
      title: AddExporter
    AddExporterResponse:
      properties:
        id:
          type: integer
          title: Id
        exporter_name:
          type: string
          title: Exporter Name
      type: object
      required:
        - id
        - exporter_name
      title: AddExporterResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MappingEntry:
      properties:
        value:
          type: string
          title: Value
          description: >-
            For type='mapping': the column identifier (UUID) or column name (the
            key used in GET /v1/table/{uuid}/rows response). Get identifiers
            from GET /v1/table/{uuid}/columns. For type='simple': a static value
            used for every row.
        type:
          type: string
          enum:
            - mapping
            - simple
          title: Type
          description: >-
            'mapping' reads the value from a table column for each row. 'simple'
            uses the same static value for every row.
      type: object
      required:
        - value
        - type
      title: MappingEntry
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````