Find Phone
Find a professional phone number from a Social URL, a Reverse Contact person id, or full name and company domain, then receive the result by webhook.
Credits
20 credits when a phone number is found.
A lookup that finds none is free.
Introduction
The Find Phone endpoint discovers professional phone numbers for a person. You can identify the person with a Social profile URL, with a Reverse Contact person id (prs_…) from a Search, Fetch or Enrich result, or with their full name and company domain. Processing is asynchronous: the API acknowledges the request with a webhookId, then you retrieve the result by polling (recommended, no public endpoint required) or through a webhook callback (advanced, push delivery).
Use this endpoint when you need a phone number for outreach or CRM enrichment. For push delivery, configure a workspace webhook URL in Settings > Webhooks, which receives found numbers only, or provide webhookUrl in the request, which also receives not-found and error outcomes.
Authorization
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | Yes | Your API key from the developer dashboard. Pass it in the Authorization: Bearer YOUR_API_KEY header. |
Request body
Choose one lookup strategy: a Social profile URL, a person id, or a full name with a company domain. The split firstName + lastName form is also accepted.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Conditional | Public Social profile URL, such as https://www.social.com/in/janedoe. Use this for the URL strategy. |
id | string | Conditional | Reverse Contact person id from a previous response, such as prs_01jbd5vewyenebxgaz869ffe5t. Use this for the id strategy. |
fullName | string | Conditional | Person's full name, such as Jane Doe. Use this with companyDomain. |
firstName | string | Conditional | Person's first name. Use this with lastName and companyDomain instead of fullName. |
lastName | string | Conditional | Person's last name. Use this with firstName and companyDomain instead of fullName. |
companyDomain | string | Conditional | Company domain, such as acme.com. Required for the name-based strategies. |
webhookUrl | string | Optional | HTTPS URL that receives the callback. Omit it to retrieve the result by polling instead. |
Person id
curl -X POST https://api.reversecontact.com/v2/contact/phone \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"prs_01jbd5vewyenebxgaz869ffe5t"}'import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const task = await client.contact.findPhone({ id: "prs_01jbd5vewyenebxgaz869ffe5t" });import os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
task = client.contact.find_phone(id="prs_01jbd5vewyenebxgaz869ffe5t")Idempotency-Key header
A lookup starts as soon as the request is accepted. If the response gets lost (a timeout, a dropped connection), sending the request again would start and bill a second lookup. To retry safely, send an Idempotency-Key header with a key you choose for this lookup, and send the same key again when you retry.
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | Optional | A key you choose for this lookup: 1 to 255 printable ASCII characters without spaces, such as a UUID. Use a new key for each new lookup. |
For 24 hours, a request with the same key and the same body returns the response of the first one, unchanged, with the same webhookId and the header Idempotent-Replayed: true. No new lookup starts and no credits are debited: the replayed quotas describe the first request. Keys are scoped to your workspace and to this endpoint. A replayed request still counts toward your per-minute rate limit.
| Status | Code | When |
|---|---|---|
409 | IDEMPOTENCY_KEY_IN_USE | The first request with this key is still being processed. Retry after the Retry-After seconds to receive its response. |
422 | IDEMPOTENCY_KEY_REUSED | The key was already used with a different body. Use a new key for a new lookup. |
400 | INVALID_IDEMPOTENCY_KEY | The key is empty, longer than 255 characters, or contains a space or a non-ASCII character. |
A first request that ends in an error is not kept: it started nothing and cost nothing, so a retry with the same key runs as a new request.
Idempotency-Key
curl -X POST https://api.reversecontact.com/v2/contact/phone \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 4f1c2a9e-3b7d-4c55-9a8e-1d2f3a4b5c6d" \
-d '{"url":"https://www.social.com/in/janedoe"}'import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
// The SDK sends a new Idempotency-Key on each call and reuses it on its own retries.
// To retry after a restart, store your own key with the request and pass it again.
const task = await client.contact.findPhone(
{ url: "https://www.social.com/in/janedoe" },
{ idempotencyKey: "4f1c2a9e-3b7d-4c55-9a8e-1d2f3a4b5c6d" }
);
console.log(task.id, task.replayed); // replayed: true when the first response came backimport os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
# The SDK sends a new Idempotency-Key on each call and reuses it on its own retries.
# To retry after a restart, store your own key with the request and pass it again.
task = client.contact.find_phone(
url="https://www.social.com/in/janedoe",
idempotency_key="4f1c2a9e-3b7d-4c55-9a8e-1d2f3a4b5c6d",
)
print(task.id, task.replayed) # replayed: True when the first response came backResponse structure
This endpoint replies immediately with a webhookId. You then retrieve the result in one of two ways:
- Polling (recommended): call
GET /v2/webhooks/:webhookIduntil the status issucceeded. With?wait=20, each call waits up to 20 seconds and answers as soon as the result is ready. No webhook URL is needed. See the Polling guide. - Webhook callback (advanced): if you provided a
webhookUrl(or a workspace default is configured), the gateway POSTs the phone numbers to that URL once the lookup completes. See Webhook callback payload (advanced) below.
| Field | Type | Description |
|---|---|---|
success | boolean | true if the task was created successfully |
dataobjectInitial task acknowledgement. Save the webhookId to retrieve the result via polling (GET /v2/webhooks/:webhookId) or to correlate an upcoming webhook callback (null on error responses).
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
status | string | Task status, always "created" for the initial response |
webhookId | string | Unique identifier (UUID). Save it to poll the result at GET /v2/webhooks/:webhookId, or to correlate an incoming webhook callback. |
pollUrl | string | Convenience hint pointing to the polling endpoint for this task (e.g. /v2/webhooks/{webhookId}). |
| Field | Type | Description |
|---|---|---|
error | null | Always null on success |
quotasobjectCredits and rate limit usage after this request
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
creditsConsumed | number | Credits consumed by this request |
workspaceobjectWorkspace-level limits
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
id | string | Your workspace identifier |
hasUnlimitedCredits | boolean | Whether workspace credits are unlimited |
allowDailyOvercost | boolean | Whether the workspace may exceed its daily cap |
creditsobjectCredit balance
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
total | number | Total credits in your plan |
used | number | Credits consumed so far |
left | number | Remaining credits |
dailyLimitobjectDaily request limit (null if not configured)
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per day |
used | number | Requests made today |
left | number | Remaining requests today |
nextReset | string | When the daily window resets (ISO 8601) |
minuteRateLimitobjectPer-minute rate limit
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per minute |
used | number | Requests made in the current minute |
left | number | Remaining requests in the current minute |
nextReset | string | When the minute window resets (ISO 8601) |
keyobjectAPI key-level limits (null when request is from dashboard)
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
id | string | API key identifier |
dailyLimitobjectDaily limit for this key (null if not configured)
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per day |
used | number | Requests made today |
left | number | Remaining requests today |
nextReset | string | When the daily window resets (ISO 8601) |
minuteRateLimitobjectMinute rate limit for this key
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per minute |
used | number | Requests made in the current minute |
left | number | Remaining requests in the current minute |
nextReset | string | When the minute window resets (ISO 8601) |
metadataobjectRequest tracking information
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
requestId | string | Unique identifier for this request |
executionTimeMs | number | Total execution time in milliseconds |
Webhook callback payload (advanced)
When the lookup succeeds, Reverse Contact sends a JSON POST request to your webhookUrl. The callback is not wrapped in the V2 response envelope. It always includes the webhookId from the initial acknowledgement and a data value.
Success payload
{
"webhookId": "b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4",
"data": [
{
"value": "+33612345678",
"type": "mobile"
}
]
}dataobjectOne entry per phone number discovered for the person.
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
value | string | The discovered phone number, in the format reported by the provider (usually E.164) |
type | string | null | Phone kind reported by the provider, such as mobile; null when the provider gives no kind |
Webhook callback errors (advanced)
When the lookup cannot return a phone number, data is an object instead of an array, with an errorCode that gives the reason:
Error payload
{
"webhookId": "b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4",
"data": {
"errorCode": "phone-not-found"
}
}data.errorCode takes one of these values:
| Code | Billed | Description |
|---|---|---|
phone-not-found | No | No phone number was discovered for the person |
person-not-found | No | No matching person was found for the supplied identifiers |
invalid-request | No | The lookup input is malformed or does not match an accepted form |
fetch-data-error | No | The lookup failed while fetching data; safe to retry |
webhook-url-invalid | Yes | The callback URL returned a 4xx response |
webhook-url-errored | Yes | The callback URL returned a 5xx response or a network error |
webhook-url-timeout | Yes | The callback URL did not respond in time |
webhook-url-unreachable | Yes | The callback URL could not be reached |
Code examples
Code Examples
import ReverseContact, { TaskFailedError } from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const task = await client.contact.findPhone({ url: "https://www.social.com/in/janedoe" });
console.log("Save this task id:", task.id); // resume after a restart with client.tasks.wait(id)
try {
// Long polls until the task ends, 30 minutes at most by default.
const done = await task.wait();
for (const phone of done.data.result ?? []) console.log(phone.value, phone.type);
} catch (error) {
if (error instanceof TaskFailedError) console.log("Ended without a phone number:", error.errorCode, "credits:", error.creditsConsumed);
else throw error;
}import ReverseContact, { parseWebhookDelivery } from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const task = await client.contact.findPhone({
fullName: "Jane Doe",
companyDomain: "acme.com",
webhookUrl: "https://your-app.com/webhooks/reversecontact"
});
console.log(task.status, task.id);
// The route behind webhookUrl receives { webhookId, data }: answer within 10 seconds.
async function handleWebhook(request: Request): Promise<Response> {
const delivery = parseWebhookDelivery(await request.json());
console.log(delivery.webhookId, delivery.isError ? "failed" : "succeeded", delivery.data);
return new Response(null, { status: 200 });
}KEY="YOUR_API_KEY"
ID=$(curl -sX POST https://api.reversecontact.com/v2/contact/phone \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"url":"https://www.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.resultcurl -X POST https://api.reversecontact.com/v2/contact/phone \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fullName": "Jane Doe",
"companyDomain": "acme.com",
"webhookUrl": "https://your-app.com/webhooks/reversecontact"
}'import os
from reversecontact import TaskFailedError, ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
task = client.contact.find_phone(url="https://www.social.com/in/janedoe")
print("Save this task id:", task.id) # resume after a restart with client.tasks.wait(id)
try:
# Long polls until the task ends, 30 minutes at most by default.
done = task.wait()
found = done.data.result if done.data and done.data.result else []
for phone in found:
if phone is not None:
print(phone.value, phone.type)
except TaskFailedError as error:
print("Ended without a phone number:", error.error_code)import os
from reversecontact import ReverseContact, parse_webhook_delivery
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
task = client.contact.find_phone(
full_name="Jane Doe",
company_domain="acme.com",
webhook_url="https://your-app.com/webhooks/reversecontact",
)
print(task.status, task.id)
# The route behind webhook_url receives {webhookId, data}: answer within 10 seconds.
def handle_webhook(body: bytes) -> None:
delivery = parse_webhook_delivery(body)
print(delivery.webhook_id, "failed" if delivery.is_error else "succeeded", delivery.data)Example response
Example Response
{
"success": true,
"data": {
"status": "created",
"webhookId": "b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4",
"pollUrl": "/v2/webhooks/b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4"
},
"error": null,
"metadata": {
"requestId": "0882d345-1902-47b3-b19c-98482adf9929",
"executionTimeMs": 95
},
"quotas": {
"creditsConsumed": 20,
"workspace": {
"id": "ws_abc123",
"credits": {
"total": 10000,
"used": 4539,
"left": 5461
},
"dailyLimit": null,
"minuteRateLimit": {
"limit": 60,
"used": 10,
"left": 50,
"nextReset": "2025-01-20T14:16:00.000Z"
},
"hasUnlimitedCredits": false,
"allowDailyOvercost": false
},
"key": {
"id": "key_abc123",
"dailyLimit": null,
"minuteRateLimit": {
"limit": 60,
"used": 10,
"left": 50,
"nextReset": "2025-01-20T14:16:00.000Z"
}
}
}
}{
"webhookId": "b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4",
"data": [
{
"value": "+33612345678",
"type": "mobile"
}
]
}Last verified