List Lists
/v2/listsThe workspace's people and company lists, most recently updated first unless sort_by names a column. Filter by type, owner (me or a user id) and query (a case-insensitive substring of the name). records_count is what an export of the list would write. metadata.sort_by reports the order actually served: null when none was asked for, or when the workspace holds too many lists to order (the default order is served then). With include_saved_views=true, metadata.saved_views also reports the standing views (every saved person or company, and those saved without a list), one entry each, narrowed by type. Free: costs no credits.
Query parameters
typeenumoptionalOnly lists of this kind. Omit for both.
Allowed values:
peoplecompaniesownerstringoptionalmax length: 64Whose lists.
mefor the caller's own, or a user id. Omit for everyone in the workspace.querystringoptionalmax length: 100Case-insensitive substring of the list name.
sort_byenumoptionalOrder by this column. Omit for the default order, most recently updated first.
metadata.sort_byreports the order actually served.Allowed values:
namerecords_countownercreated_atupdated_atsort_directionenumoptionalIgnored without
sort_by. Defaults to the column's own natural direction.Allowed values:
ascdescinclude_saved_viewsenumoptionalAlso report the standing saved views - all saved people / companies, and those saved without a list - in
metadata.saved_views:{ type, saved, records_count, last_saved_at }each. Honourstype; ignoresowner,queryand paging. Off by default (four extra reads).Allowed values:
truefalsepageintegeroptionalmin: 1default: 1The page, 1-based.
per_pageintegeroptionalmin: 1max: 100default: 25Lists per page.
Responses
For error handling see Errors. The list fields are described in List object.
