Create a list
"type": "company", and its kind cannot change later. No two lists of an organization share a name: a name in use answers 409 with list_name_taken.
Add your own rows
POST /v1/lists/{listId}/rows adds up to 500 people from what you know about them. Each row needs at least one of email, linkedinUrl, firstName and lastName:
- Nothing is looked up. An email address is kept as sent, unchecked.
- Every row becomes a new person, even one already in your workspace. Sending the same call twice adds everyone twice.
- Only people lists take rows. A company list answers
422withpeople_list_required.
Add people already in your workspace
To put the same people in another list, send their ids: thepersonIds an upload answered with, or the id of their row in another list. Up to 5,000 a call:
DELETE /v1/lists/{listId}/people with the same body takes people out of a list: they stay in your workspace and in their other lists.
Read a list’s rows
GET /v1/lists/{listId}/rows answers one page of rows, up to 1,000 at a time, in the order sortBy and sortOrder ask for:
columnValues: the values of the list’s own columns, by column id. For the next page, send pagination.nextCursor as cursor with the same sort and filters. See Pagination.
Filter the rows
filters is a JSON object in which a row must match every key, and any of a key’s values. Text keys such as title, companyName or country take an array of values, or include and exclude arrays:
level, dept, industryName and country are the people search’s own, from GET /v1/people/filters. A key the list’s kind does not take, or a value of the wrong shape, answers 422 with invalid_row_filters. Every key is in List a list’s rows.
Keep lists in folders
folderName, which creates the folder when there is none:
- A folder holds one kind of list. A people list goes only into a folder for people lists: any other folder answers
404withfolder_not_found. "folderId": nulltakes a list out of every folder.GET /v1/lists?folderId=...answers the lists in one folder, andGET /v1/foldersevery folder for one kind of list.- Deleting a folder keeps its lists, out of every folder.
Delete a list
DELETE /v1/lists/{listId} deletes a list and its own columns. Its people stay in your workspace and in every other list they are in.