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

# Bulk Create Contacts

> Creates contacts in bulk with associated tags. Accepts an array of contact objects and a list of tags.



## OpenAPI

````yaml POST /v2/bulk/create/contacts/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /v2/bulk/create/contacts/:
    post:
      summary: Bulk create contacts
      description: >-
        Creates contacts in bulk with associated tags. Accepts an array of
        contact objects and a list of tags.
      parameters:
        - name: Company-Name
          in: header
          required: true
          description: Schema name for multi-tenancy
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contact:
                  type: array
                  description: List of contacts to be created
                  items:
                    type: object
                    properties:
                      phone:
                        type: string
                        example: '+9821985448'
                    required:
                      - phone
                tags:
                  type: array
                  description: Tags to associate with contacts
                  items:
                    type: string
                    example: Test campaign
              required:
                - contact
                - tags
            example:
              contact:
                - phone: '+9821985448'
              tags:
                - Test campaign
      responses:
        '200':
          description: Bulk contact creation started successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkCreateContactResponse'
        '400':
          description: Invalid request or missing data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BulkCreateContactResponse:
      type: object
      properties:
        message:
          type: string
          example: Bulk upload process started. Check status later.
        task_id:
          type: object
          properties:
            message:
              type: string
              example: Contacts uploaded successfully!
            created:
              type: integer
              description: Number of new contacts created
              example: 0
            updated:
              type: integer
              description: Number of existing contacts updated
              example: 1
            failed_rows:
              type: array
              description: Rows that failed during the upload
              items:
                type: object
              example: []
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````