GET https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{accountId}/activity
This endpoint allows you to pull a record's history and behavior score.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
authorization | header | false | required | string | Insert your generated access token. (Bearer {access token}) |
accountId | Path | false | required | number | Account ID where query needs to be done |
months | Query | false | optional | string |
The number of past months of data to retrieve. When unspecified, this defaults to 0 (current month only). To retrieve more months of data, specify how many months in the past, not including the current month (1 is current and past month, etc). |
contactid | Query | false | required | string |
Specify the ID of the record. ("{listid}:{recordid}")
|
Response
{
"activity": {
"lastInbound": "Today",
"ScorePeriod": "all time",
"lastOutbound": "6 Days Ago",
"ScoreDetails": [
{
"id": "s-0001-1910",
"idType": "msg",
"specific": false,
"profile": false,
"action": "MESSAGE_SEND",
"score": 30
}
],
"score": 30,
"entries": [],
"firstOutbound": "7 Days Ago",
"EntryMonthsAvailable": [
"1909",
"1910"
],
"HasProfileScore": false,
"HasScoreSheet": true,
"HasBehaviorScore": true,
"firstInbound": "13 Days Ago"
},
"activitylist": [
{
"Bin": "FORM",
"InScoreRange": true,
"d": "14",
"WhenMillis": 1571097511000,
"What": "Submitted: Example",
"Verb": "fs",
"m": "Oct",
"ago": "0",
"Icon": "silk/application_form_add.png",
"y": "19",
"Responses": [],
"id": "e8e1da5d-f55f-4506-997d-38bf14782726",
"idType": "form"
}
]
}
Code Examples
cURL
curl --location --request GET
'https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{ACCOUNT_ID}/activity?cont
actid=l-unified-contacts:65e3' \
--header 'Authorization: Bearer 0ce7825a-5bcb-3d08-b316-11fe6a5a0c0d'