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

> Push people into your network, or a connector's, from a CRM, another tool or a script: the LinkedIn CSV upload, over the API.

> [!NOTE]
>
> Source: `app/src/lib/api/import.ts` (the endpoints) and
> `app/src/lib/jobs/people-import.ts` (the work, a sibling of the LinkedIn CSV
> import in `app/src/lib/jobs/linkedin-csv-import.ts`), called from
> `app/src/lib/api/v1.ts`. These are the API's own endpoints, 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.

An import does what uploading a LinkedIn **Connections.csv** does in IntroLink:
it files a list of people under one network, yours or one of your
connectors', and brings them into People. Use it when another system knows who
someone knows: your CRM, another tool, a script.

## Import people

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

{
  "connector": "self",
  "people": [
    {
      "name": "Nadia Haddad",
      "linkedin_url": "https://www.linkedin.com/in/nadia-haddad",
      "email": "nadia@larkspur.com",
      "company": "Larkspur",
      "title": "COO",
      "connected_on": "2025-03-04"
    },
    { "first_name": "Omar", "last_name": "Farouk", "linkedin_url": "linkedin.com/in/omar-farouk" }
  ]
}
```

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

`connector` is whose network the people are in: `"self"`, your own, or a
connector `id` from [`GET /connectors`](https://docs.introlink.ai/public-api/connectors#who-is-on-your-roster).
A LinkedIn export is always one person's own connections, and the same holds
here: filing a colleague's contacts under you would credit every path through
them to the wrong person.

The answer comes at once, `202 Accepted`, with the import's `id`. The work runs
after it:

```json theme={null}
{
  "object": "import",
  "id": "5d0c…",
  "status": "queued",
  "network": { "connector": "9d2c…", "name": "Asha Patel", "you": true },
  "received": 2,
  "accepted": 2,
  "created": 0,
  "updated": 0,
  "unchanged": 0,
  "skipped": [],
  "people": null,
  "error": null,
  "created_at": "2026-12-02T12:00:00.000Z",
  "finished_at": null,
  "url": "https://app.introlink.ai/v1/imports/5d0c…",
  "text": "2 people queued to import into your network. GET /v1/imports/5d0c… says how far it got."
}
```

## How far it got

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

Reference: [Get an import](https://docs.introlink.ai/public-api/reference/import/get-import.md)

The same shape, as the import moves through `queued`, `writing`, `folding`
(bringing the people into People) and `done`:

```json theme={null}
{
  "object": "import",
  "id": "5d0c…",
  "status": "done",
  "received": 2,
  "accepted": 2,
  "created": 1,
  "updated": 1,
  "unchanged": 0,
  "skipped": [],
  "people": 2,
  "text": "Done: 1 new, 1 updated, 0 unchanged. They are in People, in your network.",
  "…": "…"
}
```

Ask again every few seconds until it is `done`. `failed` says why in `error`;
send the batch again. An import still in flight that hasn't moved for 15 minutes reads as
`stalled`: send the batch again too. Only keys created by the same person can
read an import.

## What it does with each person

Each person is matched to the people already in that network:

1. **by LinkedIn URL**, then
2. **by email**, onto someone with no other LinkedIn URL: a Google contact, say,
   who gains their LinkedIn profile this way.

A match is **updated**: a field you send replaces what IntroLink has, and a
field you leave out is kept. Anyone else is **added**, as a first-degree
connection of that network's owner, exactly as a Connections.csv row is. A
person who is matched and whose fields are already as you sent them is
**unchanged**: nothing about them is written. So sending the same batch twice
changes nothing the second time, and a batch cut short can simply be sent
again.

An email and a LinkedIn URL sent together are recorded as one person for your
directory. They are not shared with anyone else's.

People left out are listed in `skipped`, by their place in `people` (from 0),
with the reason:

| `why` | |
| - | - |
| `no linkedin_url: …` | Every person needs their LinkedIn profile URL. |
| `linkedin_url is not a LinkedIn profile (linkedin.com/in/…)` | A company or school page, or not LinkedIn. |
| `no name: …`, `email is not an email address`, `connected_on is not a date …`, `… must be text`, `… is longer than … characters` | Fix the value and send that person again. |
| `the same LinkedIn URL as person N`, `the same email as person N` | The first one in the batch is kept. |
| `a person you keep private: left as they are` | See below. |

If nobody in `people` can be imported, the answer is `400` with `skipped`
alongside, and nothing is queued.

### Private people stay private

Someone you keep private in IntroLink, whether by their LinkedIn URL or by their
email, or under any identity IntroLink has for them, is **never written** by an
import: they are listed in `skipped` and left exactly as they were. As
everywhere in the API, no answer names anyone or carries an email address or a
LinkedIn URL: `skipped` gives a person's place in your request, not who they
are.

## Caps

Per key creator, across all their keys:

| | |
| - | - |
| People per request | 1,000 |
| Body | 1,000,000 characters |
| People in any 24 hours | 10,000 (a real LinkedIn export is about 9,500) |
| Imports at a time | 1 |

A batch over the day's cap, or sent while another import is still running,
answers `429` with `Retry-After`. While one is running, the error carries its
id in `import`: wait until `GET /v1/imports/{id}` says `done`, then send the
next batch. The usual limit of 60 requests a minute per key applies too.

### Send a large list in batches

```bash theme={null}
jq -c '.people | _nwise(1000) | {people: .}' contacts.json | while read -r batch; do
  id=$(curl -s https://app.introlink.ai/v1/people/import \
    -H "Authorization: Bearer $INTROLINK_KEY" -H "Content-Type: application/json" \
    --data "$batch" | jq -r .id)
  until [ "$(curl -s https://app.introlink.ai/v1/imports/$id -H "Authorization: Bearer $INTROLINK_KEY" | jq -r .status)" = done ]; do
    sleep 5
  done
done
```


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