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

# Insert rows in bulk

> Lists only. Each row needs exactly one reference — `contact_id` or `business_id` — compatible with the list's `object_type`. Duplicates are ignored.



## OpenAPI

````yaml /en/openapi.json post /v1/tables/rows/batch
openapi: 3.0.0
info:
  title: Nuvia API - Company
  description: API documentation for companies
  version: '1.0'
  contact: {}
servers:
  - url: https://api.nuvia.ai
security: []
tags:
  - name: messages
    x-group: Mensagens
  - name: contacts
    x-group: Contatos
  - name: campaigns
    x-group: Campanhas
  - name: tables
    x-group: Tabelas e Listas
  - name: agents
    x-group: Agentes
  - name: conversations
    x-group: Conversas
  - name: inboxes
    x-group: Caixas de Entrada
  - name: knowledge
    x-group: Base de Conhecimento
  - name: Webhooks
    x-group: Webhooks
  - name: campaign-enrollments
    x-group: Inscrições em Campanha
  - name: custom-fields
    x-group: Campos Customizados
paths:
  /v1/tables/rows/batch:
    post:
      tags:
        - tables
      summary: Insert rows in bulk
      description: >-
        Lists only. Each row needs exactly one reference — `contact_id` or
        `business_id` — compatible with the list's `object_type`. Duplicates are
        ignored.
      operationId: TableController_batchInsertRows
      parameters:
        - name: x-company-id
          in: header
          description: >-
            Target company identifier. Required only for global API keys
            (type=global). Ignored for company API keys and human users.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchInsertRowsDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
        - JWT-auth: []
components:
  schemas:
    BatchInsertRowsDto:
      type: object
      properties:
        table_id:
          type: string
          description: Table/list ID
        rows:
          maxItems: 1000
          description: Rows to insert (maximum 1000)
          type: array
          items:
            $ref: '#/components/schemas/BatchRowDto'
      required:
        - table_id
        - rows
    BatchRowDto:
      type: object
      properties:
        contact_id:
          type: string
          description: Contact ID (for contact lists)
        business_id:
          type: string
          description: Business ID (for business lists)
        data:
          type: object
          description: 'Row state data (e.g.: { field: { state, isValid, value } })'
  securitySchemes:
    JWT-auth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Token JWT de autenticação

````