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

# Preview campaign import from Excel file

> Parse an Excel file and return detected column mapping + sample rows. No DB writes.



## OpenAPI

````yaml /generated/specs/sales.json post /api/v1/campaigns/preview
openapi: 3.0.0
info:
  title: Raul API - Ventas
  description: >-
    Cotizaciones, pipeline, outreach comercial, equipos cotizables y ventas de
    equipamiento.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/campaigns/preview:
    post:
      tags:
        - campaigns
      summary: Preview campaign import from Excel file
      description: >-
        Parse an Excel file and return detected column mapping + sample rows. No
        DB writes.
      operationId: CampaignsController_preview
      parameters: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '201':
          description: Preview result with detected mapping and sample rows
        '400':
          description: Invalid file or unsupported format

````

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