{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-contact-import-request-schema.json",
  "title": "ContactImportRequest",
  "description": "POST /contacts/import request body.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-contacts-api-openapi.yml#/components/schemas/ContactImportRequest",
  "type": "object",
  "required": [
    "source",
    "contacts"
  ],
  "properties": {
    "source": {
      "type": "string",
      "description": "Your label for this import (e.g. \"acme_crm\"). Lowercase slug, 1-40 chars: letters, digits, \"_\", \"-\"."
    },
    "contacts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactImportRow"
      },
      "description": "Up to 5000 rows per call."
    }
  },
  "$defs": {
    "ContactImportRow": {
      "type": "object",
      "description": "One contact row in a POST /contacts/import batch.",
      "properties": {
        "fullName": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "emails": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "phones": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "websites": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "note": {
          "type": "string"
        },
        "photoUrl": {
          "type": "string"
        },
        "externalId": {
          "type": "string",
          "description": "Your own stable id for this person (a CRM record id, etc). Optional, but STRONGLY recommended: re-POSTing the same externalId later updates the same contact instead of creating a duplicate - without it, matching falls back to email/phone only, same as a plain file import."
        }
      }
    }
  }
}