List Object

A list is a group of prospects that you can use to send list emails or to feed engagement programs. Learn more about lists in Salesforce Help.

Include the authentication header with every request. For information on how to authenticate, see Authentication.

Note

List Resources 

Resource NameOperationDescription
List CreatePOSTCreate a list record.
List DeleteDELETEDelete a list record.
List ReadGETRequest information for a single list.
List QueryGETRequest information for the lists that match the specified criteria.
List UpdatePOSTUpdate a list’s information, including list fields, list subscription, and custom fields.

List Create 

Create a list with the specified fields.

URI 

1/api/list/version/4/do/create?...

Parameters 

You can use any list field as a parameter. For a list of list fields, see List in the object field reference.

Example 

Create a list with the name New List and the description Likely Widget Customers:

1POST /api/list/version/4/do/create?format=json HTTP/1.1
2Host: pi.pardot.com
3Content-Type: application/x-www-form-urlencoded
4Authorization: Bearer <ACCESS_TOKEN>
5Pardot-Business-Unit-Id: <BUSINESS_UNIT_ID>
6
7name=New List&title=New List&description=Likely Widget Customers

List Delete 

Delete the specified list.

URI 

1/api/list/version/4/do/delete/id/<ID>

Replace <ID> with the Account Engagement list ID.

List Read 

Request information for a single list.

URI 

1/api/list/version/4/do/read/id/<ID>?..

Replace <ID> with the Account Engagement list ID.

Example 

Request information for the list with ID 12345.

1/api/list/version/4/do/read/id/12345

List Query 

Request information about the lists that match the specified criteria. You can specify which lists and which fields to request. A maximum of 200 lists are returned, unless you specify the output as mobile. If you specify the output as mobile, then all lists are returned.

To request information about a specific list, use List Read.

Tip

URI 

1/api/list/version/4/do/query?...

Parameters to Select Lists 

Use these parameters to specify which lists are returned. Parameters can be used in any combination and in any order unless otherwise specified.

Notes:

ParameterTypePossible ValuesDescription
created_afterstringtoday, yesterday, last_7_days, this_month, last_month,<custom_time>Request lists created after the specified date and time. Example: To request lists created in 2020, use /api/lists/version/4/do/query?created_after=2019-12-31 24:59:59.
created_beforestringtoday, yesterday, last_7_days, this_month, last_month, <custom_time>Request lists created before the specified date and time. Doesn’t include lists created at the specified time. <custom_time> Example: to request lists created before today (but not created today), use /api/list/version/4/do/query?created_before=today.
id_greater_thanintegerAny positive integerRequest lists that have an Account Engagement ID greater than the specified number.
id_less_thanintegerAny positive integerRequest lists that have an Account Engagement ID less than the specified number.
namestringstringRequest lists with the specified name.
updated_afterstringtoday, yesterday, last_7_days, this_month, last_month, <custom_time>Request lists that were last updated after the specified date and time.
updated_beforestringtoday, yesterday, last_7_days, this_month, last_month, <custom_time>Request lists that were last updated before the specified date and time.

Parameters to Specify Which Results Are Returned 

Use these parameters to specify which list fields are returned, and how the lists are sorted.

ParameterTypePossible ValuesDescription
limitintegerAny integer from 1 through 200.The number of lists to return. Default value is 200.
offsetintegerAny positive integerThe number of lists to omit from the response (the number to “skip over”). Example: Retrieve a set of list records, omitting the 50 most recently updated lists. Sort the query by the updated_at field and use offset=50: /api/list/version/4/do/query?sort_by=updated_at&offset=50
sort_bystringcreated_at, id, name, updated_atThe field by which the results are sorted. See Sort Order.
sort_orderstringascending, descendingThe sort order. The default value depends on which sort_by value you specify. See Sort Order.

Sort Order 

Use sort_by to specify which field Account Engagement uses to sort the results. Different fields have different default sort orders.

ValueDefault Sort OrderDescription
created_atdescendingSort the results by the lists’ created_at timestamps.
idascendingSort the results by the lists’ id fields.
nameascendingSort the results by the lists’ name fields.
updated_atdescendingSort the results by the lists’ updated_at timestamps.

Request a set of list records, sorted in ascending order by the time of last update.

1/api/list/version/4/do/query?sort_order=ascending&sort_by=updated_at

List Update 

Update the value of a list’s fields. Fields that aren’t specified in the request aren’t changed. To clear a field, use a null value.

Returns an updated version of the list.

URI 

1/api/list/version/4/do/update/id/<ID>?...

Replace <ID> with the Account Engagement ID of the list.

Parameters 

You can use any list field as a parameter. For information about list fields, see List.

Example 

To change a list’s name to “VIP List” and change this list title to Learn about Widgets, use the following command:

1/api/list/version/4/do/update/id/485336?name=VIP List&title=Learn about Widgets

XML Response 

The XML response for a query request contains information about multiple lists. The XML response for a read request contains information about a single list.

XML Response for List Query 

1<rsp stat="ok" version="1.0">
2    <result>
3        <total_results>...</total_results>
4        <list>...</list>
5        <list>...</list>
6        <list>...</list>
7    </result>
8</rsp>
TagDescription
<result>Parent tag. Contains the lists that match the parameters specified in your query.
<total_results>The number of lists selected by the query. Note: The query request returns a maximum of 200 lists. If your query matches more than 200 lists, you can make several requests to retrieve all matching records.
<list>The information for a single list. For information about list fields, see List.

XML Response for List Read 

1<rsp stat="ok" version="1.0">
2    <list>
3        <id>752</id>
4        <name>Monthly Newsletter</name>
5        <is_public>true</is_public>
6        <is_dynamic>false</is_dynamic>
7        <title>Newsletter</title>
8        <description>For public lists, an optional description may be used to explain to the prospect why they might want to include this list in their subscription preferences.</description>
9        <is_crm_visible>false</is_crm_visible>
10        <created_at>2014-02-11 15:42:36</created_at>
11        <updated_at>2014-03-06 15:28:41</updated_at>
12    </list>
13</rsp>
TagDescription
<list>Parent tag. The information for a single list. For information about list fields, see List.