> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Package: contacts

# Namespace: contactV4

# Webhook link: https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/contact-v4/contact-created.md

# Webhook Permissions Scopes IDs:
Read Contacts: SCOPE.DC-CONTACTS.READ-CONTACTS

## Introduction

Triggered when a contact is created.

---

## REST API

### Schema

```
Webhook: Contact Created
Description: Triggered when a contact is created.
Event body:
 - name: id | type: string | description: Unique event ID. Allows clients to ignore duplicate events.
 - name: entityFqdn | type: string | description: Fully qualified domain name of the entity associated with the event.
 - name: slug | type: string | description: Event name.
 - name: entityId | type: string | description: ID of the entity associated with the event.
 - name: eventTime | type: string (date-time) | description: Event timestamp.
 - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application such as GDPR.
 - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
 - name: createdEvent | type: object | description: Created event details.
    - name: entity | type: Contact | description: The created entity.
        - name: id | type: string | description: Contact GUID.
        - name: revision | type: integer | description: Revision number, which increments by 1 each time the contact is updated. To prevent conflicting changes, the existing `revision` must be specified when updating a contact.
        - name: source | type: ContactSource | description: Details about the contact's source.
           - name: sourceType | type: ContactSourceType | description: Source type.
               - enum: OTHER, ADMIN, WIX_APP, IMPORT, THIRD_PARTY, WIX_BOOKINGS, WIX_CHAT, WIX_EMAIL_MARKETING, WIX_EVENTS, WIX_FORMS, WIX_GROUPS, WIX_HOTELS, WIX_MARKET_PLACE, WIX_MUSIC, WIX_RESTAURANTS, WIX_SITE_MEMBERS, WIX_STORES, WIX_CODE, HOPP
           - name: appId | type: string | description: App GUID, if the contact was created by an app.
        - name: createdDate | type: string | description: Date and time the contact was created.
        - name: updatedDate | type: string | description: Date and time the contact was last updated.
        - name: lastActivity | type: ContactActivity | description: Details about the contact's last action in the site.
           - name: activityDate | type: string | description: Date and time of the last action.
           - name: activityType | type: ContactActivityType | description: Contact's last action in the site.
               - enum:
               -     GENERAL: Visited the site.
               -     CONTACT_CREATED: Became a new contact.
               -     MEMBER_LOGIN: Logged in.
               -     MEMBER_REGISTER: Requested a site membership.
               -     MEMBER_STATUS_CHANGED: Was approved, blocked, or unblocked.
               -     FORM_SUBMITTED: Submitted a form.
               -     INBOX_FORM_SUBMITTED: Started a chat.
               -     INBOX_PAYMENT_REQUEST_PAID: Paid a payment request.
               -     INBOX_MESSAGE_TO_CUSTOMER: Received a message from the site.
               -     INBOX_MESSAGE_FROM_CUSTOMER: Sent a new message to the site.
               -     NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED: Subscribed to a site newsletter through a form.
               -     NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE: Unsubscribed from a site newsletter.
               -     ECOM_PURCHASE: Made a purchase.
               -     ECOM_CART_ABANDON: Abandoned a shopping cart.
               -     ECOM_CHECKOUT_BUYER: Checked out shopping cart and submitted buyer info (but didn’t complete the purchase yet).
               -     BOOKINGS_APPOINTMENT: Booked an appointment.
               -     HOTELS_RESERVATION: Made a Wix Hotels reservation.
               -     HOTELS_PURCHASE: Paid for a Wix Hotels reservation.
               -     HOTELS_CONFIRMATION: Confirmed a Wix Hotels reservation.
               -     HOTELS_CANCEL: Canceled a Wix Hotels reservation.
               -     VIDEO_PURCHASE: Purchased a video.
               -     VIDEO_RENT: Rented a video.
               -     CASHIER_BUTTON_PURCHASE: Made a purchase with a pay button.
               -     ARENA_NEW_LEAD: Became a new Wix Marketplace lead.
               -     EVENTS_RSVP: RSVP'd to an event.
               -     INVOICE_PAY: Paid an invoice.
               -     INVOICE_OVERDUE: An invoice is now overdue.
               -     PRICE_QUOTE_ACCEPT: Accepted a price quote.
               -     PRICE_QUOTE_EXPIRE: A price quote has expired.
               -     RESTAURANTS_ORDER: Ordered food with Wix Restaurants.
               -     RESTAURANTS_RESERVATION: Made a Wix Restaurants reservation.
               -     SHOUTOUT_OPEN: Opened an email from the site.
               -     SHOUTOUT_CLICK: Clicked a link in an email from the site.
               -     CONTACT_MERGED: Merged with another contact.
               -     NEWSLETTER_SUBSCRIPTION_SUBSCRIBE: Subscribed to a site newsletter.
               -     NEWSLETTER_SUBSCRIPTION_PENDING: Subscription status to site newsletters is pending confirmation.
               -     NEWSLETTER_SUBSCRIPTION_NOT_SET: Subscription status to site newsletters is not set.
               -     PHONE_SUBSCRIPTION_SUBSCRIBE: Subscribed to phone notifications.
               -     PHONE_SUBSCRIPTION_PENDING: Subscription to phone notificatons is pending confirmation.
               -     PHONE_SUBSCRIPTION_NOT_SET: Subscription to phone notificatons is not set.
               -     PHONE_SUBSCRIPTION_UNSUBSCRIBE: Subscribed to phone notifications.
        - name: primaryInfo | type: PrimaryContactInfo | description: Contact's primary phone and email.
           - name: email | type: string | description: Primary email address.  This property reflects the email address in `info.emails` where `primary` is `true`.
           - name: phone | type: string | description: Primary phone number.  This property reflects the phone number in `info.phones` where `primary` is `true`.
        - name: info | type: ContactInfo | description: Contact's details.
           - name: name | type: ContactName | description: Contact's first and last name.
              - name: first | type: string | description: Contact's first name.
              - name: last | type: string | description: Contact's last name.
           - name: emails | type: ContactEmailsWrapper | description: Contact's email addresses.
              - name: items | type: array<ContactEmail> | description: List of up to 50 email addresses.
                 - name: id | type: string | description: Email GUID.
                 - name: tag | type: EmailTag | description: Email type.  `UNTAGGED` is shown as "Other" in the Contact List.
                       - enum: UNTAGGED, MAIN, HOME, WORK
                 - name: email | type: string | description: Email address.
                 - name: primary | type: boolean | description: Indicates whether this is the contact's primary email address. When changing `primary` to `true` for an email, the contact's other emails become `false`. Changing the primary email of a contact also affects the subscription status to marketing emails that are decided based on the primary email.
           - name: phones | type: ContactPhonesWrapper | description: Contact's phone numbers.
              - name: items | type: array<ContactPhone> | description: List of up to 50 phone numbers.
                 - name: id | type: string | description: Phone GUID.
                 - name: tag | type: PhoneTag | description: Phone type.  `UNTAGGED` is shown as "Other" in the Contact List.
                       - enum: UNTAGGED, MAIN, HOME, MOBILE, WORK, FAX
                 - name: countryCode | type: string | description: [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
                 - name: phone | type: string | description: Phone number.
                 - name: e164Phone | type: string | description: [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/) phone number. Automatically generated using `phone` and `countryCode`, pending both values are valid.
                 - name: primary | type: boolean | description: Indicates whether this is the contact's primary phone number. When changing `primary` to `true` for a phone, the contact's `primary` field for other phones becomes `false`. Changing the primary phone number also affects the subscription status to SMS messages that are decided based on the primary phone.
           - name: addresses | type: ContactAddressesWrapper | description: Contact's street addresses.
              - name: items | type: array<ContactAddress> | description: List of up to 50 addresses.
                 - name: id | type: string | description: Street address GUID.
                 - name: tag | type: AddressTag | description: Address type. `UNTAGGED` is shown as "Other" in the Contact List.
                       - enum: UNTAGGED, HOME, WORK, BILLING, SHIPPING
                 - name: address | type: Address | description: Street address.
                    - ONE-OF:
                       - name: streetAddress | type: StreetAddress | description: Street address object, with number and name in separate fields.
                          - name: number | type: string | description: Street number.
                          - name: name | type: string | description: Street name.
                       - name: addressLine | type: string | description: Main address line, usually street and number, as free text.
                    - name: country | type: string | description: 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
                    - name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
                    - name: city | type: string | description: City name.
                    - name: postalCode | type: string | description: Postal or zip code.
                    - name: addressLine2 | type: string | description: Free text providing more detailed address information, such as apartment, suite, or floor.
           - name: company | type: string | description: Contact's company name.
           - name: jobTitle | type: string | description: Contact's job title.
           - name: birthdate | type: string | description: Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.
           - name: locale | type: string | description: Locale in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. Typically, this is a lowercase 2-letter language code, followed by a hyphen, followed by an uppercase 2-letter country code. For example, `en-US` for U.S. English, and `de-DE` for Germany German.
           - name: labelKeys | type: LabelsWrapper | description: List of contact's labels.  Labels are used to organize contacts. Labels can be added and removed using Label Contact and Unlabel Contact, respectively.  To view or manage contact labels, use the Labels API.
              - name: items | type: array<string> | description: List of contact label keys.  Contact labels help categorize contacts. Label keys must exist to be added to the contact. Contact labels can be created or retrieved with Find or Create Label or List Labels.
           - name: extendedFields | type: ExtendedFieldsWrapper | description: Additional custom fields.  Empty fields are not returned.
              - name: items | type: Map<string,Value> | description: Contact's extended fields, where each key is the field key, and each value is the field's value for the contact.  To view and manage extended fields, use the Extended Fields API.
                 - ONE-OF:
                    - name: nullValue | type:  | description: 
                    - name: numberValue | type: number | description: 
                    - name: stringValue | type: string | description: 
                    - name: boolValue | type: boolean | description: 
                    - name: structValue | type: object | description: 
                    - name: listValue | type: ListValue | description: 
                       - name: values | type: array<Value> | description: 
           - name: picture | type: ContactPicture | description: Contact's profile picture.
              - name: image | type: Image | description: Image. This can contain an image URL or a Wix Media image GUID.
                 - name: id | type: string | description: WixMedia image GUID. This property is written by Wix when an image is uploaded to the Wix Media Manager.
                 - name: url | type: string | description: Image source: Either a Media Manager URL or external URL.
                 - name: height | type: integer | description: Height of the original image.
                 - name: width | type: integer | description: Width of the original image.
                 - name: altText | type: string | description: Image alt text (optional).
                 - name: urlExpirationDate | type: string | description: Image URL expiration date (optional).
        - name: primaryEmail | type: PrimaryEmail | description: Contact's primary email details.
           - name: email | type: string | description: Primary email address.  This field reflects the email address in `info.emails` where `primary` is `true`.
           - name: subscriptionStatus | type: SubscriptionStatus | description: Indicates the recipient's opt-in or opt-out status for marketing emails.  Default: `NOT_SET`
               - enum:
               -     NO_SUBSCRIPTION_STATUS: No status exists.
               -     NOT_SET: No status specified.
               -     PENDING: Subscription confirmation was requested, but recipient hasn't confirmed yet.
               -     SUBSCRIBED: Recipient has opted in to marketing emails or SMS messages.
               -     UNSUBSCRIBED: Recipient has opted out of marketing emails or SMS messages.
           - name: deliverabilityStatus | type: EmailDeliverabilityStatus | description: Indicates last reported status of sent emails.  Default: `NOT_SET`
               - enum:
               -     NOT_SET: No status reported.
               -     VALID: Emails are being successfully delivered.
               -     BOUNCED: The last email to the recipient bounced or was rejected.
               -     SPAM_COMPLAINT: Recipient registered a spam complaint with their email provider.
               -     INACTIVE: Multiple emails have been delivered without any kind of engagement from the recipient.
        - name: primaryPhone | type: PrimaryPhone | description: Contact's primary phone details.
           - name: countryCode | type: string | description: Country code of the primary phone number in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
           - name: e164Phone | type: string | description: Phone number in [ITU E.164](https://www.itu.int/rec/T-REC-E.164/) format. Automatically generated using `phone` and `countryCode` when both values are valid.
           - name: formattedPhone | type: string | description: Formatted phone. Automatically generated using `phone` and `countryCode`.
           - name: subscriptionStatus | type: SubscriptionStatus | description: Indicates the recipient's opt-in or opt-out status for SMS messages.  Default: - `NOT_SET` when the phone is a valid E164 phone. - `NO_SUBSCRIPTION_STATUS` when the phone is not a valid E164 phone.
               - enum:
               -     NO_SUBSCRIPTION_STATUS: No status exists.
               -     NOT_SET: No status specified.
               -     PENDING: Subscription confirmation was requested, but recipient hasn't confirmed yet.
               -     SUBSCRIBED: Recipient has opted in to marketing emails or SMS messages.
               -     UNSUBSCRIBED: Recipient has opted out of marketing emails or SMS messages.
           - name: phone | type: string | description: Primary phone number.  This field reflects the phone number in `info.phones` where `primary` is `true`.

```

### Examples


```curl
{
  "id": "52269077-05f2-4b59-ba4f-36ef8c4c1e11",
  "entityFqdn": "wix.contacts.v4.contact",
  "slug": "created",
  "entityId": "4b0133d5-7903-4411-bcc0-1817d1394028",
  "createdEvent": {
    "entity": {
      "id": "4b0133d5-7903-4411-bcc0-1817d1394028",
      "source": {
        "sourceType": "WIX_APP",
        "appId": "74bff718-5977-47f2-9e5f-a9fd0047fd1f"
      },
      "createdDate": "2020-10-18T13:40:57.803Z",
      "updatedDate": "2020-10-18T13:40:57.870Z",
      "lastActivity": {
        "activityDate": "2020-10-18T13:40:57.803Z",
        "activityType": "CONTACT_CREATED"
      },
      "primaryInfo": { "email": "johndoe@example.com" },
      "info": {
        "name": { "first": "John", "last": "Doe" },
        "emails": {
          "items": [
            {
              "id": "95606596-4006-4945-811d-61ba1fca629d",
              "email": "johndoe@example.com",
              "primary": true
            }
          ]
        },
        "company": "Example",
        "jobTitle": "manager",
        "extendedFields": {
          "items": {
            "emailSubscriptions.effectiveEmail": "johndoe@example.com",
            "emailSubscriptions.subscriptionStatus": "NOT_SET",
            "contacts.displayByFirstName": "John Doe",
            "contacts.displayByLastName": "Doe John"
          }
        }
      },
      "primaryEmail": {
        "email": "johndoe@example.com",
        "subscriptionStatus": "NOT_SET",
        "deliverabilityStatus": "NOT_SET"
      }
    }
  },
  "eventTime": "2020-10-18T13:40:58.304800Z",
  "triggeredByAnonymizeRequest": false
}

```

---

## JavaScript SDK

### Schema

```
Webhook: onContactCreated
Description: Triggered when a contact is created.
Payload: ContactCreatedEnvelope
  - name: entity | type: Contact | description: none
     - name: _id | type: string | description: Contact GUID.
     - name: revision | type: integer | description: Revision number, which increments by 1 each time the contact is updated. To prevent conflicting changes, the existing `revision` must be specified when updating a contact.
     - name: source | type: ContactSource | description: Details about the contact's source.
        - name: sourceType | type: ContactSourceType | description: Source type.
             - enum: OTHER, ADMIN, WIX_APP, IMPORT, THIRD_PARTY, WIX_BOOKINGS, WIX_CHAT, WIX_EMAIL_MARKETING, WIX_EVENTS, WIX_FORMS, WIX_GROUPS, WIX_HOTELS, WIX_MARKET_PLACE, WIX_MUSIC, WIX_RESTAURANTS, WIX_SITE_MEMBERS, WIX_STORES, WIX_CODE, HOPP
        - name: appId | type: string | description: App GUID, if the contact was created by an app.
     - name: _createdDate | type: Date | description: Date and time the contact was created.
     - name: _updatedDate | type: Date | description: Date and time the contact was last updated.
     - name: lastActivity | type: ContactActivity | description: Details about the contact's last action in the site.
        - name: activityDate | type: Date | description: Date and time of the last action.
        - name: activityType | type: ContactActivityType | description: Contact's last action in the site.
             - enum:
             -     GENERAL: Visited the site.
             -     CONTACT_CREATED: Became a new contact.
             -     MEMBER_LOGIN: Logged in.
             -     MEMBER_REGISTER: Requested a site membership.
             -     MEMBER_STATUS_CHANGED: Was approved, blocked, or unblocked.
             -     FORM_SUBMITTED: Submitted a form.
             -     INBOX_FORM_SUBMITTED: Started a chat.
             -     INBOX_PAYMENT_REQUEST_PAID: Paid a payment request.
             -     INBOX_MESSAGE_TO_CUSTOMER: Received a message from the site.
             -     INBOX_MESSAGE_FROM_CUSTOMER: Sent a new message to the site.
             -     NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED: Subscribed to a site newsletter through a form.
             -     NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE: Unsubscribed from a site newsletter.
             -     ECOM_PURCHASE: Made a purchase.
             -     ECOM_CART_ABANDON: Abandoned a shopping cart.
             -     ECOM_CHECKOUT_BUYER: Checked out shopping cart and submitted buyer info (but didn’t complete the purchase yet).
             -     BOOKINGS_APPOINTMENT: Booked an appointment.
             -     HOTELS_RESERVATION: Made a Wix Hotels reservation.
             -     HOTELS_PURCHASE: Paid for a Wix Hotels reservation.
             -     HOTELS_CONFIRMATION: Confirmed a Wix Hotels reservation.
             -     HOTELS_CANCEL: Canceled a Wix Hotels reservation.
             -     VIDEO_PURCHASE: Purchased a video.
             -     VIDEO_RENT: Rented a video.
             -     CASHIER_BUTTON_PURCHASE: Made a purchase with a pay button.
             -     ARENA_NEW_LEAD: Became a new Wix Marketplace lead.
             -     EVENTS_RSVP: RSVP'd to an event.
             -     INVOICE_PAY: Paid an invoice.
             -     INVOICE_OVERDUE: An invoice is now overdue.
             -     PRICE_QUOTE_ACCEPT: Accepted a price quote.
             -     PRICE_QUOTE_EXPIRE: A price quote has expired.
             -     RESTAURANTS_ORDER: Ordered food with Wix Restaurants.
             -     RESTAURANTS_RESERVATION: Made a Wix Restaurants reservation.
             -     SHOUTOUT_OPEN: Opened an email from the site.
             -     SHOUTOUT_CLICK: Clicked a link in an email from the site.
             -     CONTACT_MERGED: Merged with another contact.
             -     NEWSLETTER_SUBSCRIPTION_SUBSCRIBE: Subscribed to a site newsletter.
             -     NEWSLETTER_SUBSCRIPTION_PENDING: Subscription status to site newsletters is pending confirmation.
             -     NEWSLETTER_SUBSCRIPTION_NOT_SET: Subscription status to site newsletters is not set.
             -     PHONE_SUBSCRIPTION_SUBSCRIBE: Subscribed to phone notifications.
             -     PHONE_SUBSCRIPTION_PENDING: Subscription to phone notificatons is pending confirmation.
             -     PHONE_SUBSCRIPTION_NOT_SET: Subscription to phone notificatons is not set.
             -     PHONE_SUBSCRIPTION_UNSUBSCRIBE: Subscribed to phone notifications.
     - name: primaryInfo | type: PrimaryContactInfo | description: Contact's primary phone and email.
        - name: email | type: string | description: Primary email address.  This property reflects the email address in `info.emails` where `primary` is `true`.
        - name: phone | type: string | description: Primary phone number.  This property reflects the phone number in `info.phones` where `primary` is `true`.
     - name: info | type: ContactInfo | description: Contact's details.
        - name: name | type: ContactName | description: Contact's first and last name.
           - name: first | type: string | description: Contact's first name.
           - name: last | type: string | description: Contact's last name.
        - name: emails | type: ContactEmailsWrapper | description: Contact's email addresses.
           - name: items | type: array<ContactEmail> | description: List of up to 50 email addresses.
              - name: _id | type: string | description: Email GUID.
              - name: tag | type: EmailTag | description: Email type.  `UNTAGGED` is shown as "Other" in the Contact List.
                     - enum: UNTAGGED, MAIN, HOME, WORK
              - name: email | type: string | description: Email address.
              - name: primary | type: boolean | description: Indicates whether this is the contact's primary email address. When changing `primary` to `true` for an email, the contact's other emails become `false`. Changing the primary email of a contact also affects the subscription status to marketing emails that are decided based on the primary email.
        - name: phones | type: ContactPhonesWrapper | description: Contact's phone numbers.
           - name: items | type: array<ContactPhone> | description: List of up to 50 phone numbers.
              - name: _id | type: string | description: Phone GUID.
              - name: tag | type: PhoneTag | description: Phone type.  `UNTAGGED` is shown as "Other" in the Contact List.
                     - enum: UNTAGGED, MAIN, HOME, MOBILE, WORK, FAX
              - name: countryCode | type: string | description: [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
              - name: phone | type: string | description: Phone number.
              - name: e164Phone | type: string | description: [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/) phone number. Automatically generated using `phone` and `countryCode`, pending both values are valid.
              - name: primary | type: boolean | description: Indicates whether this is the contact's primary phone number. When changing `primary` to `true` for a phone, the contact's `primary` field for other phones becomes `false`. Changing the primary phone number also affects the subscription status to SMS messages that are decided based on the primary phone.
        - name: addresses | type: ContactAddressesWrapper | description: Contact's street addresses.
           - name: items | type: array<ContactAddress> | description: List of up to 50 addresses.
              - name: _id | type: string | description: Street address GUID.
              - name: tag | type: AddressTag | description: Address type. `UNTAGGED` is shown as "Other" in the Contact List.
                     - enum: UNTAGGED, HOME, WORK, BILLING, SHIPPING
              - name: address | type: Address | description: Street address.
                 - name: city | type: string | description: none
                 - name: subdivision | type: string | description: none
                 - name: country | type: string | description: none
                 - name: postalCode | type: string | description: none
                 - name: addressLine1 | type: string | description: none
                 - name: addressLine2 | type: string | description: none
        - name: company | type: string | description: Contact's company name.
        - name: jobTitle | type: string | description: Contact's job title.
        - name: birthdate | type: string | description: Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.
        - name: locale | type: string | description: Locale in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. Typically, this is a lowercase 2-letter language code, followed by a hyphen, followed by an uppercase 2-letter country code. For example, `en-US` for U.S. English, and `de-DE` for Germany German.
        - name: labelKeys | type: LabelsWrapper | description: List of contact's labels.  Labels are used to organize contacts. Labels can be added and removed using Label Contact and Unlabel Contact, respectively.  To view or manage contact labels, use the Labels API.
           - name: items | type: array<string> | description: List of contact label keys.  Contact labels help categorize contacts. Label keys must exist to be added to the contact. Contact labels can be created or retrieved with Find or Create Label or List Labels.
        - name: extendedFields | type: ExtendedFieldsWrapper | description: Additional custom fields.  Empty fields are not returned.
           - name: items | type: Map<string,Value> | description: Contact's extended fields, where each key is the field key, and each value is the field's value for the contact.  To view and manage extended fields, use the Extended Fields API.
              - ONE-OF:
                 - name: nullValue | type:  | description: 
                 - name: numberValue | type: number | description: 
                 - name: stringValue | type: string | description: 
                 - name: boolValue | type: boolean | description: 
                 - name: structValue | type: object | description: 
                 - name: listValue | type: ListValue | description: 
                    - name: values | type: array<Value> | description: 
        - name: picture | type: ContactPicture | description: Contact's profile picture.
           - name: image | type: string | description: Image. This can contain an image URL or a Wix Media image GUID.
     - name: primaryEmail | type: PrimaryEmail | description: Contact's primary email details.
        - name: email | type: string | description: Primary email address.  This field reflects the email address in `info.emails` where `primary` is `true`.
        - name: subscriptionStatus | type: SubscriptionStatus | description: Indicates the recipient's opt-in or opt-out status for marketing emails.  Default: `NOT_SET`
             - enum:
             -     NO_SUBSCRIPTION_STATUS: No status exists.
             -     NOT_SET: No status specified.
             -     PENDING: Subscription confirmation was requested, but recipient hasn't confirmed yet.
             -     SUBSCRIBED: Recipient has opted in to marketing emails or SMS messages.
             -     UNSUBSCRIBED: Recipient has opted out of marketing emails or SMS messages.
        - name: deliverabilityStatus | type: EmailDeliverabilityStatus | description: Indicates last reported status of sent emails.  Default: `NOT_SET`
             - enum:
             -     NOT_SET: No status reported.
             -     VALID: Emails are being successfully delivered.
             -     BOUNCED: The last email to the recipient bounced or was rejected.
             -     SPAM_COMPLAINT: Recipient registered a spam complaint with their email provider.
             -     INACTIVE: Multiple emails have been delivered without any kind of engagement from the recipient.
     - name: primaryPhone | type: PrimaryPhone | description: Contact's primary phone details.
        - name: countryCode | type: string | description: Country code of the primary phone number in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
        - name: e164Phone | type: string | description: Phone number in [ITU E.164](https://www.itu.int/rec/T-REC-E.164/) format. Automatically generated using `phone` and `countryCode` when both values are valid.
        - name: formattedPhone | type: string | description: Formatted phone. Automatically generated using `phone` and `countryCode`.
        - name: subscriptionStatus | type: SubscriptionStatus | description: Indicates the recipient's opt-in or opt-out status for SMS messages.  Default: - `NOT_SET` when the phone is a valid E164 phone. - `NO_SUBSCRIPTION_STATUS` when the phone is not a valid E164 phone.
             - enum:
             -     NO_SUBSCRIPTION_STATUS: No status exists.
             -     NOT_SET: No status specified.
             -     PENDING: Subscription confirmation was requested, but recipient hasn't confirmed yet.
             -     SUBSCRIBED: Recipient has opted in to marketing emails or SMS messages.
             -     UNSUBSCRIBED: Recipient has opted out of marketing emails or SMS messages.
        - name: phone | type: string | description: Primary phone number.  This field reflects the phone number in `info.phones` where `primary` is `true`.
  - name: metadata | type: EventMetadata | description: none
     - name: instanceId | type: string | description: App instance GUID.
     - name: eventType | type: string | description: Event type.
     - name: identity | type: IdentificationData | description: The identification type and identity data.
        - ONE-OF:
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
           - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
           - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
           - name: appId | type: string | description: GUID of an app.
        - name: identityType | type: WebhookIdentityType | description: 
             - enum: UNKNOWN, ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
     - name: accountInfo | type: AccountInfo | description: Details related to the account
        - name: accountId | type: string | description: GUID of the Wix account associated with the event.
        - name: parentAccountId | type: string | description: GUID of the parent Wix account. Only included when accountId belongs to a child account.
        - name: siteId | type: string | description: GUID of the Wix site associated with the event. Only included when the event is tied to a specific site.
     - name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
     - name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
     - name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
     - name: entityId | type: string | description: GUID of the entity associated with the event.
     - name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
     - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
     - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
     - name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.

```

### Examples


```javascript
import { contacts } from '@wix/crm';

contacts.onContactCreated((event) => {
    // handle your event here
});
```


```javascript
import { createClient, AppStrategy } from '@wix/sdk';
import { contacts } from '@wix/crm';

const wixClient = createClient({
  auth: AppStrategy({
    appId: 'MY-APP-ID',
    publicKey: 'YOUR_APP_PUBLIC_KEY',
  }),
  modules: {
      contacts,
    },
});

wixClient.contacts.onContactCreated((event) => {
    // handle your event here
});
```

---