Source:
app/src/lib/api/lists.ts, called from app/src/lib/api/v1.ts, over
the same functions as the Lists page (app/src/lib/lists.ts). GET /lists and
adding people are the tools list_lists and add_to_list
(app/src/lib/tools/lists.ts), the same ones Claude and ChatGPT use. The rest
are the lists’ own endpoints: Claude and ChatGPT can’t reach them.{list} is the list’s id from GET /lists, or its name,
URL-encoded (Q1%20finance%20leaders). When two of your lists have the
same name, the name is refused (400) and you name the list by its id, so a
change never lands on the wrong one. (Adding people, below, takes the most
recently changed.)
Your lists
Everyone on a list
next_cursor until it
is null. A list of 13,012 people is 14 pages of 1,000. Every
member is on exactly one page, in an order that doesn’t change while you read,
even if members are added or taken off in between. A cursor works only with the
key that got it.
Members are read as they were when they were added: a person’s name, title and
company, and how well your side knew them then; a company’s name, domain,
location and how many people you had there. Never an email address or a
LinkedIn URL. People you keep private are left out of data; total counts
everyone on the list, as GET /lists does, so a page can hold fewer than
limit and still not be the last.
data:
id is IntroLink’s: the company’s name with only its letters and
digits, or domain: and a domain for a company known only by its domain.
Asking a list of companies for its people, or the other way round, is 400.
Add people to a list
not_found. Only lists of
people take people: a list of companies answers 400.
Take people off a list
data holds each person taken off as a page of the list shows
them, with the id of the row itself: keep it, because
POST /lists/{list}/people/restore with it puts them back.
Ids that aren’t on the list, that are named twice, or that are people you keep
private are left alone and listed in skipped, so the same request twice
changes nothing the second time.
Put people back
skipped; the same request twice puts nobody back the second time. For
someone in your network, adding them again with POST /lists/{list}/people
works too, and also refreshes what IntroLink knows of them.
Add companies to a list
in_network: false, the way a partner’s tracker adds firms:
under the company id your network would give it, so when you come to know
someone there, the list shows them, and the same firm is never on a list
twice. A domain or company id alone names no firm outside your network: send
its name. A company already on the list, and anything that is none of these,
are left out and listed in skipped. Sending the same request twice adds
nothing the second time.
Take companies off a list
skipped. The answer is a list_removal, as for people,
with companies in data.
Put companies back
data as companies (each needs
id, a company id, and name; domain, location and people are read
where present). Each company goes back as the removal showed it, whether
anyone in your network is at it or not. The answer is a list_restore.
Make a list
201 with the new, empty list. If you already have a list of that kind
by that name (ignoring case), nothing is made: the answer is 200 with that
list and created: false, so the same request twice makes one list. A list of
the other kind by that name is refused.
Rename a list or change its description
name, description, or both. description: null (or "") clears it.
A name another of your lists has is refused. changed says what changed, and
is empty when the list already read that way.
Delete a list
"confirm": true; without it the answer is 400
and says what would go. A client that can’t send a body with a DELETE can
send ?confirm=true instead.
Partner tracker lists
A workspace can have two outbound lists that a partner’s tracker copies in every night: one of people and one of companies. Targets ranks the firms on them for warm intros.- What you add is kept. A firm or a person you add to either list, here,
in the app or from the extension, stays: the copy removes only the members
it put there itself, when the tracker drops them. When the tracker lists
someone you added, the copy brings in what it knows of them and they stay
yours, so the tracker dropping them later doesn’t remove them. Adding someone
already on the list with
POST /lists/{list}/people(which refreshes them) makes them yours too. - Taking a member off lasts until the next copy, if the tracker still has them: change who is on them in the tracker.
- A renamed or deleted list is made again under its own name.