Skip to main content

Data array

Description

The data array is used in the following queries:

The array consists of objects, each of which contains information about a separate profile. As the key and value of the object, you must specify the data by which the profile will be searched in the database.

Parameters

ParameterTypeExampleRequiredDescription
emailstring"john@example.com""matching":"email" - by profile and subscriptions

"matching":"email_profile" - only by profile

"matching":"email_sub" - only for subscriptions
Email address
phonestring"+79000000000""matching":"phone" - by phone number from profile and subscriptions

"matching":"phone_sub" - by phone number from subscriptions
Phone number
profile_idstring"abcdefghijklmnqrstuvwxyz""matching":"profile_id"Profile ID
field_valueint/string"12345""matching":"custom"Field value for search
custom_requestJSON object
If there is no "matching" parameterMongoDB query on profile fields
custom_dataJSON object{"field": "value"}NoAdd some data to be used in Action hooks.

Examples

email

 "data": [
{"email": "profile1@example.com"},
{"email": "profile2@example.com"}
]

phone

 "data": [
{"phone": "+79000000000"},
{"phone": "+79000000001"}
]

profile_id

 "data": [
{"profile_id": "60ae529b3f62fcdebdb159bb"},
{"profile_id": "843vfdkisfh934hfe834rhkk"}
]

custom

 "data": [
{"field_value": "001"},
{"field_value": "002"},
]