> ## 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.

# People

> Search your network, look up one person and every path to them, and make the People page's bulk edits: private, kind and group.

> [!NOTE]
>
> Source: `app/src/lib/api/v1.ts` over the tools `search_people`, `get_person` and
> `find_paths` (`app/src/lib/tools/`), which read the same loaders as IntroLink's
> Search and person page. The edits are in `app/src/lib/api/people.ts`, on the
> People page's own functions. They are not tools: 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.

## Search people

```http theme={null}
GET /v1/people?q=heads%20of%20finance%20at%20freight%20companies
```

Reference: [Search people](https://docs.introlink.ai/public-api/reference/people/search-people.md)

People who fit a description in plain words (a role, a company, a place, an
industry), ranked as IntroLink's Search ranks them: people who fit first, then
the strongest path. When nobody fits it as a description, `q` is looked up as a
name.

```json theme={null}
{
  "object": "list",
  "query": "heads of finance at freight companies",
  "matched": 14,
  "with_path": 9,
  "without_path": 5,
  "search_url": "https://app.introlink.ai/search?q=…",
  "data": [
    {
      "id": "p_Qm3…",
      "name": "Priya Raman",
      "role": "VP Finance, Kestrel Logistics",
      "url": "https://app.introlink.ai/open?person=p_Qm3…",
      "best_path": {
        "via": "Daniel Reyes",
        "via_id": "p_8Tz…",
        "via_role": "Investor",
        "your_tie": "22 emails with you",
        "strength": "high",
        "strength_label": "High",
        "evidence": ["Worked together at Brightwater, 2018 to 2021", "On 6 threads together"],
        "last_contact": "On a thread together 12 days ago",
        "network": null,
        "trend": null,
        "ask_url": "https://app.introlink.ai/open?ask=p_Qm3…&via=p_8Tz…",
        "text": "Daniel Reyes (Investor, High): worked together at Brightwater, 2018 to 2021…"
      },
      "path_count": 3,
      "text": "Priya Raman, VP Finance, Kestrel Logistics. Best path: via Daniel Reyes…"
    }
  ],
  "text": "14 people match …"
}
```

## One person

```http theme={null}
GET /v1/people/{id}
```

Reference: [Get a person](https://docs.introlink.ai/public-api/reference/people/get-person.md)

Who they are, where they are, their previous role, when you were last in touch,
which of your lists they are on, and their three strongest paths. `colleagues`
are other people at their company your side can reach.

Fields: everything a search result has, plus `location`, `previously`,
`last_contact`, `lists` (names), `paths`, `company` (`name`, `known`) and
`colleagues`. A person you keep private, or an id that isn't yours, is `404`.

## Paths to a person

```http theme={null}
GET /v1/people/{id}/paths?limit=5
```

Reference: [List paths to a person](https://docs.introlink.ai/public-api/reference/people/find-paths.md)

Every path, strongest first: the same paths, in the same order, as the person's
page in IntroLink.

```json theme={null}
{
  "object": "list",
  "person": { "id": "p_Qm3…", "name": "Priya Raman", "role": "VP Finance, Kestrel Logistics", "url": "…" },
  "total": 3,
  "data": [ { "via": "Daniel Reyes", "strength": "high", "…": "…" }, { "via": "You", "via_role": "Direct", "trend": [0,0,0,0,0,0,0,0,2,2,1,1], "…": "…" } ],
  "company": { "name": "Kestrel Logistics", "known": 2 },
  "colleagues": [],
  "text": "Priya Raman, VP Finance, Kestrel Logistics. 3 paths, strongest first: …"
}
```

Every answer that carries a path gives it the same fields: who can introduce
you (`via`, `"You"` on a direct path), how strong the path is, its evidence
(never email content), the last contact, the shared network it came through,
and a link to IntroLink's composer with the path chosen. The
[reference](https://docs.introlink.ai/public-api/reference/people/find-paths.md) describes each field.

## Edit people in bulk

The People page's bulk edits, for many people at a time, by the ids earlier
answers carry. Each takes up to 100 ids and answers alike:

* `changed`: how many people this request changed, and `data`, who;
* `skipped`: every other id, in the order sent, with `why` (already so, not one
  of your people, not on your roster).

Only your own people change. An id for someone only a teammate has, or one
IntroLink doesn't know, is skipped as `not one of your people`. Sending the same
request twice changes nothing the second time, and each edit is undone by
sending the other value with the same ids.

### Mark people private

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

{ "people": ["p_Qm3…", "p_8Tz…"], "private": true }
```

Reference: [Mark people private](https://docs.introlink.ai/public-api/reference/people/set-people-private.md)

This is the People page's Private. A private person is kept out of every shared
network straight away: no teammate or shared network sees them, and from the
next request no answer of the API includes them, as a result, a path through
them, a colleague or by id. `"private": false` with the same ids shares them
again, and they are back in the next answer.

This is the only endpoint that reaches people you keep private, so that it can
share them again. Its answer carries ids only, never a name.

```json theme={null}
{
  "object": "people_privacy",
  "private": true,
  "changed": 1,
  "data": [{ "id": "p_Qm3…" }],
  "skipped": [{ "id": "p_8Tz…", "why": "already private" }],
  "text": "1 person is private now. …"
}
```

### People, or not

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

{ "people": ["p_Ab1…"], "kind": "group" }
```

Reference: [Mark people or not people](https://docs.introlink.ai/public-api/reference/people/set-people-kind.md)

This is the People page's **Mark as person** and **Not a person**. Your answer
overrules IntroLink's rules and stays through every sync. The rows move between
People and Not people when IntroLink next refreshes your network, in a minute
or so. People you keep private are skipped like unknown ids.

```json theme={null}
{
  "object": "people_kind",
  "kind": "group",
  "changed": 1,
  "data": [{ "id": "p_Ab1…", "name": null, "kind": "group", "url": "…" }],
  "skipped": [],
  "text": "Set aside 1 row as not a person. …"
}
```

`name` is `null` when IntroLink knows someone only by an address: no answer
carries an email address.

### Move connectors to a group

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

{ "people": ["p_8Tz…"], "group": "Advisors" }
```

Reference: [Move people to a connector group](https://docs.introlink.ai/public-api/reference/people/set-people-group.md)

This is the People page's group, for people on your
[roster of connectors](https://docs.introlink.ai/public-api/connectors.md), and the same change as
[`POST /connectors/group`](https://docs.introlink.ai/public-api/connectors#change-their-group). The group is marked as your
choice, so IntroLink's own regrouping (moving a leaver from Employees to Former
Colleagues, or a champion from Others to Customers) leaves it alone. Someone in
the group already by your choice is skipped; someone IntroLink put there is
marked as chosen. Someone who isn't on the roster, your own row, and people you
keep private are skipped. Putting someone on the roster is its own step
([`POST /connectors`](https://docs.introlink.ai/public-api/connectors#put-people-on-your-roster)). Each moved person's `connector`
is the id `GET /connectors` answers.

```json theme={null}
{
  "object": "people_group",
  "group": "Advisors",
  "changed": 1,
  "data": [{ "id": "p_8Tz…", "name": "Daniel Reyes", "connector": "41be…", "group": "Advisors", "url": "…" }],
  "skipped": [],
  "text": "Moved 1 connector to Advisors, as your choice: IntroLink won't regroup them on its own."
}
```


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