> ## 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.

# Preview de arquivo antes de importar



## OpenAPI

````yaml https://api.nuvia.ai/api/docs/user-json post /v1/tables/preview
openapi: 3.0.0
info:
  title: Nuvia API - Empresa
  description: Documentação da API para empresas
  version: '1.0'
  contact: {}
servers:
  - url: https://api.nuvia.ai
security: []
tags:
  - name: auth
    description: Autenticação
paths:
  /v1/tables/preview:
    post:
      tags:
        - tables
      summary: Preview de arquivo antes de importar
      operationId: TableController_preview
      parameters:
        - name: x-company-id
          in: header
          description: >-
            Identificador da empresa-alvo. Obrigatório apenas para API Keys
            globais (type=global). Ignorado para API Keys de empresa e usuários
            humanos.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviewTableResponseDto'
      security:
        - JWT-auth: []
components:
  schemas:
    PreviewTableResponseDto:
      type: object
      properties:
        columns:
          description: Colunas detectadas
          type: array
          items:
            type: object
        rows:
          description: Primeiras 10 linhas para preview
          type: array
          items:
            type: object
        total_rows:
          type: number
          description: Total de linhas no arquivo
        encoding:
          type: string
          description: Encoding detectado
      required:
        - columns
        - rows
        - total_rows
        - encoding
  securitySchemes:
    JWT-auth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Token JWT de autenticação

````