Download OpenAPI specification:Download
Interface to be able to capture user behaviours and make decisions based on it.
Returns the visitor information
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
prefetch | boolean Default: false Example: prefetch=true Some requests can be requested to go and get the HTML of the content item they show. Eg. /search or /content. |
tid | string <= 22 characters touch_identifier, Internal identifier for the touch, if this field is left empty, lift will generate a touch identifier and include it in the response |
ident | string <= 200 characters identity, Visitor's primary identity information. |
identsrc | string <= 200 characters identity_source, Type of visitor's primary identity information. Specific string (account, email, facebook, twitter, tracking, name) or custom identifier type. |
en | string <= 200 characters event_name, Event name corresponding to the captured information - the event type matching this event name must match the master list of events created in Acquia Lift Profile Manager |
es | string <= 200 characters event_source, Source of the event - can be used to pass event data from tools you have set up to send data to Acquia Lift Profile Manager (the default Acquia Lift Profile Manager value is web; depending on your website's configuration, examples may include csrtool1 and promo1) |
ed | string <date-time> event_date, Date of the Event. Timestamp in ISO 8601 format, YYYY-MM-DDTHH:MM:SSZ |
ids | string identities, Additional identity information, can be included multiple times. The value is a concatenation of the identity and its source, separated by a "|" (examples include "john.smith@acquia.com|email" and "John Smith|name"}) |
url | string <= 2000 characters url, The URL on which the event was triggered., |
rurl | string <= 4000 characters referral_url, Referrer's URL |
cttl | string <= 200 characters content_title, Page title |
ua | string <= 2000 characters user_agent, Visitor's user agent |
pltfrm | string <= 50 characters platform, Visitor's platform |
ip | string <= 45 characters ip_address, Visitor's IP address (supports both IPv4 and IPv6 addresses) |
p | string <= 1000 characters persona, User-defined category into which a visitor fits, based on their viewing of particular content |
escore | integer engagement_score, The number that you have chosen to signify the importance of a visitor's interest in an event |
pn | string <= 1000 characters personalization_name, (DEPRECATED) Name of personalization associated with an event |
pmn | string <= 1000 characters personalization_machine_name, (DEPRECATED) Machine name of personalization associated with an event |
pcv | string <= 1000 characters personalization_chosen_variation, (DEPRECATED) The variation (decision) chosen for an event |
pdp | string <= 1000 characters personalization_audience_name, (DEPRECATED) The name of the audience |
pan | string <= 1000 characters personalization_decision_policy, (DEPRECATED) The decision policy used - for example, explore or target |
pgn | string <= 1000 characters personalization_goal_name, (DEPRECATED) The name of the goal reached |
pgv | string <= 1000 characters personalization_goal_value, (DEPRECATED) The value of the goal reached |
dsid | string <= 1000 characters decision_slot_id, The id of the slot for which a decision was made |
dsn | string <= 1000 characters decision_slot_name, The name of the slot for which a decision was made |
drid | string <= 1000 characters decision_rule_id, The id of the rule that was used to make a decision |
drn | string <= 1000 characters decision_rule_name, The name of the rule that was used to make a decision |
drt | string <= 1000 characters decision_rule_type, The type of the rule that was used to make a decision |
drsid | string <= 1000 characters decision_rule_segment_id, The id of the rule segment that was used to make a decision |
drsn | string <= 1000 characters decision_rule_segment_name, The name of the rule segment that was used to make a decision |
dcid | string <= 1000 characters decision_content_id, The id of the content that was returned in the decision |
dcn | string <= 1000 characters decision_content_name, The name of the content that was returned in the decision |
dgid | string <= 1000 characters decision_goal_id, The id of the goal that was triggered by the decision |
dgn | string <= 1000 characters decision_goal_name, The name of the goal that was triggered by the decision |
dgv | string <= 1000 characters decision_goal_value, The value of the goal that was triggered by the decision |
dvm | string <= 1000 characters decision_view_mode, The viewmode of the content that was returned in the decision |
dp | string <= 1000 characters decision_policy, The policy that was used to make the decision (explore,exploit,repeat) |
capid | string <= 22 characters capture_identifier, Unique identifier for the capture |
ctz | string <= 100 characters client_timezone, Client time zone |
jsv | string <= 10 characters javascript_version, version of the javascript that generated the capture |
pid | string <= 22 characters post_id, post id of an article |
cid | string <= 22 characters content_id, content id of an article |
cuuid | string <= 1000 characters content_uuid, content uuid of an article |
ctype | string <= 200 characters content_type, Content-type to which a piece of visitor-viewed content belongs |
csec | string <= 1000 characters content_section, content section of an article |
ckw | string <= 1000 characters content keywords of an article |
author | string <= 1000 characters content_keywords, author of an article |
pt | string <= 200 characters page_type, Category of page the visitor viewed (examples include article page, tag page, and home page) |
pd | string <date-time> published_date, Publish date of an article. Timestamp in ISO 8601 format, YYYY-MM-DDTHH:MM:SSZ |
pu([1-9]|[1-4][0-9]|50) | string person_udfXX, Custom fields for person information |
eu([1-9]|[1-4][0-9]|50) | string event_udfXX, Custom fields for event information |
tu([1-9]|1[0-9]|20) | string touch_udfXX, Custom fields for touch information |
{- "touch_identifier": "fM2RzZmdhNHczIDVxMjM=",
- "identity": "vDS4dc29tZWlkZW50aWZlcg",
- "identity_source": "tracking",
- "matched_segments": [
- {
- "id": 19200,
- "name": "Anonymous Visitor",
- "description": "Tracks whether a visitor to the site is anonymous"
}, - {
- "id": 10096,
- "name": "Interested Visitor",
- "description": "If the new user clicks on the about us section of the site, then they are an interested visitor learning more about the service."
}
]
}
Allows you to create captures to the Acquia Lift Profile Manager.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
prefetch | boolean Default: false Example: prefetch=true Some requests can be requested to go and get the HTML of the content item they show. Eg. /search or /content. |
Capture events without making a decision
touch_identifier | string <= 22 characters Internal identifier for the touch, if this field is left empty, lift will generate a touch identifier and include it in the response |
identity | string <= 200 characters Visitor's primary identity information. |
identity_source | string <= 200 characters Type of visitor's primary identity information. Specific string (account, email, facebook, twitter, tracking, name) or custom identifier type. |
do_not_track | boolean Default: false Flag to indicate whether the person should not be tracked. |
return_segments | boolean Default: false Flag to indicate whether the response should include matched segment information. |
return_content_views | boolean Default: false Flag to indicate whether the response should include content UUIDs that were viewed previously by the visitor. |
site_id | string <= 20 characters The customer site matching external_site_id in the configuration database. Used for filtering segments to evaluate and the default site_id for captures. If not specified then the last capture is used to calculate the site_id for filtering segments. |
Array of objects (Capture) non-empty unique List of captures. |
{- "touch_identifier": "eGlhb2dlbGFpd2FuYQ==",
- "identity": "test@example.com",
- "identity_source": "email",
- "do_not_track": false,
- "return_segments": true,
- "return_content_views": false,
- "site_id": "MySiteId",
- "captures": [
- {
- "event_name": "Content View",
- "event_source": "web",
- "event_date": "2016-01-22T10:20:21Z",
- "person_udf50": "c3RvcHRyeWluZw=="
}, - {
- "event_name": "Content View",
- "event_source": "web",
- "event_date": "2016-01-22T10:20:31Z",
- "identities": {
- "test2@example.com": "email",
- "lift customer": "name"
}, - "engagment_score": 50,
- "person_udf50": "aWxpa2V5b3VyaGF0"
}
]
}
{- "touch_identifier": "fM2RzZmdhNHczIDVxMjM=",
- "identity": "vDS4dc29tZWlkZW50aWZlcg",
- "identity_source": "tracking",
- "matched_segments": [
- {
- "id": 10092,
- "name": "Anonymous Visitor",
- "description": "Tracks whether a visitor to the site is anonymous"
}, - {
- "id": 10096,
- "name": "Interested Visitor",
- "description": "If the new user clicks on the about us section of the site, then they are an interested visitor learning more about the service."
}
]
}
Retrieve an individual content.
content_id required | string <uuid> The identifier of the content. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
content_connector_id required | string <uuid> The content connector identifier where the content is stored. |
{- "title": "Front Banner 1",
- "id": "front-banner-1",
- "content_connector_id": "nicks_content_hub_identifier",
- "created": "2015-11-28T17:17:34.200Z",
- "updated": "2016-01-05T08:44:31.952Z",
- "view_modes": [
- {
- "id": "banner-wide",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-wide-something-something-1.png\"/>"
}, - {
- "id": "banner-small",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-small-something-something-1.png\"/>"
}
]
}
List of available content connectors.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
[- {
- "id": "nicks_content_hub_identifier",
- "type": "content_hub",
- "status": "enabled",
- "config": {
- "public_key": "public_key_goes_here",
- "secret_key": "secret_key_goes_here",
- "url": "api.content-hub.acquia.com"
}, - "created": "2015-11-28T17:17:34.200Z",
- "updated": "2016-01-05T08:44:31.952Z"
}, - {
- "id": "nicks_local_file_identifier",
- "type": "external_json",
- "status": "enabled",
- "config": {
- "url": "nickveenhof.be/liftv3/my_directly_imported_content.json"
}, - "created": "2015-10-28T17:17:34.200Z",
- "updated": "2016-02-05T08:44:31.952Z"
}
]
Create or update a content connector.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
Content connector object.
id required | string^[a-z0-9_-]{1,128}$ Content Connector UID. |
type required | string Enum: "external_json" "content_hub" Type of the content connector |
required | Content Hub Config (object) or Content Connector Config (object) |
status | string Enum: "enabled" "disabled" Status of the content connector |
created required | string <date-time> Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
updated | string <date-time> Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
{- "id": "nicks_content_hub_identifier",
- "type": "content_hub",
- "status": "enabled",
- "config": {
- "public_key": "public_key_goes_here",
- "secret_key": "secret_key_goes_here",
}, - "created": "2015-11-28T17:17:34.200Z",
- "updated": "2016-01-05T08:44:31.952Z"
}
{- "id": "nicks_content_hub_identifier",
- "type": "content_hub",
- "status": "enabled",
- "config": {
- "public_key": "public_key_goes_here",
- "secret_key": "secret_key_goes_here",
}, - "created": "2015-11-28T17:17:34.200Z",
- "updated": "2016-01-05T08:44:31.952Z"
}
Get an individual content connector.
content_connector_id required | string The content connector identifier where the content is stored. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "id": "nicks_content_hub_identifier",
- "type": "content_hub",
- "status": "enabled",
- "config": {
- "public_key": "public_key_goes_here",
- "secret_key": "secret_key_goes_here",
}, - "created": "2015-11-28T17:17:34.200Z",
- "updated": "2016-01-05T08:44:31.952Z"
}
Delete an existing content connector.
content_connector_id required | string The content connector identifier where the content is stored. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract site_id."
}
Retreive all content metadata belonging to an account.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "origins": {
- "27ba5a95-67ad-4e27-6122-b097db008108": "source1",
- "dcccef1b-6338-4d61-4d93-c145d1d14b9e": "source2"
}, - "tags": {
- "a6b3a71b-2a25-4c9f-8a10-8419813e81a0": "tag1",
- "ec1fbd4b-9b86-4da9-adde-299b2d40339e": "tag2",
- "b6ad31ca-e9e3-47e8-b3ab-5c86713e2b7d": "tag3"
}
}
Find content by keyword, origins, tags, content type, and date.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
prefetch | boolean Default: false Example: prefetch=true Some requests can be requested to go and get the HTML of the content item they show. Eg. /search or /content. |
start | integer Default: 0 Where to start from. Eg if you have 20 items, and you fill in 10 as your start number, it will give you all the items from 10 till 19 if the amount of items you request is 10. |
rows | integer Default: 10 Amount of items to return. |
q | string The keyword(s) to find, space delimited |
sort | string Default: "score" Sorting field options - true for ascending, false for descending. Default is score. |
content_type | string Filter on content with any of the specified content types. Multiple values are possible. |
origins | string Filter on content coming from any of the specified origins. Multiple values are possible. |
tags | string Filter on content with all of the specified tags. Multiple values are possible. |
all_tags | boolean Flag used for tags operator when querying results. Default value is false which implies that the 'OR' operation would be used. |
date_start | string <date> Filter on content modified after this date. Format dd-mm-yyyy or now- |
date_end | string <date> Filter on content modified before this date. Format dd-mm-yyyy or now- |
date_timezone | string <date> The timezone offset for the date range. Format +/- |
[- {
- "id": "front-banner-1",
- "title": "Front Banner 1",
- "content_connector_id": "nicks_content_hub_identifier",
- "view_modes": [
- {
- "id": "banner-wide",
- "label": "Banner Wide",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-wide-something-something-1.png\"/>"
}, - {
- "id": "banner-small",
- "label": "Banner Small",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-small-something-something-1.png\"/>"
}
]
}, - {
- "id": "some-banner",
- "title": "some banner",
- "content_connector_id": "nicks_local_file_identifier",
- "view_modes": [
- {
- "id": "banner-random",
- "label": "Banner Random",
- "preview_image": "localhost/banner-random.png",
- "html": "<img src=\"localhost/banner-random.png\"/>"
}
]
}
]
Make a decision
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
entities | boolean Indicate that decision api needs to return the full cdf objects too. |
Make a decision.
slots required | Array of strings List of slot UIDs. |
url | stringuri The URI for which we are making a decision for so we can fetch all the slots that belong to this URI. |
do_not_track | boolean Parameter indicating that the visitor does not want to be tracked. |
source | string <uri> The url of the lift.js file from which the request originated. Ignored by the /decide endpoint. |
preview | boolean Default: false Parameter indicating the request wants a preview of a decision based on the passed segments, not on actual user data. |
segments | Array of strings The list of segment ids that will be used for making the decision. When not empty, this list will override the actual segment ids computed by Lift Profile Manager. |
touch_identifier | string <= 22 characters Internal identifier for the touch, if this field is left empty, lift will generate a touch identifier and include it in the response |
identity | string <= 200 characters Visitor's primary identity information. Unique Hash generated by the API if not given. |
identity_source | string <= 200 characters Type of visitor's primary identity information. Specific string (account, email, facebook, twitter, tracking, name) or custom identifier type. |
identity_expiry | integer Expiry date of identity in Unix time (seconds since 1970) |
required | Array of objects (Capture) non-empty unique List of captures. |
{- "slots": [
- "slot-1",
- "slot-2"
], - "do_not_track": false,
- "touch_identifier": "2YjfTpTyI2Q1hCR0fA57qh",
- "identity": "5TYO36lJUkcmOCwZVOj8Di",
- "identity_source": "tracking",
- "identity_expiry": 1524323730,
- "captures": [
- {
- "event_name": "Content View",
- "event_source": "Web",
- "event_date": "2016-04-23T10:01:00.0Z",
- "url": "www.acquia.com",
- "referrer": "www.drupal.org",
- "title": "Welcome to Acquia",
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0",
- "ip_address": "192.168.1.1"
}, - {
- "event_name": "Content View",
- "event_source": "Web",
- "event_date": "2016-04-23T10:01:01.0Z",
- "url": "www.acquia.com/about",
- "referrer": "www.acquia.com",
- "title": "About Acquia",
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0",
- "ip_address": "192.168.1.1"
}
]
}
{- "identity": {
- "tc_ptid": "5TYO36lJUkcmOCwZVOj8Di",
- "tc_ptidexpiry": 1524323730,
- "tc_ttid": "2YjfTpTyI2Q1hCR0fA57qh"
}, - "segments": [
- {
- "id": "CANADAVISITOR",
- "name": "Visitors from Canada",
- "description": "All visitors that are browsing from Canada"
}, - {
- "id": "FIRSTTIMEVISITOR",
- "name": "New Visitor",
- "description": "First time visitors",
- "site": [
- "CORP",
- "MAG"
]
}
], - "decisions": {
- "slot-id-1": {
- "slot_name": "my slot",
- "slot_css_selector": "btn.awesome",
- "rule_id": "rule-1",
- "rule_name": "My Rule",
- "rule_type": "ab",
- "policy": "explore"
}, - "slot-id-2": {
- "slot_name": "My second slot",
- "slot_css_selector": "btn.more-awesome",
- "rule_id": "rule-2",
- "rule_name": "My other rule",
- "rule_type": "ab",
- "policy": "exclude"
}
}
}
entities | boolean Indicate that decision api needs to return the full cdf objects too. |
Make a decision and return JS specific to Lift 3.
slots required | Array of strings List of slot UIDs. |
url | stringuri The URI for which we are making a decision for so we can fetch all the slots that belong to this URI. |
do_not_track | boolean Parameter indicating that the visitor does not want to be tracked. |
source | string <uri> The url of the lift.js file from which the request originated. Ignored by the /decide endpoint. |
preview | boolean Default: false Parameter indicating the request wants a preview of a decision based on the passed segments, not on actual user data. |
segments | Array of strings The list of segment ids that will be used for making the decision. When not empty, this list will override the actual segment ids computed by Lift Profile Manager. |
touch_identifier | string <= 22 characters Internal identifier for the touch, if this field is left empty, lift will generate a touch identifier and include it in the response |
identity | string <= 200 characters Visitor's primary identity information. Unique Hash generated by the API if not given. |
identity_source | string <= 200 characters Type of visitor's primary identity information. Specific string (account, email, facebook, twitter, tracking, name) or custom identifier type. |
identity_expiry | integer Expiry date of identity in Unix time (seconds since 1970) |
required | Array of objects (Capture) non-empty unique List of captures. |
{- "slots": [
- "slot-1",
- "slot-2"
], - "do_not_track": false,
- "touch_identifier": "2YjfTpTyI2Q1hCR0fA57qh",
- "identity": "5TYO36lJUkcmOCwZVOj8Di",
- "identity_source": "tracking",
- "identity_expiry": 1524323730,
- "captures": [
- {
- "event_name": "Content View",
- "event_source": "Web",
- "event_date": "2016-04-23T10:01:00.0Z",
- "url": "www.acquia.com",
- "referrer": "www.drupal.org",
- "title": "Welcome to Acquia",
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0",
- "ip_address": "192.168.1.1"
}, - {
- "event_name": "Content View",
- "event_source": "Web",
- "event_date": "2016-04-23T10:01:01.0Z",
- "url": "www.acquia.com/about",
- "referrer": "www.acquia.com",
- "title": "About Acquia",
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0",
- "ip_address": "192.168.1.1"
}
]
}
{- "identity": {
- "tc_ptid": "5TYO36lJUkcmOCwZVOj8Di",
- "tc_ptidexpiry": 1524323730,
- "tc_ttid": "2YjfTpTyI2Q1hCR0fA57qh"
}, - "segments": [
- {
- "id": "CANADAVISITOR",
- "name": "Visitors from Canada",
- "description": "All visitors that are browsing from Canada"
}, - {
- "id": "FIRSTTIMEVISITOR",
- "name": "New Visitor",
- "description": "First time visitors",
- "site": [
- "CORP",
- "MAG"
]
}
], - "decisions": {
- "slot-id-1": {
- "slot_name": "my slot",
- "slot_css_selector": "btn.awesome",
- "rule_id": "rule-1",
- "rule_name": "My Rule",
- "rule_type": "ab",
- "policy": "explore"
}, - "slot-id-2": {
- "slot_name": "My second slot",
- "slot_css_selector": "btn.more-awesome",
- "rule_id": "rule-2",
- "rule_name": "My other rule",
- "rule_type": "ab",
- "policy": "exclude"
}
}
}
Returns a list of filters that belong to that client.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
start | integer Default: 0 Where to start from. Eg if you have 20 items, and you fill in 10 as your start number, it will give you all the items from 10 till 19 if the amount of items you request is 10. |
rows | integer Default: 10 Amount of items to return. |
[- {
- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}, - {
- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}
]
This method will save/update an individual filter.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
Filter entity object.
uuid required | string^[a-z0-9_-]{1,128}$ Filter UUID. |
name required | string^[a-z0-9_-]{1,128}$ Filter Name. |
required | object Filter parameters specifying the search query terms. |
{- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}
{- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}
Returns a list of filters that belong to that client.
filter_id required | string <uuid> The uuid identifier of the filter. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}
This method will update an individual filter.
filter_id required | string <uuid> The uuid identifier of the filter. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
Filter entity object.
uuid required | string^[a-z0-9_-]{1,128}$ Filter UUID. |
name required | string^[a-z0-9_-]{1,128}$ Filter Name. |
required | object Filter parameters specifying the search query terms. |
{- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}
{- "uuid": "01230123-0440-4000-8000-909090ababab",
- "name": "filter-name",
- "filter_params": {
- "keyword": "test",
- "origins": [
- "origin1",
- "origin2"
], - "tags": [
- "tag1",
- "tag2"
], - "op_tag": "op_tag1",
- "all_tags": true,
- "content_type": [
- "content_type1",
- "content_type2"
], - "date_start": "day_start1",
- "date_end": "day_end1",
- "date_timezone": "date_timezone1"
}
}
This method will delete an individual filter.
filter_id required | string <uuid> The uuid identifier of the filter. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "message": "The filter 'aeb348ea-c2a6-4511-b5d6-d5412a207307' has been deleted."
}
Get a list of goals.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
global | boolean If set to "true", the retrieved goals will also include all global goals. If set to "false", the retrieved goals will not include any global goals. If this parameter is absent, then the retrieved global goals will depend on the value of "limit_by_site" parameter - 1) if "limit_by_site" is "true", then no global goals will be returned; 2) if "limit_by_site" is "false", the all global goals will be returned. |
limit_by_site | boolean Default: false If set to "true", the retrieved goals will also include the site-specific goals of the site_id. If set to "false", the retrieved site-specific goals will depend on the value of "global" parameter - 1) if "global" is "true", then no site-specific goals will be returned; 2) if "global" is "false" or absent, then all site-specific goals of ALL customer sites will be returned. |
rule_id | string The rule identifier to which the retrieved goals should be associated. Can be provided multiple times to get goals from all those rule identifiers. |
[- {
- "id": "pDX4dc29tZWlkZW50aWZlcg",
- "name": "Purchase",
- "description": "Winter promotion",
- "rule_ids": [
- "rule-1",
- "rule-2"
], - "site_ids": [
- "site-1"
], - "event_names": [
- "purchase"
], - "global": false,
- "value": "100"
}, - {
- "id": "kZW50aWZlcg9tZWlkZW50lcg",
- "name": "Subscribe",
- "description": "Mailing list",
- "rule_ids": [
- "rule-3",
- "rule-4"
], - "site_ids": [
- "site-1"
], - "event_names": [
- "form_submit"
], - "global": true,
- "value": "50"
}
]
Create/Update a new goal. When POST'ing a goal with the same identifier, it will update that existing goal.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
Filter entity object.
id required | string <= 100 characters Goal UID. |
name required | string <= 200 characters Human readable name of the goal. |
description required | string <= 4000 characters Description of the goal. |
rule_ids | Array of strings >= 0 items unique One of more rule identifiers. |
site_ids | Array of strings >= 0 items unique One of more site identifiers. |
event_names required | Array of strings non-empty unique One or more event names. |
global required | boolean Defines if this goal applies to all customers sites or just the ones defined. |
value | string Empty or numeric value (float). |
{- "id": "pDX4dc29tZWlkZW50aWZlcg",
- "name": "Purchase",
- "description": "Winter promotion",
- "rule_ids": [
- "rule-1",
- "rule-2"
], - "site_ids": [
- "site-1"
], - "event_names": [
- "purchase"
], - "global": false,
- "value": "100"
}
[- {
- "status": "SUCCESS",
- "item": {
- "id": "pDX4dc29tZWlkZW50aWZlcg",
- "name": "Purchase",
- "description": "Winter promotion",
- "rule_ids": [
- "rule-1",
- "rule-2"
], - "site_ids": [
- "site-1"
], - "global": false,
- "event_names": [
- "purchase"
], - "value": "100"
}
}, - {
- "status": "FAILURE",
- "errors": [
- {
- "code": "DUPLICATED_NAME",
- "message": "Goal with the same name already exists"
}, - {
- "code": "INVALID_SITE_ID",
- "message": "Invalid site provided"
}
], - "item": {
- "id": "kZW50aWZlcg9tZWlkZW50lcg",
- "name": "Subscribe",
- "description": "Mailing list",
- "rule_ids": [
- "rule-3",
- "rule-4"
], - "site_ids": [
- "site-1"
], - "global": false,
- "event_names": [
- "form_submit"
], - "value": "50"
}
}
]
Update a new goal.
goal_id | string <uuid> The UUID of the goal. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "id": "pDX4dc29tZWlkZW50aWZlcg",
- "name": "Purchase",
- "description": "Winter promotion",
- "rule_ids": [
- "rule-1",
- "rule-2"
], - "site_ids": [
- "site-1"
], - "event_names": [
- "purchase"
], - "global": false,
- "value": "100"
}
Delete an individual goal.
goal_id | string <uuid> The UUID of the goal. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract site_id."
}
Get a report that shows the result of the personalization.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
rule_id required | string The rule name in Acquia Lift Drupal. |
[- {
- "content_id": "content-a",
- "decision_count": 5,
- "conversion_count": 4,
- "conversion_value": 4
}, - {
- "content_id": "content-b",
- "decision_count": 9,
- "conversion_count": 3,
- "conversion_value": 3
}
]
Get a report that shows the result of the personalization.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
rule_id required | string The rule name in Acquia Lift Drupal. |
from | string <date> From which date do you to see reports. Date in ISO 8601 format YYYY-MM-DD. Defaults to 1 month ago if not given. |
to | string <date> To which date do you to see reports. Date in ISO 8601 format YYYY-MM-DD. Defaults to today if not given. |
{- "overall_stats": [
- {
- "content_id": "content-a",
- "decision_count": 5,
- "conversion_count": 4,
- "conversion_value": 4
}, - {
- "content_id": "content-b",
- "decision_count": 9,
- "conversion_count": 3,
- "conversion_value": 3
}
], - "daily_stats": [
- {
- "timestamp": "2015-10-10T00:00:00Z",
- "contents": [
- {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-a",
- "decision_count": 2,
- "conversion_count": 1,
- "conversion_value": 1
}, - {
- "content_id": "content-a",
- "decision_count": 1,
- "conversion_count": 1,
- "conversion_value": 1
}, - {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
]
}, - {
- "timestamp": "2015-10-13T00:00:00Z",
- "contents": [
- {
- "content_id": "content-b",
- "decision_count": 1,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}, - {
- "content_id": "content-b",
- "decision_count": 6,
- "conversion_count": 1,
- "conversion_value": 1
}
]
}
]
}
Get a report that shows the result of the personalization.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
rule_id required | string The rule name in Acquia Lift Drupal. |
from | string <date> From which date do you to see reports. Date in ISO 8601 format YYYY-MM-DD. Defaults to 1 month ago if not given. |
to | string <date> To which date do you to see reports. Date in ISO 8601 format YYYY-MM-DD. Defaults to today if not given. |
confidence_measure | integer [ 0 .. 100 ] Default: 95 Confidence value required to define a winner. |
goal_id | string Id of the goal we would like to get a report about. |
{- "overall_stats": [
- {
- "content_id": "content-a",
- "decision_count": 5,
- "conversion_count": 4,
- "conversion_value": 4
}, - {
- "content_id": "content-b",
- "decision_count": 9,
- "conversion_count": 3,
- "conversion_value": 3
}
], - "daily_stats": [
- {
- "content_id": "content-a",
- "results": [
- {
- "timestamp": "2015-10-11T00:00:00Z",
- "result": {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-14T00:00:00Z",
- "result": {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-12T00:00:00Z",
- "result": {
- "content_id": "content-a",
- "decision_count": 2,
- "conversion_count": 1,
- "conversion_value": 1
}
}, - {
- "timestamp": "2015-10-13T00:00:00Z",
- "result": {
- "content_id": "content-a",
- "decision_count": 1,
- "conversion_count": 1,
- "conversion_value": 1
}
}, - {
- "timestamp": "2015-10-09T00:00:00Z",
- "result": {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-10T00:00:00Z",
- "result": {
- "content_id": "content-a",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}
]
}, - {
- "content_id": "content-b",
- "results": [
- {
- "timestamp": "2015-10-12T00:00:00Z",
- "result": {
- "content_id": "content-b",
- "decision_count": 6,
- "conversion_count": 1,
- "conversion_value": 1
}
}, - {
- "timestamp": "2015-10-13T00:00:00Z",
- "result": {
- "content_id": "content-b",
- "decision_count": 1,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-09T00:00:00Z",
- "result": {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-10T00:00:00Z",
- "result": {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-11T00:00:00Z",
- "result": {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}, - {
- "timestamp": "2015-10-14T00:00:00Z",
- "result": {
- "content_id": "content-b",
- "decision_count": 0,
- "conversion_count": 0,
- "conversion_value": 0
}
}
]
}
], - "test_results": [
- {
- "content_id": "content-a",
- "decision_count": 3,
- "conversion_count": 2,
- "conversion_value": 2,
- "mean": 0.6666667,
- "variance": 0.33333328,
- "stddev": 0.5773502,
- "confidence": 0,
- "lift_default": 0,
- "lift_random": 0
}, - {
- "content_id": "content-b",
- "decision_count": 5,
- "conversion_count": 2,
- "conversion_value": 2,
- "mean": 0.4,
- "variance": 0.3,
- "stddev": 0.5477226,
- "confidence": 0,
- "lift_default": 0,
- "lift_random": 0
}
], - "winner": "",
- "overall_confidence": 0
}
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
start | integer Default: 0 Where to start from. Eg if you have 20 items, and you fill in 10 as your start number, it will give you all the items from 10 till 19 if the amount of items you request is 10. |
rows | integer Default: 10 Amount of items to return. |
visibility_on_page | string Certain objects such as slots and rules have visibility options defined. This allows us to filter them based on those options and only show those that are visible on given page or page pattern. |
prefetch | boolean Default: false Example: prefetch=true Some requests can be requested to go and get the HTML of the content item they show. Eg. /search or /content. |
sort_field | string Enum: "created" "updated" "id" "priority" Sorting field options: created, updated, id, and priority. |
sort | string Enum: "asc" "desc" Sorting order. Can be 'asc' or 'desc' |
status | string Enum: "published" "unpublished" "archived" Sorting field options: Filter the list of rules by its status. |
[- {
- "id": "rule-1",
- "label": "Front page banner personalization for Belgians",
- "slot_id": "slot-1",
- "filter_id": "c5d98718-dae7-44b7-80af-f40f96fcc00f",
- "content": [
- {
- "id": "front-banner-1",
- "title": "Front Banner 1",
- "content_connector_id": "nicks-content-hub-identifier",
- "base_url": "www.site-1.com",
- "view_mode": {
- "id": "banner-wide",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-something-something-1.png\"/>"
}
}, - {
- "id": "front-banner-2",
- "title": "Missing Content Example",
- "content_connector_id": "nicks-content-hub-identifier",
- "base_url": "www.site-2.com",
- "view_mode": {
- "id": "banner-wide",
- "preview_image": "",
- "url": "",
- "html": ""
}, - "error": {
- "message": "invalid content view",
- "code": 400
}
}, - {
- "id": "front-banner-3",
- "title": "Front Banner 3",
- "content_connector_id": "nicks-content-hub-identifier",
- "view_mode": {
- "id": "banner-wide",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-something-something-3.png\"/>"
}
}
], - "segment": "belgians",
- "testconfig": {
- "dynamic": {
- "view_mode_id": "teaser",
- "algorithm": "most_recent",
- "count": 5,
- "exclude_viewed_content": "true"
}
}, - "status": "published",
- "priority": 0
}, - {
- "id": "rule-2",
- "label": "Front page banner personalization for Belgians",
- "slot_id": "slot-1",
- "content": [
- {
- "id": "front-banner-3",
- "title": "Front Banner 3",
- "content_connector_id": "nicks-content-hub-identifier",
- "base_url": "www.site-3.com",
- "view_mode": {
- "id": "banner-wide",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-something-something-3.png\"/>"
}
}, - {
- "id": "front-banner-4",
- "title": "Front Banner 4",
- "content_connector_id": "nicks-content-hub-identifier",
- "view_mode": {
- "id": "banner-wide",
- "html": "<img src=\"nickveenhof.be/sites/all/files/banner-something-something-4.png\"/>"
}
}
], - "segment": "canadians",
- "testconfig": {
- "ab": {
- "probabilities": [
- {
- "content_connector_id": "content-connector-id-1",
- "content_id": "c5d98718-dae7-44b7-80af-f40f96fcc00f",
- "view_mode_id": "teaser",
- "probability": 0.6
}, - {
- "content_connector_id": "content-connector-id-2",
- "content_id": "45d98718-dae7-44b7-80af-f40f96fcc00f",
- "view_mode_id": "full",
- "probability": 0.35
}
]
}
}, - "updated": "2016-01-05T22:04:39.880Z",
- "created": "2016-01-05T22:04:39.880Z",
- "status": "published",
- "priority": 1
}
]
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
JSON representation of a rule object.
id required | string^[a-z0-9_-]{1,128}$ Rule UID. |
label | string Human readable label for the given rule. |
slot_id required | string^[a-z0-9_-]{1,128}$ |
priority | integer The order in which a rule will be evaluated for a slot. Rules with a higher priority are processed first. |
description | string |
filter_id | string^[a-z0-9_-]{1,128}$ The uuid of the content filter associated with this rule. |
required | Array of objects (Content) non-empty unique Content that we want to make a decision from. |
segment | string^[a-z0-9_-]{1,128}$ Segment this rule applies to. Applies to all segments if left empty. |
status | string Enum: "published" "unpublished" "archived" Status of the Rule. Defaults to unpublished. |
any or any or any or any |
{- "id": "rule-1",
- "label": "Front page banner personalization for Belgians",
- "slot_id": "slot-1",
- "filter_id": "c5d98718-dae7-44b7-80af-f40f96fcc00f",
- "content": [
- {
- "id": "front-banner-1",
- "title": "banner-title-1",
- "content_connector_id": "nicks-content-hub-identifier",
- "base_url": "www.site-1.com",
- "view_mode": {
- "id": "banner-wide"
}
}, - {
- "id": "front-banner-2",
- "title": "banner-title-2",
- "content_connector_id": "nicks_content_hub_identifier",
- "base_url": "www.site-2.com",
- "view_mode": {
- "id": "teaser"
}
}
], - "segment": "belgians",
- "priority": 10,
- "status": "published",
- "description": "Front page banner personalization for Belgians",
- "created": "2016-01-05T22:04:39.880Z",
- "updated": "2016-01-05T22:04:39.880Z",
- "testconfig": {
- "dynamic": {
- "view_mode_id": "teaser",
- "algorithm": "most_recent",
- "count": 5,
- "exclude_viewed_content": true
}
}
}
{- "id": "rule-1",
- "label": "Front page banner personalization for Belgians",
- "slot_id": "slot-1",
- "filter_id": "c5d98718-dae7-44b7-80af-f40f96fcc00f",
- "content": [
- {
- "id": "front-banner-1",
- "title": "banner-title-1",
- "content_connector_id": "nicks-content-hub-identifier",
- "base_url": "www.site-1.com",
- "view_mode": {
- "id": "banner-wide"
}
}, - {
- "id": "front-banner-2",
- "title": "banner-title-2",
- "content_connector_id": "nicks_content_hub_identifier",
- "base_url": "www.site-2.com",
- "view_mode": {
- "id": "teaser"
}
}
], - "segment": "belgians",
- "priority": 10,
- "status": "published",
- "description": "Front page banner personalization for Belgians",
- "created": "2016-01-05T22:04:39.880Z",
- "updated": "2016-01-05T22:04:39.880Z",
- "testconfig": {
- "dynamic": {
- "view_mode_id": "teaser",
- "algorithm": "most_recent",
- "count": 5,
- "exclude_viewed_content": true
}
}
}
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract site_id."
}
All rules belonging to the account
rule_id required | string <uuid> Identifier of a rule. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "id": "rule-1",
- "label": "Front page banner personalization for Belgians",
- "slot_id": "slot-1",
- "filter_id": "c5d98718-dae7-44b7-80af-f40f96fcc00f",
- "content": [
- {
- "id": "front-banner-1",
- "title": "banner-title-1",
- "content_connector_id": "nicks-content-hub-identifier",
- "view_mode": {
- "id": "banner-wide"
}
}, - {
- "id": "front-banner-2",
- "title": "banner-title-2",
- "content_connector_id": "nicks_content_hub_identifier",
- "view_mode": {
- "id": "teaser"
}
}
], - "segment": "belgians",
- "priority": 10,
- "status": "published",
- "description": "Front page banner personalization for Belgians",
- "created": "2016-01-05T22:04:39.880Z",
- "updated": "2016-01-05T22:04:39.880Z",
- "testconfig": {
- "dynamic": {
- "view_mode_id": "teaser",
- "algorithm": "most_recent",
- "count": 5,
- "exclude_viewed_content": true
}
}
}
All rules belonging to the account(or site) will be deleted
rule_id required | string <uuid> Identifier of a rule. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract site_id."
}
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
[- {
- "id": "belgians",
- "name": "Belgians",
- "description": "Segment for the Belgians"
}, - {
- "id": "canadians",
- "name": "Canadians",
- "description": "Segment for the Canadians"
}
]
account_id required | string <= 20 characters The customer account_id in the configuration database. |
{- "content_replacement_js_file": "mydomain.example/reply.js",
- "lift_capture_js_enabled": "true",
- "lift_capture_bootstrap_js_file": "mydomain.example/lift-capture-bootstrap.js"
}
account_id required | string <= 20 characters The customer account_id in the configuration database. |
Set the client specific settings. Always post the full settings schema. The server-side application will take care of only updating the changed values.
content_replacement_js_file | string <= 255 characters A customer specific reply.js that will be used. |
lift_capture_js_enabled | string <= 255 characters Enable Lift Profile Manager specific JS. |
lift_capture_bootstrap_js_file | string <= 255 characters Specify the specific Lift Profile Manager Capture bootstrap file to be used for this customer. |
{- "id": "settings.json",
- "title": "Settings",
- "type": "object",
- "properties": {
- "content_replacement_js_file": {
- "description": "A customer specific reply.js that will be used.",
- "type": "string",
- "maxLength": 255
}, - "lift_capture_js_enabled": {
- "description": "Enable Lift Profile Manager specific JS.",
- "type": "string",
- "maxLength": 255
}, - "lift_capture_bootstrap_js_file": {
- "description": "Specify the specific Lift Profile Manager Capture bootstrap file to be used for this customer.",
- "type": "string",
- "maxLength": 255
}
}
}
{- "content_replacement_js_file": "mydomain.example/reply.js",
- "lift_capture_js_enabled": "true",
- "lift_capture_bootstrap_js_file": "mydomain.example/lift-capture-bootstrap.js"
}
Returns the available slots.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
status | string Enum: "enabled" "disabled" Filter the list of slots by its status. |
[- {
- "id": "slot-1",
- "label": "Slot 1",
- "description": "Slot 1. Useful for banners on frontpage",
- "css_selector": "btn.awesome",
- "status": "enabled",
- "visibility": {
- "pages": [
- "<front>"
], - "condition": "show"
}, - "created": "2015-09-09T06:28:16.020Z",
- "updated": "2015-09-09T06:28:16.020Z"
}, - {
- "id": "slot-2",
- "label": "Slot 2",
- "description": "Acquia Lift Slot 2",
- "css_selector": "btn.more-awesome",
- "status": "enabled",
- "visibility": {
- "pages": [
- "<front>"
], - "condition": "hide"
}, - "created": "2015-09-09T06:28:16.020Z",
- "updated": "2015-09-09T06:28:16.020Z"
}, - {
- "id": "slot-3",
- "label": "Slot 3",
- "description": "Acquia Lift Slot 3",
- "css_selector": "btn.sad",
- "status": "disabled",
- "visibility": {
- "pages": [
- "<front>"
], - "condition": "show"
}, - "created": "2015-09-09T06:28:16.020Z",
- "updated": "2015-09-09T06:28:16.020Z"
}
]
Create a slot object.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
JSON representation of a slot object.
id required | string^[a-z0-9_-]{1,128}$ Slot UID. |
label | string Human readable label for the given slot. |
description | string Human readable description what this specific slot is and what its purpose is. |
css_selector | string The CSS selector that can be used for the Lift Experience Builder to auto-select a particular html entity as the slot. |
status required | string Enum: "enabled" "disabled" Status of the slot |
object (Visibility Options) Define where this rule is visible at and allows for the inclusion or exclusion of the path patterns | |
created required | string <date-time> Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
updated | string <date-time> Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
{- "id": "slot-1",
- "label": "Slot 1",
- "description": "Acquia Lift Slot 1. Useful for banners on frontpage",
- "css_selector": "btn.awesome",
- "status": "enabled",
- "visibility": {
- "pages": [
- "<front>"
], - "condition": "show"
}
}
{- "id": "slot-1",
- "label": "Slot 1",
- "description": "Acquia Lift Slot 1. Useful for banners on frontpage",
- "css_selector": "btn.awesome",
- "status": "enabled",
- "visibility": {
- "pages": [
- "<front>"
], - "condition": "show"
}, - "created": "2015-09-09T06:28:16.020Z",
- "updated": "2015-09-09T06:28:16.020Z"
}
Deletes the slots.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract site_id."
}
slot_id required | string <uuid> Unique id of a slot. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "id": "slot-1",
- "label": "Slot 1",
- "description": "Slot 1. Useful for banners on frontpage",
- "css_selector": "btn.awesome",
- "status": "enabled",
- "visibility": {
- "pages": [
- "<front>"
], - "condition": "show"
}, - "created": "2015-09-09T06:28:16.020Z",
- "updated": "2015-09-09T06:28:16.020Z"
}
slot_id required | string <uuid> Unique id of a slot. |
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract site_id."
}
delete statistics belonging to the given account (or site-specific)
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id | string <= 20 characters The customer site matching site_id in the configuration database. |
{- "error": "Could not extract account_id."
}
Get all view mode id and labels associated with the account(or site-specific)
account_id required | string <= 20 characters The customer account_id in the configuration database. |
site_id required | string <= 20 characters The customer site matching site_id in the configuration database. |
[- {
- "id": "teaser",
- "label": "Teaser"
}, - {
- "id": "full",
- "label": "Full Content"
}, - {
- "id": "rss",
- "label": "RSS"
}
]
Returns the visitor information.
account_id required | string <= 20 characters The customer account_id in the configuration database. |
identifier required | string Visitor's identity information. |
identifier_type required | string Type of visitor's identity information - must be account, email, facebook, tracking, twitter, or any custom resolvable identifier. |
person_tables required | string Data table values to return - must be identifiers, person, touch, event, or any comma-delimited combination of these values. |
{- "person": {
- "id": 12007,
- "engagementScore": 0,
- "lastTouch": "2015-10-20T14:19:13Z",
- "firstTouch": "2015-10-20T14:19:13Z",
- "firstTimeVisitor": true,
- "subscriberStatus": "Unknown",
- "customerId": 10008,
- "primaryIdentifier": "7RBYAsUXsXH6L5V871y0RO",
- "primaryIdentifierTypeId": 2,
- "active": true,
- "lastModifiedDate": "2015-10-20T18:19:20Z",
- "anonymousVisitor": false,
- "doNotTrack": false,
- "person_udf1": "test-custom-value1",
- "person_udf2": "test-custom-value2"
}, - "identifiers": [
- {
- "id": 12611,
- "identifier": "qa100",
- "personIdentifierTypeId": 6,
- "personId": 12007,
- "customerId": 10008,
- "active": true
}, - {
- "id": 12610,
- "identifier": "qa100@example.com",
- "personIdentifierTypeId": 1,
- "personId": 12007,
- "customerId": 10008,
- "active": true
}, - {
- "id": 12609,
- "identifier": "7RBYAsUXsXH6L5V871y0RO",
- "personIdentifierTypeId": 2,
- "personId": 12007,
- "customerId": 10008,
- "active": true
}
], - "touches": [
- {
- "id": 12212,
- "touchDuration": 0,
- "touchDurationInSeconds": 0,
- "touchDate": "2015-10-20T14:19:13Z",
- "channelType": "twitter",
- "engagementScore": 0,
- "referrer": "Direct",
- "referrerDomain": "Direct",
- "numberOfPageViews": 1,
- "identifier": "33tpvFowlnHW7rNquqtmq5",
- "lastModifiedDate": "2015-10-20T18:19:20Z",
- "personId": 12007,
- "customerId": 10008,
- "personIdentifierId": 12609,
- "touch_udf1": "test-custom-value1",
- "touch_udf2": "test-custom-value2",
- "events": [
- {
- "id": 17619,
- "name": "Content View",
- "eventDate": "2015-10-20T14:19:13Z",
- "eventCategoryType": "OTHER",
- "accountId": "<account_id>",
- "referrer": "Direct",
- "captureIdentifier": "2zkT5TXrcC92HmKqMAq1Yc",
- "touchId": 12212,
- "personId": 12007,
- "customerId": 10008,
- "eventCategoryId": 10046,
- "clientDate": "2015-10-20T14:19:13Z",
- "clientTimezone": "America/Anguilla",
- "lastModifiedDate": "2015-10-20T18:19:20Z",
- "contentUUID": "123e4567-e89b-12d3-a456-426655440000",
- "event_udf1": "test-custom-value1",
- "event_udf2": "test-custom-value2"
}
]
}
]
}