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

# Companies

> Who your side knows at a company, every path into it, the companies you watch, and which are your customers.

> [!NOTE]
>
> Source: `app/src/lib/api/v1.ts` over the tool `company_people`, which reads the
> person page's "At their company" list.

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.

## Who your side knows at a company

```http theme={null}
GET /v1/companies/kestrel.com/people
GET /v1/companies/Kestrel%20Logistics/people
```

Reference: [List who you know at a company](https://docs.introlink.ai/public-api/reference/companies/company-people.md)

The people at one company that a path reaches, strongest path first, each with
their best path.

```json theme={null}
{
  "object": "list",
  "company": { "name": "Kestrel Logistics", "total": 6 },
  "data": [ { "id": "p_Qm3…", "name": "Priya Raman", "role": "VP Finance", "best_path": { "…": "…" }, "path_count": 3, "url": "…", "text": "…" } ],
  "text": "6 people in your network work at Kestrel Logistics. Your side has a path to these, strongest first: …"
}
```

`company` is `null`, and `data` empty, when nobody in your network works there.
`total` counts everyone in your network at the company; `data` holds the ones a
path reaches.

## Every path into a company

> [!NOTE]
>
> Source: `app/src/lib/api/tool-reads.ts` over the tool `company_paths`
> (`app/src/lib/tools/company-paths.ts`), the same answer as the IntroLink
> extension's company panel.

```http theme={null}
GET /v1/companies/kestrel.com/paths?likelihood=strong&limit=10
GET /v1/companies/https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fkestrel-logistics%2F/paths
```

Reference: [List paths into a company](https://docs.introlink.ai/public-api/reference/companies/company-paths.md)

Everyone your side can reach at one company, each with their best path,
strongest first: how many paths are Strong, Likely or a Long shot, and where the
best ones come from (your own network, a Team network, a circle, or your
Customers).

```json theme={null}
{
  "object": "list",
  "company": { "name": "Kestrel Logistics", "url": "https://app.introlink.ai/companies/kestrellogistics" },
  "total": 31,
  "counts": { "strong": 6, "likely": 14, "long_shot": 11 },
  "matched": 6,
  "by_source": [{ "label": "Your network", "count": 22 }, { "label": "Customers", "count": 9 }],
  "data": [
    {
      "id": "p_Qm3…",
      "name": "Priya Raman",
      "role": "VP Finance",
      "url": "https://app.introlink.ai/open?person=p_Qm3…",
      "best_path": { "via": "Daniel Reyes", "…": "…" },
      "path_count": 3,
      "likelihood": "Strong",
      "confirmed": false,
      "source": "Your network",
      "sentence": "Daniel Reyes can introduce you to Priya Raman.",
      "why": "Daniel and Priya worked together at Brightwater, 2018 to 2021.",
      "text": "Priya Raman, VP Finance. Strong: …"
    }
  ],
  "text": "31 people at Kestrel Logistics are reachable through your side: 6 Strong, 14 Likely, 11 Long shot. …"
}
```

A company IntroLink can't put a name to answers `404 not_found`. A company with
nobody reachable answers `total: 0` and an empty `data`.

People you keep private are left out, and so is anyone whose best path into
the company runs through someone you keep private (the read keeps only each
person's best path, so there is no next one to fall back to); the counts drop
with them.

## Naming a company

The endpoints below take companies by any of:

* its web domain: `kestrel.com` (a `www.` or a page path is fine);
* its IntroLink id: the `id` that `GET /watches` and `POST /customers` return,
  such as `kestrellogistics` or `domain:kestrel.com`;
* its exact name: `Kestrel Logistics`. Case, punctuation and Inc. or Ltd. don't
  matter, but the name must be the company's own. A name is never matched
  loosely, so `Kestrel Log` finds nothing.

A company is looked up among yours, as the Companies page lists them. One
IntroLink can't find, or a LinkedIn page URL, is left alone and listed in
`skipped`.

> [!NOTE]
>
> Source: `app/src/lib/api/watch-signals.ts`, called from `app/src/lib/api/v1.ts`.
> These endpoints run the app's own writes, not tools, so Claude and ChatGPT
> can't reach them.

## Companies and lists you watch

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

Reference: [List what you watch](https://docs.introlink.ai/public-api/reference/companies/list-watches.md)

The companies and lists you watch, as the stars on Companies and the Signals
page's Watching line show them. Signals about the people at a watched company,
or on a watched list, show in [`GET /signals`](https://docs.introlink.ai/public-api/signals).

```json theme={null}
{
  "object": "watching",
  "companies": [
    { "id": "kestrellogistics", "name": "Kestrel Logistics", "domain": "kestrel.com", "url": "…/companies/kestrel.com" }
  ],
  "lists": [
    { "id": "8f3e…", "name": "Q1 finance leaders", "kind": "people", "url": "…/lists/8f3e…" }
  ],
  "text": "You watch 1 company and 1 list. Signals about the people there show in GET /v1/signals."
}
```

## Watch companies or lists

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

{ "companies": ["kestrel.com", "Atlas Freight"], "lists": ["8f3e…"] }
```

Reference: [Watch companies or lists](https://docs.introlink.ai/public-api/reference/companies/add-watches.md)

Send `companies` ([named as above](#naming-a-company)), `lists` (ids from
[`GET /lists`](https://docs.introlink.ai/public-api/lists#your-lists)), or both. This does what the star
on Companies and Watch on a list do. Something already watched, or not found, is left alone and listed in
`skipped`. Sending the same request twice changes nothing the second time.

```json theme={null}
{
  "object": "watch_change",
  "watching": true,
  "changed": 2,
  "data": [
    { "type": "company", "id": "kestrellogistics", "name": "Kestrel Logistics", "url": "…" },
    { "type": "list", "id": "8f3e…", "name": "Q1 finance leaders", "url": "…" }
  ],
  "skipped": [{ "type": "company", "id": "Atlas Freight", "why": "already watched" }],
  "text": "Now watching 1 company and 1 list: …"
}
```

## Stop watching them

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

{ "companies": ["kestrel.com"], "lists": ["8f3e…"] }
```

Reference: [Stop watching companies or lists](https://docs.introlink.ai/public-api/reference/companies/remove-watches.md)

Undoes `POST /watches/add`, with the same fields and the same answer
(`"watching": false`). Only the watch goes: the company, the list and its
people stay. Something not watched, or not found, is listed in `skipped`.

## Mark companies as customers, or not

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

{ "companies": ["kestrel.com", "atlasfreight"], "customer": true }
```

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

This is the Customer switch on a company's page, for many companies at once.
Nothing is written to HubSpot. The ones at a customer who are your LinkedIn
connections become champions on Connectors at once, and its people are labelled
Customer on IntroLink's next label run.

Each changed company says what its switch `was` (`true`, `false`, or `null` when
HubSpot decided) and what IntroLink counts it as now. **To undo, send each
company's `was` back as `customer`.** A company that already has the value you
sent, or isn't found, is listed in `skipped`.

```json theme={null}
{
  "object": "customer_change",
  "customer": true,
  "changed": 2,
  "data": [
    { "id": "kestrellogistics", "name": "Kestrel Logistics", "domain": "kestrel.com", "url": "…", "was": null, "is_customer": true, "source": "manual" },
    { "id": "atlasfreight", "name": "Atlas Freight", "domain": "atlas.com", "url": "…", "was": false, "is_customer": true, "source": "manual" }
  ],
  "skipped": [],
  "text": "Marked 2 companies as customers. To undo, send each company's `was` back as `customer`."
}
```

`source` says who decides now: `manual` (your switch), `hubspot`, or `null`
when nothing says it is a customer.


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