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

# Import people from a CRM

> Push a CRM export into your network with the REST API, 1,000 people at a time, and follow each import to the end.

Your CRM knows people IntroLink doesn't yet. Send them to IntroLink and they
land in People, matched to anyone IntroLink already knows, as if you had
uploaded a LinkedIn **Connections.csv**.

| Step | REST |
| - | - |
| 1. Send a batch | `POST /v1/people/import` |
| 2. Follow it | `GET /v1/imports/{id}` |

There is no MCP tool for this: assistants can read your network, but can't add
people to it.

> [!NOTE]
>
> The calls below ran against IntroLink's preview workspace: Pat Preview's
> made-up network. Everyone in them is made up.

## Before you start

* **Each person needs their LinkedIn profile URL.** It is what lets IntroLink
  match them to everything else it knows. Most CRMs keep it in a field of its
  own. People without one are skipped, and the answer says which.
* **Pick whose network they are in.** `"connector": "self"`, the default, files
  them as people you know. If they are a colleague's contacts, file them under
  that colleague's connector id from
  [`GET /v1/connectors`](https://docs.introlink.ai/public-api/connectors#who-is-on-your-roster), or every
  path through them would be credited to you.

## 1. Send a batch

```bash theme={null}
export INTROLINK_API_KEY=il_live_…
API=https://app.introlink.ai/v1

curl -s "$API/people/import" -H "Authorization: Bearer $INTROLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "people": [
      { "name": "June Alder", "linkedin_url": "https://www.linkedin.com/in/june-alder-x", "email": "june@harborlane.example", "company": "Harbor Lane Partners", "title": "Principal" },
      { "first_name": "Omar", "last_name": "Vance", "linkedin_url": "https://www.linkedin.com/in/omar-vance-x", "company": "Okafor & Co", "title": "Partner", "connected_on": "2024-03-18" },
      { "name": "Lee Fox", "company": "Keelhaven Equity" }
    ]
  }'
```

Fields: a name (`name`, or `first_name` and `last_name`) and `linkedin_url`,
and optionally `email`, `company`, `title` and `connected_on` (`YYYY-MM-DD`).
The answer comes at once, `202`, while the work runs after it:

```json theme={null}
{
  "object": "import",
  "id": "ec6e1ddc-060b-400c-ab72-50222709b74a",
  "status": "queued",
  "network": { "connector": "70726576-6965-772d-7365-6c6600000000", "name": "Pat Preview", "you": true },
  "received": 3,
  "accepted": 2,
  "created": 0,
  "updated": 0,
  "unchanged": 0,
  "skipped": [{ "index": 2, "why": "no linkedin_url: each person needs their LinkedIn profile URL" }],
  "people": null,
  "error": null,
  "created_at": "2026-12-04T21:36:32.454Z",
  "finished_at": null,
  "url": "https://app.introlink.ai/v1/imports/ec6e1ddc-060b-400c-ab72-50222709b74a",
  "text": "2 people queued to import into your network; 1 skipped. GET /v1/imports/ec6e1ddc-060b-400c-ab72-50222709b74a says how far it got."
}
```

`skipped` names people by their place in your request (`index`, from 0), never
by name: no answer repeats a name, an email address or a LinkedIn URL you sent.

## 2. Follow it

```bash theme={null}
curl -s "$API/imports/ec6e1ddc-060b-400c-ab72-50222709b74a" -H "Authorization: Bearer $INTROLINK_API_KEY"
```

`status` goes `queued`, `writing`, `folding`, then `done` or `failed`. One that
hasn't moved for 15 minutes reads `stalled`.

```json theme={null}
{
  "object": "import",
  "id": "ec6e1ddc-060b-400c-ab72-50222709b74a",
  "status": "done",
  "network": { "connector": "70726576-6965-772d-7365-6c6600000000", "name": "Pat Preview", "you": true },
  "received": 3,
  "accepted": 2,
  "created": 2,
  "updated": 0,
  "unchanged": 0,
  "skipped": [{ "index": 2, "why": "no linkedin_url: each person needs their LinkedIn profile URL" }],
  "people": 2,
  "error": null,
  "created_at": "2026-12-04T21:36:32.454Z",
  "finished_at": "2026-12-04T21:36:32.515Z",
  "url": "https://app.introlink.ai/v1/imports/ec6e1ddc-060b-400c-ab72-50222709b74a",
  "text": "Done: 2 new, 0 updated, 0 unchanged, 1 skipped. They are in People, in your network."
}
```

June Alder and Omar Vance are in People now, and in search. Sending the same
batch again changes nothing: `"created": 0, "unchanged": 2`.

## A whole export

The script below reads a CSV export, sends it 1,000 people at a time, waits for
each import to finish before the next, and waits when IntroLink says to.
Change `COLUMNS` to your CRM's column names. Python 3.9 or later, no packages.

```python import_crm.py theme={null}
# import_crm.py: import a CRM export (CSV) into IntroLink, 1,000 people at a time.
# Python 3.9 or later, no packages. Run: python import_crm.py contacts.csv
import csv, json, os, sys, time, urllib.error, urllib.request

API = os.environ.get("INTROLINK_API", "https://app.introlink.ai/v1")
KEY = os.environ["INTROLINK_API_KEY"]
NETWORK = os.environ.get("INTROLINK_NETWORK", "self")  # or a connector id from GET /v1/connectors

# Your CRM's column names → IntroLink's fields. Change the left side to match your export.
COLUMNS = {
    "First Name": "first_name",
    "Last Name": "last_name",
    "LinkedIn URL": "linkedin_url",
    "Email": "email",
    "Company Name": "company",
    "Job Title": "title",
}


def call(method, path, body=None):
    data = json.dumps(body).encode() if body is not None else None
    req = urllib.request.Request(API + path, data=data, method=method, headers={
        "Authorization": f"Bearer {KEY}", "Content-Type": "application/json"})
    try:
        with urllib.request.urlopen(req) as r:
            return r.status, json.load(r), r.headers
    except urllib.error.HTTPError as e:
        return e.code, json.load(e), e.headers


with open(sys.argv[1], newline="", encoding="utf-8-sig") as f:
    people = [{field: row[col].strip() for col, field in COLUMNS.items() if row.get(col, "").strip()}
              for row in csv.DictReader(f)]

for start in range(0, len(people), 1000):
    batch = people[start:start + 1000]
    while True:
        status, body, headers = call("POST", "/people/import", {"connector": NETWORK, "people": batch})
        if status != 429:
            break
        wait = int(headers.get("retry-after", "30"))  # one import at a time, and 10,000 a day
        print(f"Waiting {wait}s: {body['error']['message']}")
        time.sleep(wait)
    if status != 202:
        sys.exit(f"Rows {start}+: {status} {body['error']['message']}")
    for s in body["skipped"]:
        print(f"  row {start + s['index'] + 2} skipped: {s['why']}")  # +2: the header, and rows count from 1
    while body["status"] in ("queued", "writing", "folding"):
        time.sleep(3)
        _, body, _ = call("GET", f"/imports/{body['id']}")
    print(body["text"])
    if body["status"] != "done":
        sys.exit(f"Import {body['id']} is {body['status']}: {body['error']}")
```

With this `contacts.csv`:

```csv contacts.csv theme={null}
First Name,Last Name,Email,Company Name,Job Title,LinkedIn URL
Iris,Bell,iris@cedarridge.example,Cedar Ridge Capital,Principal,https://www.linkedin.com/in/iris-bell-x
Theo,Marsh,,Birchmont Partners,Vice President,linkedin.com/in/theo-marsh-x
Mara,Quist,mara@fernhill.example,Fernhill Capital,Partner,
```

```bash theme={null}
python import_crm.py contacts.csv
```

```text theme={null}
  row 4 skipped: no linkedin_url: each person needs their LinkedIn profile URL
Done: 2 new, 0 updated, 0 unchanged, 1 skipped. They are in People, in your network.
```

## Limits

| Limit | What happens |
| - | - |
| 1,000 people a request | Over it: `400`. Send the rest in further requests |
| One import at a time | A second one while the first runs: `429`, with the running import's id and `Retry-After: 30` |
| 10,000 people in any 24 hours | Over it: `429`, saying how many more fit, with `Retry-After` until room frees up |
| 60 requests a minute per key | Over it: `429`, `Retry-After: 60` |

More in [Import](https://docs.introlink.ai/public-api/import.md).


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