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

# Import From Csv

> Import contacts from CSV.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/contacts/import/csv
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/contacts/import/csv:
    post:
      tags:
        - contacts
      summary: Import From Csv
      description: Import contacts from CSV.
      operationId: import_from_csv_api_v1_contacts_import_csv_post
      parameters:
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CSVImportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CSVImportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CSVImportRequest:
      properties:
        csv_content:
          type: string
          minLength: 1
          title: Csv Content
        skip_duplicates:
          type: boolean
          title: Skip Duplicates
          default: true
      type: object
      required:
        - csv_content
      title: CSVImportRequest
      description: Request to import contacts from CSV.
    CSVImportResponse:
      properties:
        success:
          type: boolean
          title: Success
        imported:
          type: integer
          title: Imported
        updated:
          type: integer
          title: Updated
        errors:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Errors
        rows_processed:
          type: integer
          title: Rows Processed
      type: object
      required:
        - success
        - imported
        - updated
        - errors
        - rows_processed
      title: CSVImportResponse
      description: Response from CSV import.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````