GET https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{accountId}/lookup
This endpoint allows you to pull a record from a list based on their cookie ID or e-mail address.
Parameter Notes :
To obtain the cookie ID, use ActOn.Beacon.cookie[{Account #}] in the JS console while on a page that contains the Act-On beacon code. When using this method, replace “{Account #}” with the same account number associated with the beacon tracker. The account numbers must match. (Note that this does not work on an Act-On landing page.)
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 |
cookieid | Query | false | optional | string | Specify the cookie ID. See Parameter Notes for more information. |
Query | false | optional | string |
* One of the two Query Parameters (cookieid or email) should be present.
Response
{
"ObjectType": "",
"contactID": "l-unified-contacts:7a120",
"First Name": "Agusss",
"Last Name": "Doe",
"E-mail Address": "agus@test.com"}
Code Examples
cURL
curl --location --request GET
'https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{ACCOUNT_ID}/lookup?emai
l=agus@test.com' \
--header 'Authorization: Bearer 0ce7825a-5bcb-3d08-b316-11fe6a5a0c0d'