Learn how to configure and add your first contact with SendX Javascript SDK
tags
is an array of strings.string
and the value will be set.
number
. To modify them incrementally, use:
"customField_name": "++34"
→ Increases the current value by 34
"customField_name": "--10"
→ Decreases the current value by 10
identify
call does not delete any previously set properties.
Property | Type | Description |
---|---|---|
firstName | string | Contact’s first name |
lastName | string | Contact’s last name |
email | string | Contact’s current email address (used to identify the contact) |
newEmail | string | New email address if updating an existing contact |
company | string | Company name |
birthday | string (YYYY-MM-DD) | Date of birth (e.g., 2016-11-21 ) |
customFields | map[string]string | Key-value pairs for custom fields (e.g., {"Designation": "Engineer"} ) |
tags | array of string | List of tags associated with the contact (e.g., ["Developer", "API Team"] ) |
success | function (optional) | Callback executed upon a successful request |
failure | function (optional) | Callback executed when the request fails or times out |
newEmail
property.Property | Type | Description |
---|---|---|
addTags | array of string | Tags to add to the contact (e.g., ["Developer", "Onboarding"] ) |
removeTags | array of string | Tags to remove from the contact |
success | function (optional) | Callback executed when the request completes successfully |
failure | function (optional) | Callback executed when the request fails or times out |