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

# Transfer Contacts

> Triggers the export of contacts from Salesforce to another CRM (e.g., GHL).



## OpenAPI

````yaml POST /v2/send-contacts-to-crms/
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/send-contacts-to-crms/:
    post:
      summary: Send Contacts to CRMs
      description: >-
        Triggers the export of contacts from Salesforce to another CRM (e.g.,
        GHL).
      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:
                is_salesforce_to_ghl_task:
                  type: boolean
                  description: Flag to start the Salesforce to GHL export task
                  example: true
                ghl_to_salesforce:
                  type: boolean
                  description: Flag to start the GHL to Salesforce export task
                  example: false
              required:
                - is_salesforce_to_ghl_task
                - is_ghl_to_salesforce
            example:
              is_salesforce_to_ghl_task: true
              is_ghl_to_salesforce: true
      responses:
        '200':
          description: Export task started successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendContactsToCRMsResponse'
        '400':
          description: Invalid request or missing data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SendContactsToCRMsResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        errors:
          type: array
          description: List of any errors encountered during the task start
          items:
            type: string
          example: []
        response:
          type: object
          properties:
            status:
              type: string
              description: Status message of the task
              example: Salesforce → GHL task started.
        message:
          type: string
          description: General message about the request
          example: Export task has been started.
    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

````