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

# Conventions

> Ids, answers, errors and rate limits.

> [!NOTE]
>
> Source: `app/src/lib/api/shape.ts` (the response shapes) and
> `app/src/lib/api/rate-limit.ts`.

## Ids

People are identified by opaque ids: `p_` and about 30 more characters. An id
is stable (the same person always has the same id for the same key creator),
and it carries no email address or LinkedIn URL. Ids are per user: a key opens
the ids its creator's answers and webhooks carry, and no one else's. The same
person has the same id in Claude and ChatGPT for the same user.

## Answers

Every answer is JSON with snake\_case fields:

* `object`: what the answer is: `"list"` for a list of anything, `"person"`,
  or what a change did (`"list_removal"`, `"connector_removal"`, …);
* `data`: the people, paths or signals;
* `text`: the complete answer in plain words, the same text Claude and ChatGPT
  get. Each item also has its own line in `text`.

Links (`url`, `ask_url`) open IntroLink in the browser. They ask the person
opening them to sign in, and open only for the key's creator.

## Errors

```json theme={null}
{
  "error": {
    "type": "invalid_key",
    "message": "That API key is not valid. …",
    "docs": "https://docs.introlink.ai/public-api/authentication"
  }
}
```

`error.docs`, when it's there, is the page that explains the error.

| Status | `type` | When |
| - | - | - |
| 400 | `invalid_request` | a required parameter is missing, or `{id}` isn't a person id |
| 401 | `unauthorized` | no key |
| 401 | `invalid_key` | a key that doesn't work; `error.docs` links to [Authentication](https://docs.introlink.ai/public-api/authentication.md) |
| 402 | `credits_required` | the workspace's credits can't pay for the answer; `error.balance`, `error.needed` and `error.billing_url` say what's left, what it needed and where to buy more |
| 403 | `plan_required` | the workspace is on the Free trial, which doesn't include the API; `error.docs` links to [Authentication](https://docs.introlink.ai/public-api/authentication.md) |
| 404 | `not_found` | no such endpoint, or no person, list, ask or intro request with that id for this key |
| 405 | `method_not_allowed` | a method the path doesn't take (`Allow` says which) |
| 409 | `conflict` | a step that doesn't fit where an ask or intro request stands |
| 422 | `no_path` | `POST /asks`: nobody on your side has a path to ask through |
| 422 | `not_saved` | `save: true` on `POST /asks` or `POST /asks/{id}/followup`, and Gmail took no draft. The draft is alongside, in `draft` |
| 429 | `rate_limited` | too many requests; see `Retry-After` |
| 500 | `server_error` | try again in a minute |

## Credits

Each person or company an answer returns costs the workspace 1 credit, from
the same balance as everything else in IntroLink. The reads that count are
search, a person (and their colleagues), a person's paths (the person and
their colleagues), a company's people, signals about people, a list's
members, the roster and its suggestions, targets, a company's paths, reach,
close-to and watched companies. Everything else is free: the lists themselves,
asks and intro requests, usage, credits and pricing, imports, and every write.

Two headers say what an answer cost: `X-IntroLink-Credits-Charged` and
`X-IntroLink-Credits-Left`. With no credits left, a counted read answers `402`
before it runs; an answer that needs more than is left is a `402` too (ask
with a smaller `limit`). Nothing is charged for a `402`.

Lookups through IntroLink in Claude or ChatGPT cost nothing.

## Rate limits

60 requests a minute for each key. Requests with a key that doesn't work are
limited per IP address, 20 a minute. Over the limit, the answer is `429` with
`Retry-After: 60`. The limit is counted at each Cloudflare location, so treat it
as a ceiling, not an exact quota.

Every request with a working key counts towards "requests this month" on
Settings, API, answered or not, except one refused for the rate limit.


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