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

# Create the table, or pick the table to write into, and start loading its rows

> Create the table and its columns from the reviewed mapping, then start the row load in the background. With `into_table_id`, the rows go into that table instead: added, or, with `match_source_index`, matched to the rows it has and updated, the rest added.

The table exists as soon as this returns, so the client can navigate to it immediately and watch rows arrive. Poll the job to follow progress.

Committing twice is refused: the second call finds the import already running rather than creating a second table.



## OpenAPI

````yaml /openapi.json post /table-imports/{import_id}/commit/
openapi: 3.1.0
info:
  contact:
    email: support@getoneprofile.ai
    name: Oneprofile Support
  description: >-
    REST API reference for Oneprofile, the GTM data layer for your CRM. Manage
    tables, enrichments, and integrations. Authenticate with an API key to get
    started.
  termsOfService: https://www.getoneprofile.ai/terms
  title: API Reference | Oneprofile
  version: '0.0'
servers:
  - url: https://api.getoneprofile.ai
security: []
tags:
  - description: >-
      The docked AI Assistant: its general chat about the workspace and the
      product, streamed as Server-Sent Events, and the one list of a person's
      threads across every assistant, with pin, rename, delete and the
      search-to-table link, and the read of a web page a person links.
    name: assistant
  - description: >-
      The messages a person keeps to send the assistant again: the ones the
      workspace saved and the ones that ship with the product, with save,
      rename, edit and delete.
    name: assistant-prompt
  - description: >-
      Granted workspace actions: what the AI Assistant proposed or applied in a
      conversation, the approve and dismiss decisions on each card, the
      workspace's spend threshold and default grants, and the eight verbs.
    name: workspace-actions
  - description: >-
      The Getting started checklist: a workspace's progress through the six
      steps from its first people search to its first launched sequence.
    name: onboarding
  - description: Senders, connected mailboxes, tags, and the Google connect flow.
    name: senders
  - description: The workspace do-not-contact list, enforced before every send.
    name: suppression
  - description: >-
      The workspace's recontact rule: how long before anyone hears from us
      again.
    name: contact_cooldown
  - description: 'Sequence authoring: the graph, the table-backed audience, previews.'
    name: sequences
  - description: >-
      The outbound agent behind a sequence: the voice it writes in, its
      per-message prompts, what it wrote and what people told it.
    name: outbound-agents
  - description: >-
      The LinkedIn channel: connecting an account to a sender, its safety limits
      and history, and the protocol the browser extension speaks.
    name: linkedin
  - description: >-
      The approval queue: everything waiting on a person across every sender and
      channel, and the workspace's manual or automatic modes per channel.
    name: outreach
  - description: 'The unified outreach inbox: threads, replies, labels, events.'
    name: inbox
  - description: 'The AI reply layer: workspace settings, drafts, and approval.'
    name: inbox-ai
  - description: Notification rules, per-user preferences, and the Slack connection.
    name: notifications
  - description: Endpoints for seeing all available integration types.
    name: integration-types
  - description: Endpoints for listing, checking and deleting integrations.
    name: integrations
  - description: >-
      Create, preview and update an integration of any type: the body's
      integration_type picks the config and credentials it takes.
    name: integration-specific
  - description: Endpoints for the generic OAuth install/claim app-listings engine.
    name: app-listings
  - description: Endpoints for creating and managing API keys.
    name: apikey
  - description: >-
      AI apps connected to the workspace: Claude, ChatGPT, Claude Code or any
      other MCP client a person signed in to Oneprofile's MCP server with.
    name: ai_apps
  - description: Endpoints for managing billing and subscription information.
    name: billing
  - description: >-
      Accounts: every company the workspace's tables name, with the people at
      it, its key facts, its tables, its org chart and what went to its people;
      the tables that feed it (Sources) and the merges a person made.
    name: accounts
  - description: Endpoints for creating and managing tables.
    name: tables
  - description: Endpoints for table columns, formula previews, and on-demand column runs.
    name: table-columns
  - description: Endpoints for table rows and manual cell edits.
    name: table-rows
  - description: Endpoints for observing and cancelling table recompute runs.
    name: table-runs
  - description: >-
      Endpoints for org-shared per-column display preferences: hidden, pinned,
      width, and color tint.
    name: table-ui-prefs
  - description: >-
      Endpoints for the org-shared names given to the column tint palette: what
      this organization calls each color. Org-level, not per-table.
    name: table-column-color-labels
  - description: >-
      Endpoints for the enrichment action catalog, model list, presets, draft
      generation, and saved agents.
    name: table-enrichments
  - description: >-
      Endpoints for an agent's Preview: example rows run one at a time, and a
      Looks good on each. Needs work lives under agent-learnings.
    name: agent-training
  - description: >-
      An agent's learnings, the one-line rules it follows on every output, and
      the thumbs down that teaches them: give one with what was wrong, list the
      ones on a subject, Undo one, and price the redo it would run.
    name: agent-learnings
  - description: >-
      The durable audit trail of a table's enrichment actions: configured,
      edited, run, cancelled, and settled cost.
    name: table-enrichment-audit-logs
  - description: Endpoints for saving and applying column templates.
    name: table-templates
  - description: Server-sent change feed for a table's grid.
    name: table-events
  - description: 'Endpoints for org-shared saved table views: sort, filters, hidden columns.'
    name: table-views
  - description: >-
      Endpoints for PER-USER table preferences: favorites and recently opened.
      Unlike the rest of the table surface these are personal, so two members of
      one organization legitimately see different answers.
    name: table-user-prefs
  - description: >-
      Endpoints for building a table from an uploaded CSV: upload and preview
      the inferred columns, commit the reviewed mapping, then poll the row load.
    name: table-imports
  - description: Endpoint for downloading a table's rows as CSV.
    name: table-export
  - description: >-
      Endpoints for the integration a table imports from: attach and preview it,
      promote imported fields into columns, and run the import on demand.
    name: table-sources
  - description: >-
      Endpoints for the webhook URL an app or a tool of your own sends records
      to: what can send them, make the URL, show it again, replace it, revoke
      it, save the app's secrets, resume a paused feed, and read and retry the
      deliveries that did not fit.
    name: table-webhooks
  - description: >-
      Endpoints for a table's recurring import cadence: set it, pause it, and
      read the next fire times.
    name: table-schedules
  - description: >-
      Endpoints for pushing a table's rows out to a connected integration: list
      writable destinations, derive their write capabilities, and map export
      columns.
    name: table-writeback
  - description: >-
      Endpoints backing a lookup column's setup: the connections whose records a
      column could read, and the identity fields one record type can be looked
      up by.
    name: table-integration-lookup
  - description: >-
      Endpoints for sourcing leads from the lead database: count and preview
      matches, land them in a table, and keep saved searches. Alongside people
      and company searches, leads can be sourced from buying signals (what a
      company or person just did), with a catalog endpoint behind the picker
      that builds them.
    name: find-leads
  - description: >-
      Endpoints for discovering a domain's subdomains from public certificate
      logs and landing the results in a table.
    name: find-subdomains
  - description: Endpoints for the credit balance meter and usage reporting.
    name: credits
  - description: >-
      Endpoints for the workspace referral program: the shareable link, the
      friends who joined through it, and claiming a code after signup.
    name: referral
  - description: >-
      Endpoints for the affiliate program's own dashboard: enrolling and
      claiming a code, the summary, stats and activity feed, the commission
      ledger, and identity verification and payouts.
    name: affiliate
  - description: >-
      Endpoints for recording where a new workspace came from: the marketing
      page or campaign its signup link carried, sent once after signup.
    name: attribution
  - description: >-
      Endpoints for the design partner program's customer surface: whether this
      workspace is a design partner, the badges its feedback has earned, and
      sending and reading that feedback.
    name: design-partner
  - description: >-
      Endpoints for the org-level AI business context (company description,
      ideal customer profile, buyer personas, interest signals and social
      proof), plus domain-based generation and the reference documents whose
      summaries ride alongside those fields.
    name: ai-context
  - description: >-
      Endpoints for the signed-in user's Google Drive connection: starting and
      finishing the OAuth grant, checking or dropping it, and minting the
      short-lived token the Google Picker needs.
    name: google-drive
paths:
  /table-imports/{import_id}/commit/:
    post:
      tags:
        - table-imports
      summary: >-
        Create the table, or pick the table to write into, and start loading its
        rows
      description: >-
        Create the table and its columns from the reviewed mapping, then start
        the row load in the background. With `into_table_id`, the rows go into
        that table instead: added, or, with `match_source_index`, matched to the
        rows it has and updated, the rest added.


        The table exists as soon as this returns, so the client can navigate to
        it immediately and watch rows arrive. Poll the job to follow progress.


        Committing twice is refused: the second call finds the import already
        running rather than creating a second table.
      operationId: commit_table_import_csv
      parameters:
        - in: path
          name: import_id
          required: true
          schema:
            format: uuid
            title: Import Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TableImportCommitRequestSchema'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableImportJobResponseSchema'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequiredResponse'
          description: Plan table limit reached. Upgrade to create more tables.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
          description: Import, folder or table not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableEntityResponse'
          description: Invalid request made to the API.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerErrorResponse'
          description: Internal server error.
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerErrorResponse'
          description: Bad gateway error.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerErrorResponse'
          description: Service unavailable.
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    TableImportCommitRequestSchema:
      description: >-
        Request body for committing an upload.


        Send the mapping the user reviewed. Omitting a field's entry leaves that

        column out of the table entirely, which is how a user drops a column
        they

        do not want.
      properties:
        columns:
          description: The reviewed mapping, in display order.
          items:
            $ref: '#/components/schemas/ImportColumnMappingSchema'
          maxItems: 500
          minItems: 1
          title: Columns
          type: array
        folder_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: >-
            The folder to make the table in, as when the file is imported from
            inside one on the Tables list. Leave it out for the top level.
          title: Folder Id
        into_table_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: >-
            A table that exists already, to bring the rows into instead of
            making one. A column whose `name` is one of the table's columns
            writes into it, read as that column's type; any other column is
            added to the table. A column the table computes (a formula, an
            enrichment) cannot be written into. Leave it out to make a new
            table.
          title: Into Table Id
        match_source_index:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: >-
            With `into_table_id`, the `source_index` of the field rows are
            matched on: it must be imported, into a text column the table has
            (an email, a domain, a LinkedIn URL). A row whose value names a row
            the table has updates every such row, and its blank values leave
            those rows' cells as they are; the rest are added. Emails compare in
            any case, domains and web addresses by their bare domain, LinkedIn
            addresses by their profile or company page, other text by its words
            in any case. Leave it out to add every row.
          title: Match Source Index
        max_rows:
          anyOf:
            - minimum: 1
              type: integer
            - type: 'null'
          description: >-
            How many of the file's data rows to write, counted from the top: 1
            or more. Clamped by the plan's own ceiling, so this can only ever
            import less than the preview's `importable_row_count`, never more.
            Omit it, or send null, for every row the plan allows; that is also
            how a file with a header and no data rows is committed. Named for
            the user's choice, unlike the preview's `row_limit`, which is the
            plan's cap.
          title: Max Rows
        row_ranges:
          anyOf:
            - items:
                $ref: '#/components/schemas/ImportRowRangeSchema'
              maxItems: 1000
              minItems: 1
              type: array
            - type: 'null'
          description: >-
            Which of the file's data rows to write, the way a print dialog picks
            pages: rows 1 to 10 and 21 to 30 are two ranges. Rows are numbered
            as `row_errors` numbers them, from 1 under the header, blank lines
            not counted. Overlapping and touching ranges are merged, an end past
            the file's last row is brought back to it, and a choice bigger than
            the plan's `row_limit` keeps its first rows up to it. Rows past the
            preview's `importable_row_count` may be chosen: the plan caps how
            many rows a table holds, not which. A choice wholly past the end of
            the file is refused, and so is one of more than 100 ranges once
            merged. Send this or `max_rows`, never both; omit both for every row
            the plan allows.
          title: Row Ranges
        table_name:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: >-
            Name for the table this creates. Required unless `into_table_id`
            names a table to write into, when it is not read.
          title: Table Name
      required:
        - columns
      title: TableImportCommitRequestSchema
      type: object
    TableImportJobResponseSchema:
      description: |-
        A CSV import's current state.

        Poll this until `status` is terminal. `imported_rows` climbs as the load
        runs, so it doubles as a progress bar against `total_rows`. Every row is
        added: a value that cannot be read leaves its one cell blank, counted in
        `unreadable_cells` and listed in `row_errors`.
      properties:
        columns:
          description: The mapping in force.
          items:
            $ref: '#/components/schemas/ImportColumnMappingSchema'
          title: Columns
          type: array
        created_at:
          format: date-time
          title: Created At
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: Why the whole job failed, if it did.
          title: Error
        failed_rows:
          description: >-
            Of `imported_rows`, the rows added with at least one cell left blank
            because its value could not be read: the exact count. None of them
            was left out.
          title: Failed Rows
          type: integer
        id:
          format: uuid
          title: Id
          type: string
        imported_rows:
          description: Rows added so far, including rows with a cell left blank.
          title: Imported Rows
          type: integer
        into_existing_table:
          default: false
          description: Whether the rows went into a table that existed before the import.
          title: Into Existing Table
          type: boolean
        left_out_rows:
          default: 0
          description: >-
            Rows of the file not brought in because the table had no room left
            for a new row: an import into a table that exists leaves out at once
            the rows past its room, and one that matches rows leaves out the new
            ones that find none.
          title: Left Out Rows
          type: integer
        match_source_index:
          anyOf:
            - type: integer
            - type: 'null'
          description: The field rows were matched on, or null when every row was added.
          title: Match Source Index
        row_errors:
          description: >-
            A capped sample of the unreadable cells, one entry per cell with the
            file's original text; `unreadable_cells` carries the full count.
          items:
            $ref: '#/components/schemas/ImportRowErrorSchema'
          title: Row Errors
          type: array
        shared_key_rows:
          default: 0
          description: >-
            Rows the table already had that were updated besides the first row
            holding a key a row of the file matched: every row holding that key
            is updated alike. Not counted in `updated_rows`, which counts the
            file's rows.
          title: Shared Key Rows
          type: integer
        source_filename:
          title: Source Filename
          type: string
        status:
          $ref: '#/components/schemas/TableImportStatus'
        table_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: The table this created; null before commit.
          title: Table Id
        total_rows:
          description: >-
            Rows this import will write: the file's rows, capped by the plan and
            by whatever `max_rows` the commit asked for, or the rows its
            `row_ranges` hold.
          title: Total Rows
          type: integer
        unreadable_cells:
          description: >-
            Cells left blank because their value could not be read: the exact
            count.
          title: Unreadable Cells
          type: integer
        updated_at:
          format: date-time
          title: Updated At
          type: string
        updated_rows:
          default: 0
          description: >-
            Of `imported_rows`, the rows that updated a row the table already
            had, matched on `match_source_index`, rather than adding one.
          title: Updated Rows
          type: integer
      required:
        - id
        - table_id
        - status
        - source_filename
        - total_rows
        - imported_rows
        - failed_rows
        - unreadable_cells
        - error
        - row_errors
        - columns
        - created_at
        - updated_at
      title: TableImportJobResponseSchema
      type: object
    UnauthorizedResponse:
      properties:
        detail:
          description: The detail of why the request is unauthorized.
          title: Detail
          type: string
      required:
        - detail
      title: UnauthorizedResponse
      type: object
    PaymentRequiredResponse:
      properties:
        detail:
          description: The detail of why payment is required.
          title: Detail
          type: string
      required:
        - detail
      title: PaymentRequiredResponse
      type: object
    ForbiddenResponse:
      properties:
        detail:
          description: The detail of why the request is forbidden.
          title: Detail
          type: string
      required:
        - detail
      title: ForbiddenResponse
      type: object
    NotFoundResponse:
      properties:
        detail:
          description: The detail of why the resource was not found.
          title: Detail
          type: string
      required:
        - detail
      title: NotFoundResponse
      type: object
    UnprocessableEntityResponse:
      properties:
        detail:
          description: >-
            The detail of the error. This is the error message to show to the
            user. You should also use the issues field to show more detailed
            error messages per field. Use this field for a single liner error
            message.
          title: Detail
          type: string
        issues:
          description: >-
            The issues that caused the error. There can be multiple issues. Each
            issue is a user-facing error message.
          items:
            $ref: '#/components/schemas/UnprocessableEntityIssue'
          title: Issues
          type: array
      required:
        - detail
        - issues
      title: UnprocessableEntityResponse
      type: object
    ServerErrorResponse:
      properties:
        detail:
          description: The detail of why the server returned an error.
          title: Detail
          type: string
      required:
        - detail
      title: ServerErrorResponse
      type: object
    ImportColumnMappingSchema:
      description: How one CSV field should become one table column.
      properties:
        column_type:
          $ref: '#/components/schemas/TableColumnType'
          description: The type to create the column with.
        currency_code:
          anyOf:
            - maxLength: 3
              minLength: 3
              pattern: ^[A-Za-z]{3}$
              type: string
            - type: 'null'
          description: >-
            For a new Currency column, its ISO-4217 currency (the preview's
            `currency_code`). An amount naming another currency is not converted
            into it. Null is USD.
          title: Currency Code
        date_order:
          anyOf:
            - $ref: '#/components/schemas/DateOrder'
            - type: 'null'
          description: >-
            For a Date column, which number comes first in a date written with
            numbers only (the preview's `date_order`, or the person's answer).
            Null reads month first.
        name:
          description: The column's display name.
          maxLength: 255
          minLength: 1
          title: Name
          type: string
        source_index:
          description: The field's zero-based position in the file.
          minimum: 0
          title: Source Index
          type: integer
      required:
        - source_index
        - name
        - column_type
      title: ImportColumnMappingSchema
      type: object
    ImportRowRangeSchema:
      description: >-
        A run of the file's rows to import, both ends included.


        Rows 21 to 30 are `{"first": 21, "last": 30}`, and one row is a range
        whose

        ends are the same. The field that carries the ranges says how its rows
        are

        numbered.
      properties:
        first:
          description: The first row of the range, counted from 1.
          minimum: 1
          title: First
          type: integer
        last:
          description: The last row of the range; `first` for one row.
          minimum: 1
          title: Last
          type: integer
      required:
        - first
        - last
      title: ImportRowRangeSchema
      type: object
    ImportRowErrorSchema:
      description: >-
        One cell the import could not read: the row was added with this cell
        blank.
      properties:
        column:
          anyOf:
            - type: string
            - type: 'null'
          description: The column the cell is in; null on imports made before it was kept.
          title: Column
        reason:
          description: Which column rejected the value, and why.
          title: Reason
          type: string
        row_number:
          description: One-based data-row number in the file.
          title: Row Number
          type: integer
        value:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The file's original text for the cell, cut at 500 characters; null
            on imports made before it was kept.
          title: Value
      required:
        - row_number
        - reason
      title: ImportRowErrorSchema
      type: object
    TableImportStatus:
      description: >-
        Where a CSV import has got to.


        ``PENDING`` is a parsed-and-stored upload the user has not committed
        yet:

        it holds an inferred mapping and nothing else. ``RUNNING`` means the
        table

        and its columns exist and the row job is inserting. The two terminal
        states

        are absorbing: a job never leaves them.
      enum:
        - pending
        - running
        - succeeded
        - failed
      title: TableImportStatus
      type: string
    UnprocessableEntityIssue:
      properties:
        input:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: boolean
            - items: {}
              type: array
            - additionalProperties: true
              type: object
          description: The user's input that caused the error.
          title: Input
        loc:
          description: >-
            The location of the error. Always contains 1 or 2 elements. The
            first element is the type of location (e.g. 'body', 'query', 'path',
            'header'). The second element is the name of the field that caused
            the error. If the error is not related to a specific field, the
            second element is not present.
          items:
            type: string
          title: Loc
          type: array
        msg:
          description: The message of the error. The error message to show to the user.
          title: Msg
          type: string
        type:
          description: >-
            The type of the error. Useful for frontend code to handle different
            types of errors.
          title: Type
          type: string
      required:
        - loc
        - msg
        - type
        - input
      title: UnprocessableEntityIssue
      type: object
    TableColumnType:
      description: >-
        The type a user picks for a table column.


        Ordered as the picker shows them, which is also the order the groups
        below

        run in: text-ish, then numeric, then choice, then structured.
      enum:
        - text
        - paragraph
        - url
        - email
        - image_url
        - person
        - select
        - number
        - decimal
        - currency
        - checkbox
        - date
        - multi_select
        - list
        - object
      title: TableColumnType
      type: string
    DateOrder:
      description: |-
        Which number comes first in a date written with numbers only (T14).

        "03/01/2024" is March 1 month first and 3 January day first. A file that
        writes a day past 12 in either place settles it; one that never does is
        asked.
      enum:
        - month_first
        - day_first
      title: DateOrder
      type: string
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey
    HTTPBearer:
      scheme: bearer
      type: http

````

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