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

# Add Input Data

> Append new rows with input data to the table.

## Overview

This endpoint adds rows to a table before or during enrichment workflows.
Those rows can come from your own source or from earlier Extruct workflows.

Each item in `rows` creates one row. Put row values inside `data`.
On `company` tables, `input` is usually the main entry field and should hold the company's official website domain or URL.
On `people` tables, include the row fields required by the downstream columns you plan to run.

Use `run=false` when you want to load or inspect rows first.
Use `run=true` when new rows should immediately start table execution.

## Example request

```bash theme={null}
export EXTRUCT_API_TOKEN="YOUR_API_TOKEN"
export TABLE_ID="YOUR_TABLE_ID"

curl -X POST "https://api.extruct.ai/v1/tables/${TABLE_ID}/rows" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${EXTRUCT_API_TOKEN}" \
  -d '{
    "rows": [
      {"data": {"input": "https://stripe.com"}},
      {"data": {"input": "https://openai.com"}}
    ],
    "run": false
  }'
```

## Key parameters

* `table_id` (required): target table identifier.
* `rows` (required): array of row objects; each row must include `data`.
* `run` (optional): defaults to `false`; set `true` to trigger run after insert.

## Success signal

A successful response returns created row metadata and IDs.

## Common errors

### `401 Unauthorized`

Check that your header is `Authorization: Bearer ${EXTRUCT_API_TOKEN}`.

### `404 Not Found`

The table ID is invalid or unavailable in your workspace.

### `422 Unprocessable Entity`

Most often caused by invalid `rows` shape or missing `data`.

## Related endpoints

* [Update Table Rows Endpoint](/api-reference/tables/update-table-rows)
* [Delete Table Rows Endpoint](/api-reference/tables/delete-table-rows)
* [Run Table Endpoint](/api-reference/tables/run-table)

## Related guides

* [AI Tables Basics](/api-guides/ai-tables/ai-table-basics)


## OpenAPI

````yaml post /v1/tables/{table_id}/rows
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /v1/tables/{table_id}/rows:
    post:
      tags:
        - tables
      summary: Create Table Rows
      description: Append new rows with input data to the table.
      operationId: create_table_rows_v1_tables__table_id__rows_post
      parameters:
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            title: Table Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTableRowsInput'
              examples:
                - rows:
                    - data:
                        input: https://extruct.ai
                    - data:
                        input: https://openai.com
                  run: false
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RowDataOutputSchema-Output'
                title: Response Create Table Rows V1 Tables  Table Id  Rows Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CreateTableRowsInput:
      properties:
        rows:
          items:
            $ref: '#/components/schemas/RowDataSchema'
          type: array
          title: Rows
        run:
          type: boolean
          title: Run
          default: false
      type: object
      required:
        - rows
      title: CreateTableRowsInput
    RowDataOutputSchema-Output:
      properties:
        id:
          type: string
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Row creation time.
        parent_row_id:
          anyOf:
            - type: string
            - type: 'null'
          description: ID of the parent row, if any.
        company_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          description: ID of the linked company profile.
        data:
          additionalProperties:
            $ref: '#/components/schemas/TableCellDataSchema'
          type: object
          title: Data
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Additional metadata
        parent_data:
          anyOf:
            - additionalProperties:
                $ref: '#/components/schemas/TableCellDataSchema'
              type: object
            - type: 'null'
          description: Data from the parent row, if requested and available.
      type: object
      required:
        - id
        - created_at
      title: RowDataOutputSchema
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RowDataSchema:
      properties:
        data:
          additionalProperties: true
          type: object
          title: Data
          description: column_key -> value
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Additional metadata
      type: object
      required:
        - data
      title: RowDataSchema
    TableCellDataSchema:
      properties:
        value:
          anyOf:
            - {}
            - type: 'null'
        status:
          $ref: '#/components/schemas/TableCellStatus'
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
      type: object
      required:
        - value
        - status
      title: TableCellDataSchema
    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
    TableCellStatus:
      type: string
      enum:
        - created
        - requested
        - in_progress
        - done
        - failed
      title: TableCellStatus
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````