> Reverse Contact API documentation. This is the Markdown copy of https://docs.reversecontact.com/getting-started
> Every page is listed at https://docs.reversecontact.com/llms.txt, every endpoint with its credit cost and status at https://docs.reversecontact.com/catalog.json

# Getting started

> Set up your first Reverse Contact request in less than 5 minutes: get an API key, call the API with a Social URL, read the response, then try live data.

- Last verified: 2026-11-04

## Before you begin

1. [Create an account](https://app.reversecontact.com/auth/signup) if you don't have one yet.
2. Generate an API key: open Workspace > [API Keys](https://app.reversecontact.com/api-keys), create a new key, then copy it and keep it secure.
3. Have a Social URL ready, such as `https://www.social.com/in/janedoe`, or a person's full name and company domain.

[Authentication](https://docs.reversecontact.com/authentication) covers API keys and permissions.

## 1. Make your first request

All endpoints are served from `https://api.reversecontact.com/v2/`. This request fetches a person profile from a Social URL, with your key in the `RC_API_KEY` environment variable. The `TypeScript SDK` and `Python SDK` tabs use the official SDKs: install them with `npm install @reverse-contact/sdk` or `pip install reversecontact`, see [TypeScript and JavaScript SDK](https://docs.reversecontact.com/sdk/javascript) and [Python SDK](https://docs.reversecontact.com/sdk/python).

**POST /v2/fetch/persons**

```javascript [JavaScript]
const response = await fetch("https://api.reversecontact.com/v2/fetch/persons", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.RC_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    url: "https://www.social.com/in/janedoe"
  })
});

const result = await response.json();
console.log(result.data.firstName, result.data.lastName);
```
```typescript [TypeScript SDK]
import ReverseContact from "@reverse-contact/sdk";

const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });

const result = await client.fetch.person({ url: "https://www.social.com/in/janedoe" });
if (result === null) console.log("Profile not found: nothing was charged");
else console.log(result.data.firstName, result.data.lastName);
```
```bash [cURL]
curl -X POST https://api.reversecontact.com/v2/fetch/persons \
  -H "Authorization: Bearer ${RC_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.social.com/in/janedoe"}'
```
```python [Python]
import os
import requests

response = requests.post(
    "https://api.reversecontact.com/v2/fetch/persons",
    headers={
        "Authorization": f"Bearer {os.environ['RC_API_KEY']}",
        "Content-Type": "application/json"
    },
    json={"url": "https://www.social.com/in/janedoe"}
)

result = response.json()
print(result["data"]["firstName"], result["data"]["lastName"])
```
```python [Python SDK]
import os

from reversecontact import ReverseContact

with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
    result = client.fetch.person(url="https://www.social.com/in/janedoe")
    if result is None:
        print("Profile not found: nothing was charged")
    elif result.data is not None:
        print(result.data.first_name, result.data.last_name)
```

> [!TIP]
> To test without writing code, use the Try it button on any endpoint page: it runs the request from your browser with your API key.

## 2. Read the response

Every API response has the same top-level fields:

| Field | Description |
| ----- | ----------- |
| `success` | `true` if the request succeeded |
| `data` | The returned object for this endpoint |
| `error` | Error details if something went wrong, `null` on success |
| `metadata` | Request ID and execution time, useful for debugging |
| `quotas` | Your remaining credits and rate limit status |

See [API reference](https://docs.reversecontact.com/api-reference) for the response format and the shared types.

## 3. Get real-time data from the live endpoints

The `live`, Find Email and Find Phone endpoints fetch fresh data asynchronously. They reply immediately with a `webhookId`, then deliver the result once it's ready, usually within seconds.

> [!IMPORTANT]
> We aim to deliver each result in under 15 seconds, but it can take tens of minutes depending on conditions. Use live endpoints to update databases and feed async pipelines, not to answer a real-time request a user is waiting on.

For the live profile endpoints, Find Email and Find Phone, the simplest way to retrieve the result is polling: trigger the task, then call `GET /v2/webhooks/:webhookId` until the status is `succeeded`. The [Find Email](https://docs.reversecontact.com/endpoints/contact-email) and [Find Phone](https://docs.reversecontact.com/endpoints/contact-phone) pages describe their results.

**Trigger + poll**

```javascript [JavaScript]
const KEY = "YOUR_API_KEY";
const BASE = "https://api.reversecontact.com";

const trigger = await fetch(`${BASE}/v2/fetch/persons/live`, {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ url: "https://social.com/in/janedoe" })
});
const { data: { webhookId } } = await trigger.json();

while (true) {
  const res = await fetch(`${BASE}/v2/webhooks/${webhookId}`, {
    headers: { "Authorization": `Bearer ${KEY}` }
  });
  const { data } = await res.json();
  if (data.status === "succeeded") { console.log(data.result); break; }
  if (data.status === "errored")   throw new Error(data.errorCode ?? "Task failed");
  await new Promise(r => setTimeout(r, 2000));
}
```
```typescript [TypeScript SDK]
import ReverseContact from "@reverse-contact/sdk";

const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });

const task = await client.fetch.personLive({ url: "https://social.com/in/janedoe" });
console.log("Save this task id:", task.id);

// Polls until the task ends, and throws TaskFailedError if it fails.
const done = await task.wait();
console.log(done.data.result);
```
```bash [cURL]
KEY="YOUR_API_KEY"
ID=$(curl -sX POST https://api.reversecontact.com/v2/fetch/persons/live \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://social.com/in/janedoe"}' | jq -r .data.webhookId)

while :; do
  S=$(curl -s https://api.reversecontact.com/v2/webhooks/$ID \
    -H "Authorization: Bearer $KEY" | jq -r .data.status)
  [ "$S" = "succeeded" ] && break
  [ "$S" = "errored" ] && echo "task failed" && exit 1
  sleep 2
done

curl -s https://api.reversecontact.com/v2/webhooks/$ID \
  -H "Authorization: Bearer $KEY" | jq .data.result
```
```python [Python SDK]
import os

from reversecontact import ReverseContact

with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
    task = client.fetch.person_live(url="https://social.com/in/janedoe")
    print("Save this task id:", task.id)

    # Polls until the task ends, and raises TaskFailedError if it fails.
    done = task.wait()
    print(done.data.result if done.data else None)
```

> [!TIP]
> Polling needs no webhook receiver. Polls are free and do not count against your per-minute rate limit.

To get each result as soon as it's ready with fewer requests, add `?wait=20` to the poll: each call then waits up to 20 seconds for the task to end. The SDKs' `task.wait()` already polls this way. The [Polling guide](https://docs.reversecontact.com/guides/polling) walks through the integration and compares polling with webhooks.

## 4. Many people or companies? Let a List orchestrate the work

The endpoints above look up one person at a time. For a file, a CRM segment or a set of prospects, a [List](https://docs.reversecontact.com/guides/lists) orchestrates the whole pipeline instead: send it up to 25,000 Social profile URLs, emails or names in one import, or the URL of a public CSV file, and it identifies each person, skips those already on the List, buys the data you ask for (profile, work email, phone number) under a credit ceiling you set, and keeps the result for you to read or export. Your team sees the same List in the app.

The [Lists guide](https://docs.reversecontact.com/guides/lists) explains what a List orchestrates, and [Build your first List](https://docs.reversecontact.com/guides/build-a-list) walks through a first List step by step.

## FAQ

### What is the base URL of the Reverse Contact API?

All Reverse Contact endpoints are served from `https://api.reversecontact.com/v2/`, for example `POST https://api.reversecontact.com/v2/fetch/persons`. The examples send the API key in an `Authorization: Bearer` header.

### How do I get a Reverse Contact API key?

Create a Reverse Contact account, then open Workspace > API Keys, create a new key, copy it and keep it secure. The [Authentication](https://docs.reversecontact.com/authentication) page covers API keys and permissions.

### How long does a live endpoint take to return data?

The `live` endpoints, Find Email and Find Phone reply immediately with a `webhookId`, then deliver the result once it's ready, usually within seconds. Reverse Contact aims to deliver each result in under 15 seconds, but it can take tens of minutes depending on conditions, so live endpoints are built to feed async pipelines, not to block a request a user is waiting on.

### How do I get a live profile result without setting up a webhook?

Use polling: trigger the live task, then call `GET /v2/webhooks/:webhookId` until the status is `succeeded`, or stop if it is `errored`. Polling needs no webhook receiver, and polls are free and do not count against your per-minute rate limit. See the [Polling guide](https://docs.reversecontact.com/guides/polling).

### What replaced `/v2/search/persons`?

On October 13, 2026, `/v2/search/persons` was replaced by `/v2/search/people`. The old endpoint now returns `410 Gone`. See the [endpoint transition guide](https://docs.reversecontact.com/guides/endpoint-transition-october-2026).
