{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-contact-schema.json",
  "title": "Contact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-contact-api-openapi.yml#/components/schemas/Contact",
  "properties": {
    "is_delete_protected": {
      "type": "boolean",
      "description": "Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier of entity.",
      "readOnly": true
    },
    "is_deleted": {
      "type": "boolean",
      "description": "Specifies if the entity is considered deleted.",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time."
    },
    "contact_type": {
      "type": "string",
      "format": "uri",
      "description": "Contact type that classifies this contact. Contact types are configurable per team space and drive which form, fields and pipelines apply.\n\nRelation to ContactType. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ContactType' object for properties."
    },
    "currency_exchange_rates_list": {
      "type": "string",
      "format": "uri",
      "description": "Currency exchange rate list used to convert monetary fields linked to this contact. Empty to inherit the team space default.\n\nRelation to CurrencyExchangeRatesList. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'CurrencyExchangeRatesList' object for properties."
    },
    "owner": {
      "type": "string",
      "format": "uri",
      "description": "Sales user who owns this contact.\n\nRelation to Client. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Client' object for properties."
    },
    "picture": {
      "type": "string",
      "format": "uri",
      "description": "Profile picture associated with the contact.\n\nRelation to CloudObject. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'CloudObject' object for properties."
    },
    "unit": {
      "type": "string",
      "format": "uri",
      "description": "Sales unit this contact is assigned to. Determines which team members can see the record under unit-based sharing.\n\nRelation to SalesUnit. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'SalesUnit' object for properties."
    },
    "address": {
      "type": "string",
      "description": "Street address of the contact."
    },
    "city": {
      "type": "string",
      "description": "City of the contact address."
    },
    "comments": {
      "type": "string",
      "description": "Free-form notes describing the contact."
    },
    "contact_type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the contact type assigned to this contact."
    },
    "country": {
      "type": "string",
      "description": "Country of the contact address."
    },
    "currency_exchange_rates_list_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the currency exchange rate list applied to this contact."
    },
    "email1": {
      "type": "string",
      "description": "Primary email address of the contact. Used as default recipient for emails sent from Coevera."
    },
    "email2": {
      "type": "string",
      "description": "Additional email address."
    },
    "email3": {
      "type": "string",
      "description": "Additional email address."
    },
    "email4": {
      "type": "string",
      "description": "Additional email address."
    },
    "email5": {
      "type": "string",
      "description": "Additional email address."
    },
    "first_name": {
      "type": "string",
      "description": "Given name of the contact."
    },
    "gender": {
      "type": "integer",
      "description": "Gender of the contact (e.g. Male, Female, Other).\n\nInteger enum value: 0 - Unknown, 1 - Male, 2 - Female, 3 - NonBinary",
      "enum": [
        0,
        1,
        2,
        3
      ]
    },
    "is_archived": {
      "type": "boolean",
      "description": "True when the contact has been archived. Archived contacts remain readable but are hidden from active lists and cannot be edited until reactivated."
    },
    "last_name": {
      "type": "string",
      "description": "Family name of the contact."
    },
    "middle_name": {
      "type": "string",
      "description": "Middle name of the contact, if applicable."
    },
    "owner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the contact owner."
    },
    "phone1": {
      "type": "string",
      "description": "Primary phone number of the contact. Used as default target for click-to-call."
    },
    "phone2": {
      "type": "string",
      "description": "Additional phone number."
    },
    "phone3": {
      "type": "string",
      "description": "Additional phone number."
    },
    "phone4": {
      "type": "string",
      "description": "Additional phone number."
    },
    "phone5": {
      "type": "string",
      "description": "Additional phone number."
    },
    "picture_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the profile picture document."
    },
    "position": {
      "type": "string",
      "description": "Job title or position of the contact."
    },
    "quick_account_name": {
      "type": "string",
      "description": "Free-text company name used when the contact is not linked to an actual Account record. Lets integrators capture the company without creating a separate Account."
    },
    "share_mode": {
      "type": "integer",
      "description": "Sharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharing_units / sharing_clients lists control who is granted access.\n\nInteger enum value: 0 - Standard, 1 - Private, 2 - AllView, 3 - AllEdit",
      "enum": [
        0,
        1,
        2,
        3
      ]
    },
    "state_province": {
      "type": "string",
      "description": "State or province of the contact address."
    },
    "title": {
      "type": "string",
      "description": "Honorific or salutation prefix (e.g. Mr., Ms., Dr.) shown before the name."
    },
    "unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the sales unit."
    },
    "zip_code": {
      "type": "string",
      "description": "ZIP or postal code of the contact address."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "formatted_name": {
      "type": "string",
      "description": "Display version of the contact name (title, first, middle, last). Used in lists and references."
    },
    "social_media": {
      "type": "string",
      "format": "uri",
      "description": "Social network profiles linked to this contact (e.g. LinkedIn, Facebook).\n\nRelation to ContactSocialRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ContactSocialRelation' object for properties."
    },
    "primary_account": {
      "type": "string",
      "format": "uri",
      "description": "Primary account this contact belongs to. Set automatically when the contact has an account relation marked as primary.\n\nRelation to Account. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Account' object for properties."
    },
    "account_relations": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ContactAccountRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ContactAccountRelation' object for properties."
      },
      "description": "Accounts this contact is linked to. Each link records the role and position the contact has at the related account."
    },
    "sharing_units": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ContactSharingSalesUnitRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ContactSharingSalesUnitRelation' object for properties."
      },
      "description": "Sales units that have been granted shared access to this contact. Editable only when share_mode allows unit sharing."
    },
    "sharing_clients": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ContactSharingClientRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ContactSharingClientRelation' object for properties."
      },
      "description": "Users that have been granted shared access to this contact. Editable only when share_mode allows user sharing."
    },
    "documents": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to CloudObjectRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'CloudObjectRelation' object for properties."
      },
      "description": "Documents linked to this contact."
    },
    "exchange_entity_id": {
      "type": "string",
      "description": "External identifier of the record in the linked third-party service (e.g. Google, Microsoft 365, Exchange). Maintained by the sync engine."
    },
    "gapi_entity_id": {
      "type": "string",
      "description": "External identifier of the record in the linked third-party service (e.g. Google, Microsoft 365, Exchange). Maintained by the sync engine."
    },
    "o365_entity_id": {
      "type": "string",
      "description": "External identifier of the record in the linked third-party service (e.g. Google, Microsoft 365, Exchange). Maintained by the sync engine."
    },
    "is_favorite": {
      "type": "boolean",
      "description": "True when the current authenticated user has marked this contact as favorite. Per-user."
    },
    "primary_account_account_roles": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ContactAccountAccountRoleRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ContactAccountAccountRoleRelation' object for properties."
      },
      "description": "Roles of Contact in his primary Account."
    },
    "primary_account_position": {
      "type": "string",
      "description": "Job position of Contact in his primary Account."
    },
    "account_position": {
      "type": "string",
      "description": "Job position of Contact in his primary Account or quick account position if Contact has no primary Account."
    },
    "is_unsubscribed": {
      "type": "boolean",
      "description": "If account has any unsubscribed email."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to TagRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'TagRelation' object for properties."
      },
      "description": "Tag labels applied to this contact."
    },
    "static_profiles": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ProfileRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ProfileRelation' object for properties."
      },
      "description": "Saved view profiles this contact currently matches."
    },
    "primary_account_relationship": {
      "type": "string",
      "description": "Org chart relationship of Contact in his primary Account."
    },
    "modified_by_user": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the most recent modification made by an end user (excluding system changes). Read-only; computed by Coevera."
    }
  },
  "required": [
    "is_delete_protected",
    "id",
    "contact_type",
    "owner",
    "unit",
    "owner_id",
    "formatted_name",
    "is_favorite"
  ]
}