GET https://restapi.actonsoftware.com/ucl/v2/{accountId}/list
This endpoint allows you to pull a list of the segments within the All Contacts.
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 |
pageSize | query | false | optional | number (maximum=1000) | Specify the number of elements to fetch. (Default=100) (Maximum=1000) |
pageNumber | query | false | optional | number | Specify the element offset to begin the fetch. (Default=0) |
tags | Query | False | Optional | String | Using a semicolon as the delimiter specify the tags you would like returned. |
Response
[
{
"id": 64500,
"createdTime": 1661898890439,
"updatedTime": 1661899142459,
"accountId": 30464,
"enabled": true,
"externalId": "q-0179",
"item": "{\"id\": \"q-0179\", \"name\": \"All Act-On Contacts\", \"type\": \"Query\", \"parent\": \"\", \"isEditable\": false, \"recordsCount\": 1378, \"lastCountDate\": 1661899142386}",
"folderId": null,
"authorId": "",
"username": null,
"position": 0,
"isFavorite": false,
"labels": [],
"hasToAudit": false
},
{
"id": 64560,
"createdTime": 1661898891051,
"updatedTime": 1661899142450,
"accountId": 30464,
"enabled": true,
"externalId": "q-0180",
"item": "{\"id\": \"q-0180\", \"name\": \"All Salesforce Leads\", \"type\": \"Query\", \"parent\": \"\", \"isEditable\": false, \"recordsCount\": 1357, \"lastCountDate\": 1661899142386}",
"folderId": null,
"authorId": "373464",
"username": null,
"position": 1,
"isFavorite": false,
"labels": [],
"hasToAudit": false
},
{
"id": 64426,
"createdTime": 1661898891167,
"updatedTime": 1661899142454,
"accountId": 30464,
"enabled": true,
"externalId": "q-0181",
"item": "{\"id\": \"q-0181\", \"name\": \"All Salesforce Contacts\", \"type\": \"Query\", \"parent\": \"\", \"isEditable\": false, \"recordsCount\": 21, \"lastCountDate\": 1661899142386}",
"folderId": null,
"authorId": "373464",
"username": null,
"position": 2,
"isFavorite": false,
"labels": [],
"hasToAudit": false
},
{
"id": 111843,
"createdTime": 1672355787172,
"updatedTime": 1672355833760,
"accountId": 30464,
"enabled": true,
"externalId": "q-0202",
"item": "{\"id\": \"q-0202\", \"name\": \"TEST\", \"type\": \"Query\", \"parent\": \"\", \"isEditable\": true, \"recordsCount\": 1335, \"lastCountDate\": 1672355833684, \"hasSplitsToRegenerate\": false}",
"folderId": null,
"authorId": "373464",
"username": null,
"position": 3,
"isFavorite": false,
"labels": [],
"hasToAudit": false
}
]
Code Examples
cURL
curl -X GET https://restapi.actonsoftware.com/ucl/v2/{accountId}/list -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"