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

# Quickstart for agents and scripts

> Connect Claude, ChatGPT, Claude Code, Cursor, the OpenAI Agents SDK or curl to IntroLink, ask one question and get one answer.

There are two ways in. Pick the one that fits what you are building.

| | The MCP server | The REST API |
| - | - | - |
| Address | `https://app.introlink.ai/mcp` | `https://app.introlink.ai/v1` |
| For | Assistants and agents: Claude, ChatGPT, Claude Code, Cursor, the OpenAI Agents SDK | Scripts and other systems: `curl`, a CRM workflow, a backend job |
| Signs in with | IntroLink's own sign-in (OAuth), in a browser. No key to copy | An API key, `il_live_…`, from **Settings → API** |
| Answers as | The person who signed in | The person who made the key |

Both read your network the way IntroLink's own pages do, under the same team
and privacy rules, and give the same answers in the same words. Neither one
ever returns an email address or a phone number, and neither one sends email.

> [!NOTE]
>
> The answers on this page come from IntroLink's preview workspace: Pat Preview's
> made-up network of investors at made-up firms (Dana Reyes, Tom Hale, Keelhaven
> Equity). Yours will name your own people. Ids are shortened here (`p_ZC1Q5G…`).

> [card] [Claude](#claude-on-the-web-and-desktop)

> [card] [ChatGPT](#chatgpt)

> [card] [Claude Code](#claude-code)

> [card] [Cursor](#cursor)

> [card] [OpenAI Agents SDK](#openai-agents-sdk)

> [card] [curl](#curl-with-an-api-key)

## Before you start

* **An IntroLink account with something in it.** Sign in at
  [app.introlink.ai](https://app.introlink.ai) and connect Gmail or LinkedIn,
  so there are people to ask about. If your network is still empty, ask your
  assistant "What should I set up in IntroLink?": the `setup_status` tool always
  answers.
* **For the REST API only:** an API key. A workspace owner or admin makes one,
  on a plan that includes the API: Individual, Team or Business, not the Free
  trial ([Authentication](https://docs.introlink.ai/public-api/authentication.md)).

Every MCP client below runs the same sign-in the first time it connects:
IntroLink's sign-in page opens, you sign in as you do in the app, and IntroLink
names the client that is asking and where it will send you back. Choose
**Allow**. To stop a client later, use **Disconnect** on its card in
**Settings → Assistants (MCP)**.

What a connected assistant can do: every [read tool](https://docs.introlink.ai/mcp/tools.md), plus two
tools that change things, which you can switch off in **Settings → Assistants
(MCP)**:

* `draft_ask` works in two steps. It shows the draft first, and saves it to
  your Gmail drafts only when called again with `create: true`, after you say
  yes. It never sends.
* `add_to_list` adds people to one of your lists in IntroLink straight away.
  Nothing leaves IntroLink.

## Claude on the web and desktop

**1. Connect**

In Claude, open **Customize → Connectors**, choose **+ Add**, then **Add
custom connector**. Paste `https://app.introlink.ai/mcp` and choose
**Continue**. Leave the sign-in method on **OAuth**, choose **Add**, then
**Connect**, and choose **Allow** on IntroLink's page.

The connector belongs to your Claude account, so the desktop app has it too.
On Team and Enterprise plans an owner adds it once, under **Organization
settings → Connectors**, and each member then chooses **Connect** in
**Customize → Connectors**. The Free plan allows one custom connector.

**2. Ask**

In a new chat, open the **+** menu, then **Connectors**, and turn on
IntroLink. Ask about someone you want to meet:

> Who can introduce me to Tom Hale?

**3. See the answer**

Claude calls `find_paths` and answers from what it returns:

```text theme={null}
Tom Hale, Investor, Keelhaven Equity.

3 paths, strongest first:

1. Dana Reyes (Your contact · 42 emails with you), Medium: Worked together at Keelhaven Equity, 2016 to 2026.
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…&via=p_MyndDR…
2. Nora Quinn (Your contact · 26 emails with you), Medium: Worked together at Keelhaven Equity, 2017 to 2026.
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…&via=p_l-RYZK…
3. You, directly, Low: 7 emails; LinkedIn.
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…

Your side also knows 2 other people at Keelhaven Equity.

Person page: https://app.introlink.ai/open?person=p_ZC1Q5G…
```

Claude can also draw the paths as a card ([In-chat cards](https://docs.introlink.ai/mcp/cards.md)).

## ChatGPT

**1. Connect**

On ChatGPT on the web, open **Plugins**, choose **+**, then **Add custom MCP
server**. Name it IntroLink, paste `https://app.introlink.ai/mcp` as the
**Server URL** under **Connection**, and choose **OAuth**. Choose **I
understand and want to continue**, then **Create as a plugin**, then
**Install**, and choose **Allow** on IntroLink's page.

Custom MCP servers work on ChatGPT Business, Enterprise and Edu (on
Business, an admin or owner adds them), and on Pro for tools that only read,
which covers IntroLink's searches and paths. Developer mode isn't needed.

**2. Ask**

In a new chat, type **@**, pick IntroLink, and ask:

> Who can introduce me to Tom Hale?

**3. See the answer**

ChatGPT calls `find_paths` and gets the same answer as Claude above.

## Claude Code

**1. Connect**

```bash theme={null}
claude mcp add --transport http introlink https://app.introlink.ai/mcp
```

Add `--scope user` to have IntroLink in every project, not only this one.
Then start `claude`, run `/mcp`, choose `introlink` and sign in: your
browser opens IntroLink's page, and you choose **Allow**. (From a shell,
`claude mcp login introlink` does the same.)

**2. Ask**

```text theme={null}
> Who can introduce me to Tom Hale?
```

**3. See the answer**

Claude Code asks your permission to run `find_paths`, then answers from
the same text as above: Dana Reyes, Medium, worked together at Keelhaven
Equity, 2016 to 2026.

To share the server with everyone on a project, use `--scope project`: Claude
Code writes it to `.mcp.json`, and each person signs in as themselves.

```json .mcp.json theme={null}
{
  "mcpServers": {
    "introlink": { "type": "http", "url": "https://app.introlink.ai/mcp" }
  }
}
```

## Cursor

Cursor's editor is now called Grok Build. It reads the same files.

**1. Connect**

Add IntroLink to `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json`
(this project):

```json mcp.json theme={null}
{
  "mcpServers": {
    "introlink": { "url": "https://app.introlink.ai/mcp" }
  }
}
```

Or open this install link, which adds the same entry:
`cursor://anysphere.cursor-deeplink/mcp/install?name=introlink&config=eyJ1cmwiOiJodHRwczovL2FwcC5pbnRyb2xpbmsuYWkvbWNwIn0%3D`

Then open **Customize → MCPs** and follow the sign-in prompt for
IntroLink. Choose **Allow** on IntroLink's page.

**2. Ask**

In the agent chat: "Who can introduce me to Tom Hale?"

**3. See the answer**

The agent calls `find_paths` and answers from the same text as above.

## OpenAI Agents SDK

The SDK's hosted MCP tool has OpenAI's servers call IntroLink for your agent.
It needs an IntroLink access token: the SDK doesn't run a sign-in itself.

**1. Get a token**

Save the script below as `introlink_token.py` and run it once. It
registers itself with IntroLink, opens IntroLink's sign-in in your browser,
and saves `introlink_token.json`: an access token (`ila_…`) good for an
hour, and a refresh token (`ilr_…`) good for 30 days. Python 3.9 or later, no
packages.

> [accordion] introlink\_token.py
>
> ```python introlink_token.py theme={null}
> # introlink_token.py: sign in to IntroLink once and save an MCP token.
> # Python 3.9 or later, no packages. Run: python introlink_token.py
> import base64, hashlib, json, os, secrets, urllib.parse, urllib.request, webbrowser
> from http.server import BaseHTTPRequestHandler, HTTPServer
>
> BASE = os.environ.get("INTROLINK_URL", "https://app.introlink.ai")
> REDIRECT = "http://127.0.0.1:53682/callback"
>
>
> def post(path, body, as_json=False):
>     data = json.dumps(body).encode() if as_json else urllib.parse.urlencode(body).encode()
>     kind = "application/json" if as_json else "application/x-www-form-urlencoded"
>     req = urllib.request.Request(BASE + path, data=data, headers={"content-type": kind})
>     with urllib.request.urlopen(req) as r:
>         return json.load(r)
>
>
> # 1. Register this script as a client (once; keep client_id to refresh later).
> client = post("/oauth/register", {
>     "client_name": "My agent",
>     "redirect_uris": [REDIRECT],
>     "token_endpoint_auth_method": "none",
>     "grant_types": ["authorization_code", "refresh_token"],
>     "response_types": ["code"],
> }, as_json=True)
>
> # 2. Send the browser to IntroLink's sign-in, with PKCE.
> verifier = secrets.token_urlsafe(48)
> challenge = base64.urlsafe_b64encode(hashlib.sha256(verifier.encode()).digest()).rstrip(b"=").decode()
> state = secrets.token_urlsafe(16)
> webbrowser.open(BASE + "/oauth/authorize?" + urllib.parse.urlencode({
>     "response_type": "code",
>     "client_id": client["client_id"],
>     "redirect_uri": REDIRECT,
>     "code_challenge": challenge,
>     "code_challenge_method": "S256",
>     "state": state,
>     "scope": "introlink",
>     "resource": BASE + "/mcp",
> }))
>
> # 3. Wait for IntroLink to send the browser back with a code.
> got = {}
>
>
> class Callback(BaseHTTPRequestHandler):
>     def do_GET(self):
>         got.update(urllib.parse.parse_qsl(urllib.parse.urlparse(self.path).query))
>         self.send_response(200)
>         self.end_headers()
>         self.wfile.write(b"Signed in. You can close this tab.")
>
>     def log_message(self, *args):
>         pass
>
>
> HTTPServer(("127.0.0.1", 53682), Callback).handle_request()
> if got.get("state") != state or "code" not in got:
>     raise SystemExit(f"Sign-in did not finish: {got.get('error_description', got)}")
>
> # 4. Swap the code for tokens.
> tokens = post("/oauth/token", {
>     "grant_type": "authorization_code",
>     "code": got["code"],
>     "redirect_uri": REDIRECT,
>     "client_id": client["client_id"],
>     "code_verifier": verifier,
> })
> with open("introlink_token.json", "w") as f:
>     json.dump({"client_id": client["client_id"], **tokens}, f)
> print("Saved introlink_token.json: access token for 1 hour, refresh token for 30 days.")
> ```

IntroLink names it "My agent" on the sign-in page and in **Settings →
Assistants (MCP)**.

**2. Connect and ask**

```bash theme={null}
pip install openai-agents
export OPENAI_API_KEY=sk-…
```

```python agent.py theme={null}
import json
from agents import Agent, HostedMCPTool, Runner

token = json.load(open("introlink_token.json"))["access_token"]

agent = Agent(
    name="Intro finder",
    instructions="Answer from IntroLink's tools. Quote its paths as it gives them.",
    tools=[
        HostedMCPTool(
            tool_config={
                "type": "mcp",
                "server_label": "introlink",
                "server_url": "https://app.introlink.ai/mcp",
                "authorization": token,
                "allowed_tools": ["search_people", "find_paths", "get_person"],
                "require_approval": "never",
            }
        )
    ],
)

print(Runner.run_sync(agent, "Who can introduce me to Tom Hale?").final_output)
```

`allowed_tools` keeps the agent to tools that only read, so it can run
without asking. Leave `draft_ask` out unless your agent shows the draft to a
person before it saves.

**3. See the answer**

The agent's answer is built from `find_paths`: Dana Reyes, Medium, worked
together at Keelhaven Equity, 2016 to 2026, then Nora Quinn, then you
directly.

After an hour the access token stops working (`401`, `invalid_token`). Swap the
refresh token for a new pair; each refresh token works once:

```bash theme={null}
curl -s https://app.introlink.ai/oauth/token \
  -d grant_type=refresh_token \
  --data-urlencode "refresh_token=$REFRESH_TOKEN" \
  --data-urlencode "client_id=$CLIENT_ID"
```

The details of the sign-in are in [Sign-in (OAuth)](https://docs.introlink.ai/mcp/authorization.md).

## curl with an API key

**1. Make a key**

In IntroLink, open **Settings → API** and choose **Create key**. Name it
after what will use it. The key is shown once: copy it now.

```bash theme={null}
export INTROLINK_API_KEY=il_live_…
```

**2. Ask**

```bash theme={null}
curl -s "https://app.introlink.ai/v1/people?q=investors%20at%20Keelhaven%20Equity&limit=3" \
  -H "Authorization: Bearer $INTROLINK_API_KEY" | jq -r .text
```

**3. See the answer**

```text theme={null}
3 people match "investors at Keelhaven Equity". 3 have a path; 0 have none yet. Best first:

1. Dana Reyes, Investor, Keelhaven Equity. Best path: via You, directly, High: 42 emails; LinkedIn.
   Person: https://app.introlink.ai/open?person=p_MyndDR…
   Draft ask: https://app.introlink.ai/open?ask=p_MyndDR…
2. Nora Quinn, Investor, Keelhaven Equity. Best path: via You, directly, Medium: 26 emails; LinkedIn.
   Person: https://app.introlink.ai/open?person=p_l-RYZK…
   Draft ask: https://app.introlink.ai/open?ask=p_l-RYZK…
3. Tom Hale, Investor, Keelhaven Equity. Best path: via You, directly, Low: 7 emails; LinkedIn.
   Person: https://app.introlink.ai/open?person=p_ZC1Q5G…
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…

Full search in IntroLink: https://app.introlink.ai/search?q=investors+at+Keelhaven+Equity
```

`text` is the whole answer in words, as an assistant gets it. Leave out
`| jq -r .text` to see the JSON: each person in `data` has an `id`, a
`role` and a `best_path`.

A `401` means the key is missing, wrong or revoked, and a `403` means the
workspace's plan doesn't include the API
([When it stops](https://docs.introlink.ai/public-api/authentication.md#when-it-stops)).

## Next

> [card] [Find an intro, then draft the ask](https://docs.introlink.ai/recipes/find-an-intro.md)
>
> Search, paths, and a draft in Gmail, with MCP and with REST.

> [card] [Rank your target accounts](https://docs.introlink.ai/recipes/rank-target-accounts.md)
>
> A list of companies in, a queue ranked by your best warm path out.

> [card] [The tools](https://docs.introlink.ai/mcp/tools.md)
>
> Every MCP tool, what it takes and what it answers.

> [card] [The REST API](https://docs.introlink.ai/public-api/overview.md)
>
> Every endpoint, with errors, limits and ids.


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