> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecorn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipecorn API reference

> Base URL, authentication, and a map of every Pipecorn REST endpoint: leads, accounts, waterfall enrichment, signals, searches, personas, lists, alerts, and utilities.

The Pipecorn REST API gives you programmatic access to the same data as the
[web app](https://app.pipecorn.com): search and extract leads, enrich
companies and contacts, pull buying signals, and manage Sales Navigator lists.
Every endpoint below is documented with its parameters, an interactive
request builder, and example responses.

| | |
| - | - |
| **Base URL** | `https://app.pipecorn.com/api/v2/` |
| **Authentication** | `X-API-KEY` header. Get a key from [API keys](https://app.pipecorn.com/settings/apis/keys) |
| **Format** | JSON request and response bodies |
| **Metering** | Enrichment spends [credits](https://docs.pipecorn.com/api-reference/credits-vs-limits.md); extraction counts against plan limits |

## Your first request

Check your credit balance and plan limits. This call is free and confirms your
key works.

```bash theme={null}
curl https://app.pipecorn.com/api/v2/credits \
  -H "X-API-KEY: your_api_key"
```

If the key is wrong you get a `401`. See [Credit and limit errors](https://docs.pipecorn.com/api-reference/errors.md)
for the `402`, `403`, and `422` responses that metering can return.

## Rate limits

Every endpoint has a per-minute request limit set by your plan, counted per
user across all your API keys. Each endpoint group keeps its own counter.

| Plan | Requests per minute |
| - | - |
| Free | 1 |
| Basic | 2 |
| Starter, Premium, Build | 10 |
| Advanced, Professional, Growth, Boost | 100 |
| Scale, Enterprise, Agency, Team | 1000 |

Responses under the limit tell you where you stand:

```http theme={null}
RateLimit-Limit: 100
RateLimit-Remaining: 97
RateLimit-Reset: 42
```

Go over it and you get a `429 Too Many Requests` with a `Retry-After` header.
Wait that many seconds before you retry.

Endpoints that spend enrichment credits, and the status lookups you poll while
an async job runs, don't count against the plan limit. A few endpoints add a
stricter limit on top of it, such as 1 request per second on
`POST /leads/advanced_search`.

See [Rate limiting](https://docs.pipecorn.com/essentials/rate-limiting.md) for the full list of exempt
endpoints, the per-endpoint limits, and a retry example.

## Endpoints

> [card] [Leads (People)](https://docs.pipecorn.com/api-reference/endpoints/leads/advanced_search.md)
>
> Search people by title, seniority, location, and industry. Extract leads
> from a company or from Sales Navigator, and enrich a single person.

> [card] [Accounts (Companies)](https://docs.pipecorn.com/api-reference/endpoints/accounts/search.md)
>
> Search companies by firmographics, enrich a single account, and pull
> headcount by department, tech stack, and open job postings.

> [card] [Waterfall Enrichment](https://docs.pipecorn.com/api-reference/endpoints/enrichments/single.md)
>
> Find verified business emails and phones through 20+ sources, one contact
> per request, with results on your webhook or by polling.

> [card] [Signals](https://docs.pipecorn.com/api-reference/endpoints/signals/hiring.md)
>
> Hiring, growth, lookalike companies, tech-stack search, new hires, job
> changes, and LinkedIn posts, comments, reactions, and engagers.

> [card] [Searches](https://docs.pipecorn.com/api-reference/endpoints/searches/index.md)
>
> List, inspect, and delete the saved searches your extractions create.

> [card] [Personas](https://docs.pipecorn.com/api-reference/endpoints/personas/index.md)
>
> Create, read, update, and delete the personas that define your ideal
> buyer profiles.

> [card] [Lists](https://docs.pipecorn.com/api-reference/endpoints/lists/index.md)
>
> Create and update Sales Navigator lists and read their contents.

> [card] [Alerts](https://docs.pipecorn.com/api-reference/endpoints/alerts/index.md)
>
> List the signal trackings you created and the searches each run produced.

> [card] [Miscellaneous](https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/account-credits.md)
>
> Credit balance and consumption, account information, location IDs,
> technology slugs, and AI job title suggestions.

## Before you build

* [Main use cases](https://docs.pipecorn.com/api-reference/main-use-cases.md) walks through the three
  flows most integrations start with.
* [Authentication](https://docs.pipecorn.com/essentials/authentication.md) covers the header format and
  key management.
* [Credits vs limits](https://docs.pipecorn.com/api-reference/credits-vs-limits.md) explains which
  requests spend credits and which draw on plan quotas.
* Prefer not to write HTTP calls? The [CLI](https://docs.pipecorn.com/cli/overview.md) and the
  [MCP server](https://docs.pipecorn.com/mcp/overview.md) wrap this API.


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