{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/copper-financial/main/json-schema/copper-financial-person-schema.json",
  "title": "Person",
  "x-generated": "2026-10-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/copper-financial-openapi.json#/components/schemas/Person",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the person"
    },
    "name": {
      "type": "string",
      "description": "The first and last name of the person"
    },
    "prefix": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name prefix"
    },
    "first_name": {
      "type": "string",
      "description": "First name of the person"
    },
    "middle_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Middle name of the person"
    },
    "last_name": {
      "type": "string",
      "description": "Last name of the person"
    },
    "suffix": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name suffix"
    },
    "address": {
      "type": [
        "object",
        "null"
      ],
      "description": "An object containing the person's address",
      "properties": {
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "postal_code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "assignee_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Unique identifier of the user that will be the owner of the person"
    },
    "company_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ID of the associated company"
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the associated company"
    },
    "contact_type_id": {
      "type": "integer",
      "description": "Unique identifier of the contact type"
    },
    "details": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the person"
    },
    "emails": {
      "type": "array",
      "description": "An array of email addresses belonging to the person",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "category": {
            "type": "string"
          }
        }
      }
    },
    "phone_numbers": {
      "type": "array",
      "description": "An array of phone numbers belonging to the person",
      "items": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "description": "A phone number"
          },
          "category": {
            "type": "string",
            "description": "The category of the phone number"
          }
        }
      }
    },
    "socials": {
      "type": "array",
      "description": "An array of social profiles belonging to the person",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL of a social profile"
          },
          "category": {
            "type": "string",
            "description": "The category of the social profile"
          }
        }
      }
    },
    "tags": {
      "type": "array",
      "description": "An array of the tags associated with the person",
      "items": {
        "type": "string"
      }
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "The professional title of the person"
    },
    "websites": {
      "type": "array",
      "description": "An array of websites belonging to the person",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL of a website"
          },
          "category": {
            "type": "string",
            "description": "The category of the website"
          }
        }
      }
    },
    "custom_fields": {
      "type": "array",
      "description": "An array of custom field values belonging to the person. When custom_field_computed_values query parameter is true, each field will include a computed_value with human-readable labels for Dropdown and Multi-select fields.",
      "items": {
        "type": "object",
        "properties": {
          "custom_field_definition_id": {
            "type": "integer",
            "description": "The id of the custom field definition for which this custom field stores a value"
          },
          "value": {
            "description": "The value (number, string, option id, or timestamp) of this custom field",
            "nullable": true
          },
          "computed_value": {
            "description": "The human-readable value of this custom field. For Dropdown/Multi-select fields, this contains the option label(s) instead of IDs. Only present when custom_field_computed_values=true is specified.",
            "nullable": true
          }
        }
      }
    },
    "date_created": {
      "type": "integer",
      "description": "A Unix timestamp representing the time at which this person was created"
    },
    "date_modified": {
      "type": "integer",
      "description": "A Unix timestamp representing the time at which this person was last modified"
    },
    "date_last_contacted": {
      "type": [
        "integer",
        "null"
      ],
      "description": "A Unix timestamp representing the time at which this person was last contacted"
    },
    "interaction_count": {
      "type": "integer",
      "description": "The number of interactions with this person"
    },
    "leads_converted_from": {
      "type": "array",
      "description": "An array of lead IDs that were converted to this person",
      "items": {
        "type": "integer"
      }
    },
    "date_lead_created": {
      "type": [
        "integer",
        "null"
      ],
      "description": "A Unix timestamp representing when the lead was created before conversion"
    }
  },
  "required": [
    "id",
    "name"
  ]
}