> ## Documentation Index
> Fetch the complete documentation index at: https://docs.introlink.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Lists

> Your lists: everyone on one, adding, taking off and putting back people and companies, and making, renaming and deleting lists.

> [!NOTE]
>
> 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.

Each endpoint's own page, under **Endpoints**, lists its parameters, its answer
field by field and its errors, and has an example of each. This guide is about
what the endpoints are for and how they fit together.

A list holds people or companies, never both. Every endpoint works on the key
creator's own lists. Sharing a list (its public link and password) stays in the
app.

In a path, `{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

```http theme={null}
GET /v1/lists
```

Reference: [List your lists](https://docs.introlink.ai/public-api/reference/lists/list-lists.md)

The key creator's lists of people and companies, most recently changed first.

```json theme={null}
{
  "object": "list",
  "total": 2,
  "data": [
    { "id": "0b6f7a34-…", "name": "Q1 finance leaders", "kind": "people", "members": 14, "url": "…" }
  ],
  "text": "You have 2 lists, most recently changed first: …"
}
```

## Everyone on a list

```http theme={null}
GET /v1/lists/{list}/people?limit=1000
GET /v1/lists/{list}/companies?limit=1000
```

Reference: [List people on a list](https://docs.introlink.ai/public-api/reference/lists/list-people.md) · [List companies on a list](https://docs.introlink.ai/public-api/reference/lists/list-companies.md)

A page at a time, as many pages as the list needs: follow `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.

```json theme={null}
{
  "object": "list",
  "list": { "id": "0b6f7a34-…", "name": "Outbound targets", "kind": "people", "url": "…" },
  "total": 13012,
  "data": [
    {
      "id": "p_Qm3…",
      "name": "Priya Raman",
      "title": "VP Finance",
      "company": "Kestrel Logistics",
      "strength_when_added": "high",
      "added_at": "2026-12-01T03:17:00.000Z",
      "url": "…"
    }
  ],
  "next_cursor": "c_x9F…",
  "text": "Outbound targets: 13,012 people. 1,000 on this page. Ask again with cursor=next_cursor for the next page."
}
```

A company is the same, with these in `data`:

```json theme={null}
{ "id": "kestrellogistics", "name": "Kestrel Logistics", "domain": "kestrel.com", "location": "Rotterdam", "people": 4, "added_at": "…", "url": "…" }
```

A company's `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

```http theme={null}
POST /v1/lists/{list}/people
Content-Type: application/json

{ "people": ["p_Qm3…", "p_Zt8…"], "create": false }
```

Reference: [Add people to a list](https://docs.introlink.ai/public-api/reference/lists/add-to-list.md)

Someone already on the list is left as they are, so the same request twice
changes nothing the second time. Ids IntroLink doesn't know, and people the
creator keeps private, are left out and returned in `not_found`. Only lists of
people take people: a list of companies answers `400`.

```json theme={null}
{
  "object": "list_addition",
  "list": { "id": "0b6f7a34-…", "name": "Q1 finance leaders", "url": "…", "created": false },
  "added": 2,
  "data": [{ "id": "p_Qm3…", "name": "Priya Raman", "url": "…" }],
  "not_found": [],
  "text": "Added 2 people to \"Q1 finance leaders\": …"
}
```

Nothing is sent to anyone.

## Take people off a list

```http theme={null}
POST /v1/lists/{list}/people/remove
Content-Type: application/json

{ "people": ["p_Qm3…", "p_Zt8…"] }
```

Reference: [Remove people from a list](https://docs.introlink.ai/public-api/reference/lists/remove-people-from-list.md)

This does what Remove does on the list's page. Someone added under another of
their identities (by email address before IntroLink had their LinkedIn, say) is
found by either. `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`](#put-people-back) 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.

```json theme={null}
{
  "object": "list_removal",
  "list": { "id": "0b6f7a34-…", "name": "Q1 finance leaders", "kind": "people", "url": "…" },
  "removed": 1,
  "data": [{ "id": "p_Qm3…", "name": "Priya Raman", "title": "VP Finance", "company": "Kestrel Logistics", "strength_when_added": "high", "added_at": "…", "url": "…" }],
  "skipped": [{ "id": "p_Zt8…", "why": "not on this list" }],
  "text": "Took 1 person off \"Q1 finance leaders\". POST /v1/lists/{list}/people/restore with this answer's data puts them back. Left 1 as it was."
}
```

## Put people back

```http theme={null}
POST /v1/lists/{list}/people/restore
Content-Type: application/json

{ "people": [{ "id": "p_Qm3…", "name": "Priya Raman", "title": "VP Finance", "company": "Kestrel Logistics", "strength_when_added": "high" }] }
```

Reference: [Restore people to a list](https://docs.introlink.ai/public-api/reference/lists/restore-people-to-list.md)

Undoes a removal: each person goes back on the list as the removal showed
them, whether they are in your network or not, so targets from a partner's
tracker, whom nobody you know may know, come back too. Only ids your key's answers carried
can be put back, so this re-adds people IntroLink already named to you rather
than anyone at all. Someone already on the list, an id your key can't open,
someone you keep private, and a member without a name are left out and listed
in `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.

```json theme={null}
{
  "object": "list_restore",
  "list": { "id": "0b6f7a34-…", "name": "Q1 finance leaders", "kind": "people", "url": "…" },
  "restored": 1,
  "data": [{ "id": "p_Qm3…", "name": "Priya Raman", "title": "VP Finance", "company": "Kestrel Logistics", "strength_when_added": "high", "added_at": "…", "url": "…" }],
  "skipped": [],
  "text": "Put 1 person back on \"Q1 finance leaders\"."
}
```

## Add companies to a list

```http theme={null}
POST /v1/lists/{list}/companies
Content-Type: application/json

{ "companies": ["kestrel.com", "brightwater", { "name": "Harrow Capital", "domain": "harrowcap.example" }] }
```

Reference: [Add companies to a list](https://docs.introlink.ai/public-api/reference/lists/add-companies-to-list.md)

This does what Add to list does on a company's page: each company is found in
your network the way its page finds it (a firm by its domain, else by its
name), and added as it is now. A firm nobody in your network is at yet is
added as itself, `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.

```json theme={null}
{
  "object": "company_addition",
  "list": { "id": "5c1d…", "name": "Targets", "kind": "companies", "url": "…" },
  "added": 2,
  "data": [
    { "id": "kestrellogistics", "name": "Kestrel Logistics", "domain": "kestrel.com", "url": "…", "in_network": true },
    { "id": "harrowcapital", "name": "Harrow Capital", "domain": "harrowcap.example", "url": "…", "in_network": false }
  ],
  "skipped": [{ "id": "brightwater", "why": "already on this list" }],
  "text": "Added 2 companies to \"Targets\": Kestrel Logistics, Harrow Capital. One is a firm nobody in your network is at yet. Left out 1."
}
```

## Take companies off a list

```http theme={null}
POST /v1/lists/{list}/companies/remove
Content-Type: application/json

{ "companies": ["kestrellogistics", "brightwater.example"] }
```

Reference: [Remove companies from a list](https://docs.introlink.ai/public-api/reference/lists/remove-companies-from-list.md)

A domain takes off every company on the list with that domain. What isn't on
the list is listed in `skipped`. The answer is a `list_removal`, as for people,
with companies in `data`.

## Put companies back

```http theme={null}
POST /v1/lists/{list}/companies/restore
Content-Type: application/json

{ "companies": [{ "id": "kestrellogistics", "name": "Kestrel Logistics", "domain": "kestrel.com", "location": "Rotterdam", "people": 4 }] }
```

Reference: [Restore companies to a list](https://docs.introlink.ai/public-api/reference/lists/restore-companies-to-list.md)

The same as for people: send the removal's `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

```http theme={null}
POST /v1/lists
Content-Type: application/json

{ "name": "Seed funds", "kind": "companies", "description": "Funds to meet before the round" }
```

Reference: [Create a list](https://docs.introlink.ai/public-api/reference/lists/create-list.md)

Answers `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.

```json theme={null}
{
  "object": "list_creation",
  "created": true,
  "list": { "id": "5c1d…", "name": "Seed funds", "description": "Funds to meet before the round", "kind": "companies", "members": 0, "url": "…" },
  "text": "Made the list of companies \"Seed funds\". POST /v1/lists/{list}/companies adds to it."
}
```

## Rename a list or change its description

```http theme={null}
PATCH /v1/lists/{list}
Content-Type: application/json

{ "name": "Seed funds, Q1", "description": null }
```

Reference: [Update a list](https://docs.introlink.ai/public-api/reference/lists/update-list.md)

Send `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.

```json theme={null}
{
  "object": "list_update",
  "changed": ["name", "description"],
  "list": { "id": "5c1d…", "name": "Seed funds, Q1", "description": null, "kind": "companies", "members": 12, "url": "…" },
  "text": "Renamed \"Seed funds\" to \"Seed funds, Q1\". Cleared its description."
}
```

## Delete a list

```http theme={null}
DELETE /v1/lists/{list}
Content-Type: application/json

{ "confirm": true }
```

Reference: [Delete a list](https://docs.introlink.ai/public-api/reference/lists/delete-list.md)

Deletes the list, everyone or every company on it, and its share link. This
can't be undone, so it needs `"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.

```json theme={null}
{
  "object": "list_deletion",
  "deleted": true,
  "list": { "id": "5c1d…", "name": "Seed funds, Q1", "description": null, "kind": "companies", "members": 12, "url": "…" },
  "text": "Deleted \"Seed funds, Q1\" and its 12 companies. This can't be undone."
}
```

## 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](https://docs.introlink.ai/public-api/targets.md)
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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.