{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/vessel/refs/heads/main/json-schema/vessel-contact-schema.json",
  "title": "Contact",
  "description": "Information about an individual affiliated with another CRM Object (e.g., a Lead, a Deal, etc)",
  "x-provenance": {
    "generated": "2026-08-13",
    "method": "derived",
    "source": "openapi/vessel-crm-openapi.yml#/components/schemas/Contact",
    "note": "Extracted verbatim from the schema Vessel publishes in its own OpenAPI 3.1.0 definition. No fields were added, renamed or invented."
  },
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Id of the object in the connected CRM."
    },
    "email": {
      "type": "string"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "jobTitle": {
      "type": "string",
      "description": "Not supported by Pipedrive"
    },
    "phone": {
      "type": "string",
      "description": "The primary phone number for this contact"
    },
    "mobilePhone": {
      "type": "string",
      "description": "The primary mobile phone number for this contact. Possibly the same as the phone number."
    },
    "createdTime": {
      "type": "string",
      "description": "The timestamp that the contact was created"
    },
    "modifiedTime": {
      "type": "string",
      "description": "The timestamp the contact was last modified"
    },
    "associations": {
      "type": "object",
      "required": [
        "accountIds",
        "dealIds",
        "leadIds",
        "ownerUserId"
      ],
      "properties": {
        "accountIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "dealIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "leadIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ownerUserId": {
          "type": "string"
        }
      }
    },
    "$native": {
      "$ref": "#/components/schemas/NativeData"
    }
  },
  "required": [
    "id",
    "createdTime",
    "modifiedTime",
    "associations"
  ]
}