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

# Validate uploaded data with column mappings

> Applies column mappings to the uploaded data and validates each row. Returns validation results with errors.



## OpenAPI

````yaml /openapi.json post /api/contact/ingestion/validate
openapi: 3.0.0
info:
  title: GoMobile Backend API
  description: >-
    API documentation for GoMobile telephony platform - automated calling
    campaigns, interactive voice flows, and call management
  version: '1.0'
  contact: {}
servers:
  - url: http://localhost:3000
    description: Local Development
security: []
tags:
  - name: Organizations
    description: Multi-tenant organization management
  - name: Teams
    description: Team structure and hierarchy
  - name: Contacts
    description: Customer contact management (CRM)
  - name: Entities
    description: Business entities management
  - name: Audiences
    description: Contact segmentation and groups
  - name: Programs
    description: Call campaign configuration
  - name: Call Flows
    description: Interactive call flow builder
paths:
  /api/contact/ingestion/validate:
    post:
      tags:
        - Contact Ingestion
      summary: Validate uploaded data with column mappings
      description: >-
        Applies column mappings to the uploaded data and validates each row.
        Returns validation results with errors.
      operationId: IngestionController_validate
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateRequestDto'
      responses:
        '200':
          description: Validation completed
        '400':
          description: Invalid session or column mappings
        '404':
          description: Session not found or expired
components:
  schemas:
    ValidateRequestDto:
      type: object
      properties:
        sessionId:
          type: string
          description: Session ID from upload
          format: uuid
        columnMappings:
          description: Column to field mappings
          type: array
          items:
            $ref: '#/components/schemas/ColumnMappingDto'
      required:
        - sessionId
        - columnMappings
    ColumnMappingDto:
      type: object
      properties:
        column:
          type: number
          description: Column index (0-indexed)
          example: 0
        field:
          type: string
          description: >-
            Target field name. Standard fields: firstName, lastName,
            primaryPhone, etc. Custom attributes: custom.{name}
          example: primaryPhone
      required:
        - column
        - field

````