Lists API
Manage lead lists and folders.
Lists are collections of leads. You can create lists manually, from scrape jobs, or by filtering existing leads. Lists can be organized into folders.
GET
/api/listsSessionGet all lists for the organization
Parameters
folderIdstringFilter by folder IDsearchstringSearch lists by nameResponse
{
"data": [
{
"id": "list-123",
"name": "Q1 Sales Prospects",
"leadCount": 500,
"folderId": "folder-1",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z"
}
],
"total": 15
}POST
/api/listsSessionCreate a new list
Parameters
namestringrequiredList namefolderIdstringParent folder IDRequest
{
"name": "Engineering Leaders",
"folderId": "folder-1"
}Response
{
"id": "list-456",
"name": "Engineering Leaders",
"leadCount": 0,
"folderId": "folder-1",
"createdAt": "2024-01-25T09:00:00Z"
}GET
/api/lists/:idSessionGet a specific list with its leads
Parameters
idstringrequiredList IDpagenumberPage number for leads paginationlimitnumberLeads per page (default: 50)Response
{
"id": "list-123",
"name": "Q1 Sales Prospects",
"leadCount": 500,
"leads": [
{
"id": "lead-1",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"firstName": "John",
"lastName": "Doe",
"title": "VP of Sales",
"company": "Anthropic",
"workEmail": "john@anthropic.com"
}
],
"total": 500,
"page": 1,
"totalPages": 10
}GET
/api/lists/:id/exportSessionExport list as CSV
Parameters
idstringrequiredList IDDELETE
/api/lists/:idSessionDelete a list
Parameters
idstringrequiredList IDFolder Management
GET
/api/lists/foldersSessionGet all folders
Response
{
"data": [
{
"id": "folder-1",
"name": "Sales",
"listCount": 5
}
]
}POST
/api/lists/foldersSessionCreate a new folder
Parameters
namestringrequiredFolder nameRequest
{
"name": "Marketing Campaigns"
}