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

# Public API

> Use your network from your own tools: read it, add people to your lists, draft and follow intro asks, handle intro requests, choose your connectors, and import people. Nothing the API does sends email from your Gmail.

> [!NOTE]
>
> Source: `app/src/lib/api/` (the handler, `v1.ts`), served at `app/src/app/v1/[...path]/route.ts`.
> Built in product epic P18 over the same tools Claude and ChatGPT use (`app/src/lib/tools/`).

The public API answers the questions IntroLink answers in the app: who is in
your network, who can introduce you to someone, and who your side knows at a
company. It can also do the two things Claude and ChatGPT can do through
IntroLink: add people to one of your lists, and draft an intro ask that waits in
your Gmail drafts. It follows each ask after that, as the Asks page does: where
it stands, what happened, and a follow-up saved to your drafts. It handles the
intro requests founders send you, as the Requests tab does. It can choose who is
on your roster of connectors, and in which group, as the Connectors page does,
watch companies, mark which are your customers, and dismiss signals or mark them
seen. It can import people into your network, or a connector's, as uploading a
LinkedIn Connections.csv does. Nothing it does sends an email from your Gmail.

```bash theme={null}
curl https://app.introlink.ai/v1/people/p_…/paths \
  -H "Authorization: Bearer il_live_…"
```

## What a key sees

A key is created by a workspace owner or admin in IntroLink, under
**Settings, API**. Every request runs **as the person who created the key**:

* the same people, the same paths in the same order, and the same evidence as
  IntroLink shows them, including their teams and circles under the same rules
  ([Visibility](https://docs.introlink.ai/concepts/graph.md));
* **never a private person.** A colleague's private people never reach the
  creator at all, and the creator's own private people are left out of
  everything the key returns: results, paths through them, colleagues at a
  company, and lookups by id. Only [`POST /people/private`](https://docs.introlink.ai/public-api/people#mark-people-private)
  reaches them, to share them again;
* never an email address or a phone number. People are named, and identified by
  opaque ids (`p_…`).

A key stops working at its next request when it is revoked, when its creator
leaves the workspace, or when the workspace's plan no longer includes the API.
Nothing about a key is cached.

## Plans and limits

* **Individual, Team and Business.** The API and webhooks come with every paid
  plan. On the Free trial every request answers `403` `plan_required`
  ([Authentication](https://docs.introlink.ai/public-api/authentication.md#when-it-stops)).
* **Credits.** Each person or company a read returns costs the workspace 1
  credit, from the same balance as everything else in IntroLink. Writes, asks,
  lists themselves, usage and imports are free. Each endpoint's page says
  whether it costs credits, and two headers on every counted answer say what it
  cost and what's left ([Conventions](https://docs.introlink.ai/public-api/conventions.md#credits)).
* **60 requests a minute** for each key, then `429` with `Retry-After: 60`
  ([Conventions](https://docs.introlink.ai/public-api/conventions.md#rate-limits)).

## Endpoints

Base URL: `https://app.introlink.ai/v1`

| Method | Path | Returns |
| - | - | - |
| `GET` | [`/people?q=`](https://docs.introlink.ai/public-api/reference/people/search-people) | Search people in your network and shared networks |
| `GET` | [`/people/{id}`](https://docs.introlink.ai/public-api/reference/people/get-person) | One person, with strength and evidence |
| `GET` | [`/people/{id}/paths`](https://docs.introlink.ai/public-api/reference/people/find-paths) | Every path to that person, strongest first |
| `GET` | [`/companies/{domain}/people`](https://docs.introlink.ai/public-api/reference/companies/company-people) | Who your side knows at a company |
| `GET` | [`/signals`](https://docs.introlink.ai/public-api/reference/signals/list-signals) | Job moves, alumni and relationships going quiet |
| `GET` | [`/lists`](https://docs.introlink.ai/public-api/reference/lists/list-lists) | Your lists, with how many are on each |
| `POST` | [`/lists`](https://docs.introlink.ai/public-api/reference/lists/create-list) | Make a list of people or companies |
| `PATCH` | [`/lists/{list}`](https://docs.introlink.ai/public-api/reference/lists/update-list) | Rename a list, or change its description |
| `DELETE` | [`/lists/{list}`](https://docs.introlink.ai/public-api/reference/lists/delete-list) | Delete a list and its members. Needs `"confirm": true` |
| `GET` | [`/lists/{list}/people`](https://docs.introlink.ai/public-api/reference/lists/list-people) | Everyone on a list of people, a page at a time |
| `POST` | [`/lists/{list}/people`](https://docs.introlink.ai/public-api/reference/lists/add-to-list) | Add people to one of your lists |
| `POST` | [`/lists/{list}/people/remove`](https://docs.introlink.ai/public-api/reference/lists/remove-people-from-list) | Take people off a list |
| `POST` | [`/lists/{list}/people/restore`](https://docs.introlink.ai/public-api/reference/lists/restore-people-to-list) | Put them back, in your network or not |
| `GET` | [`/lists/{list}/companies`](https://docs.introlink.ai/public-api/reference/lists/list-companies) | Every company on a list of companies, a page at a time |
| `POST` | [`/lists/{list}/companies`](https://docs.introlink.ai/public-api/reference/lists/add-companies-to-list) | Add companies to a list, by domain or company id, or firms by name |
| `POST` | [`/lists/{list}/companies/remove`](https://docs.introlink.ai/public-api/reference/lists/remove-companies-from-list) | Take companies off a list |
| `POST` | [`/lists/{list}/companies/restore`](https://docs.introlink.ai/public-api/reference/lists/restore-companies-to-list) | Put them back, in your network or not |
| `GET` | [`/asks`](https://docs.introlink.ai/public-api/reference/asks/list-asks) | Your intro asks, and where each stands |
| `POST` | [`/asks`](https://docs.introlink.ai/public-api/reference/asks/draft-ask) | Draft an intro ask, and save it to your Gmail drafts. Never sends |
| `GET` | [`/asks/{id}`](https://docs.introlink.ai/public-api/reference/asks/get-ask) | One ask, and where it stands |
| `POST` | [`/asks/{id}/close`](https://docs.introlink.ai/public-api/reference/asks/close-ask) | Close an ask, with a reason. Reopen undoes it |
| `POST` | [`/asks/{id}/reopen`](https://docs.introlink.ai/public-api/reference/asks/reopen-ask) | Open a closed ask again |
| `POST` | [`/asks/{id}/followup`](https://docs.introlink.ai/public-api/reference/asks/draft-followup) | Draft a nudge or a thank-you, and save it to your Gmail drafts. Never sends |
| `GET` | [`/requests`](https://docs.introlink.ai/public-api/reference/asks/list-intro-requests) | Intro requests to you, needs-you first |
| `GET` | [`/requests/{id}`](https://docs.introlink.ai/public-api/reference/asks/get-intro-request) | One intro request, and what you can do next |
| `POST` | [`/requests/{id}/decline`](https://docs.introlink.ai/public-api/reference/asks/decline-intro-request) | Decline an intro request. The founder hears "not this time" |
| `POST` | [`/requests/{id}/snooze`](https://docs.introlink.ai/public-api/reference/asks/snooze-intro-request) | Snooze an intro request for 3 days |
| `POST` | [`/requests/{id}/extend`](https://docs.introlink.ai/public-api/reference/asks/extend-intro-request) | Keep a new intro request open 14 more days |
| `POST` | [`/requests/{id}/outcome`](https://docs.introlink.ai/public-api/reference/asks/record-intro-request-outcome) | Record the target's answer: yes, no, or none |
| `GET` | [`/connectors`](https://docs.introlink.ai/public-api/reference/connectors/list-connectors) | Who is on your roster of connectors |
| `POST` | [`/connectors`](https://docs.introlink.ai/public-api/reference/connectors/add-connectors) | Put people on your roster, in a group |
| `POST` | [`/connectors/group`](https://docs.introlink.ai/public-api/reference/connectors/regroup-connectors) | Move connectors to another group |
| `GET` | [`/connectors/suggested`](https://docs.introlink.ai/public-api/reference/connectors/suggested-connectors) | Who the Add connectors picker suggests, and from where |
| `POST` | [`/connectors/suggested/accept`](https://docs.introlink.ai/public-api/reference/connectors/accept-suggested-connectors) | Put suggested people on your roster, each in its group |
| `POST` | [`/connectors/remove`](https://docs.introlink.ai/public-api/reference/connectors/remove-connectors) | Take connectors off your roster. They stay in People |
| `POST` | [`/connectors/restore`](https://docs.introlink.ai/public-api/reference/connectors/restore-connectors) | Put removed connectors back on your roster |
| `GET` | [`/targets`](https://docs.introlink.ai/public-api/reference/targets/target-queue) | A partner's target firms, best warm path first |
| `GET` | [`/targets/{firm}`](https://docs.introlink.ai/public-api/reference/targets/firm-targets) | One target firm's people, best path first |
| `GET` | [`/companies/{domain}/paths`](https://docs.introlink.ai/public-api/reference/companies/company-paths) | Everyone your side can reach at a company, best path each |
| `GET` | [`/people/{id}/reach`](https://docs.introlink.ai/public-api/reference/reach/reach-through) | Who and which companies you can reach through one person |
| `GET` | [`/people/{id}/close-to`](https://docs.introlink.ai/public-api/reference/reach/close-to) | Who a connector is closest to in their own network |
| `GET` | [`/usage`](https://docs.introlink.ai/public-api/reference/usage/plan-usage) | Your plan, and what's left this month |
| `GET` | [`/usage/credits`](https://docs.introlink.ai/public-api/reference/usage/usage-credits) | Credits your workspace used, by day, feature or who |
| `GET` | [`/pricing`](https://docs.introlink.ai/public-api/reference/usage/pricing) | What each thing costs in credits, and a typical run |
| `GET` | [`/watches`](https://docs.introlink.ai/public-api/reference/companies/list-watches) | The companies and lists you watch |
| `POST` | [`/watches/add`](https://docs.introlink.ai/public-api/reference/companies/add-watches) | Watch companies or lists, for their signals |
| `POST` | [`/watches/remove`](https://docs.introlink.ai/public-api/reference/companies/remove-watches) | Stop watching companies or lists |
| `POST` | [`/customers`](https://docs.introlink.ai/public-api/reference/companies/set-customers) | Mark companies as customers, or not. Never writes to HubSpot |
| `POST` | [`/signals/dismiss`](https://docs.introlink.ai/public-api/reference/signals/dismiss-signals) | Dismiss signals |
| `POST` | [`/signals/restore`](https://docs.introlink.ai/public-api/reference/signals/restore-signals) | Bring dismissed signals back |
| `POST` | [`/signals/seen`](https://docs.introlink.ai/public-api/reference/signals/mark-signals-seen) | Mark signals seen |
| `POST` | [`/signals/unseen`](https://docs.introlink.ai/public-api/reference/signals/mark-signals-unseen) | Make signals unread again |
| `POST` | [`/people/private`](https://docs.introlink.ai/public-api/reference/people/set-people-private) | Mark people private, or share them with your teams again |
| `POST` | [`/people/kind`](https://docs.introlink.ai/public-api/reference/people/set-people-kind) | Mark rows as people, or set them aside as not people |
| `POST` | [`/people/group`](https://docs.introlink.ai/public-api/reference/people/set-people-group) | Move connectors to another group |
| `POST` | [`/people/import`](https://docs.introlink.ai/public-api/reference/import/import-people) | Import people into your network, or a connector's. Answers an import id |
| `GET` | [`/imports/{id}`](https://docs.introlink.ai/public-api/reference/import/get-import) | How far an import got |

And [webhooks](https://docs.introlink.ai/public-api/webhooks.md) for six events, `person.job_changed`,
`signal.created`, `connector.mapped`, `ask.sent`, `intro_request.created` and
`intro_request.closed`, plus `webhook.test` from **Send a test**.

## OpenAPI

The whole API, webhooks included, is described in OpenAPI 3.1 at
`GET https://app.introlink.ai/v1/openapi.json` (no key needed), and in this
repository at `docs/public-api/openapi.json`. A test keeps the two identical. Every
page under **Endpoints** is drawn from that file: "Try it" sends a request with
your own key on the reads, and the writes show their request without sending
it, since they draft in your Gmail and change your lists and roster.


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