Skip to content

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.

POST/v2/contact/phone
Available inAPIMCPSDKCLI

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

NameTypeRequiredDescription
apikeystringYesYour 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.

NameTypeRequiredDescription
urlstringConditionalPublic Social profile URL, such as https://www.social.com/in/janedoe. Use this for the URL strategy.
idstringConditionalReverse Contact person id from a previous response, such as prs_01jbd5vewyenebxgaz869ffe5t. Use this for the id strategy.
fullNamestringConditionalPerson's full name, such as Jane Doe. Use this with companyDomain.
firstNamestringConditionalPerson's first name. Use this with lastName and companyDomain instead of fullName.
lastNamestringConditionalPerson's last name. Use this with firstName and companyDomain instead of fullName.
companyDomainstringConditionalCompany domain, such as acme.com. Required for the name-based strategies.
webhookUrlstringOptionalHTTPS 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"}'

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.

NameTypeRequiredDescription
Idempotency-KeystringOptionalA 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.

StatusCodeWhen
409IDEMPOTENCY_KEY_IN_USEThe first request with this key is still being processed. Retry after the Retry-After seconds to receive its response.
422IDEMPOTENCY_KEY_REUSEDThe key was already used with a different body. Use a new key for a new lookup.
400INVALID_IDEMPOTENCY_KEYThe 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"}'

Response structure

This endpoint replies immediately with a webhookId. You then retrieve the result in one of two ways:

  1. Polling (recommended): call GET /v2/webhooks/:webhookId until the status is succeeded. 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.
  2. 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.
FieldTypeDescription
successbooleantrue if the task was created successfully
dataobject

Initial 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 attributes
FieldTypeDescription
statusstringTask status, always "created" for the initial response
webhookIdstringUnique identifier (UUID). Save it to poll the result at GET /v2/webhooks/:webhookId, or to correlate an incoming webhook callback.
pollUrlstringConvenience hint pointing to the polling endpoint for this task (e.g. /v2/webhooks/{webhookId}).
FieldTypeDescription
errornullAlways null on success
quotasobject

Credits and rate limit usage after this request

Show child attributes
FieldTypeDescription
creditsConsumednumberCredits consumed by this request
workspaceobject

Workspace-level limits

Show child attributes
FieldTypeDescription
idstringYour workspace identifier
hasUnlimitedCreditsbooleanWhether workspace credits are unlimited
allowDailyOvercostbooleanWhether the workspace may exceed its daily cap
creditsobject

Credit balance

Show child attributes
FieldTypeDescription
totalnumberTotal credits in your plan
usednumberCredits consumed so far
leftnumberRemaining credits
dailyLimitobject

Daily request limit (null if not configured)

Show child attributes
FieldTypeDescription
limitnumberMaximum requests per day
usednumberRequests made today
leftnumberRemaining requests today
nextResetstringWhen the daily window resets (ISO 8601)
minuteRateLimitobject

Per-minute rate limit

Show child attributes
FieldTypeDescription
limitnumberMaximum requests per minute
usednumberRequests made in the current minute
leftnumberRemaining requests in the current minute
nextResetstringWhen the minute window resets (ISO 8601)
keyobject

API key-level limits (null when request is from dashboard)

Show child attributes
FieldTypeDescription
idstringAPI key identifier
dailyLimitobject

Daily limit for this key (null if not configured)

Show child attributes
FieldTypeDescription
limitnumberMaximum requests per day
usednumberRequests made today
leftnumberRemaining requests today
nextResetstringWhen the daily window resets (ISO 8601)
minuteRateLimitobject

Minute rate limit for this key

Show child attributes
FieldTypeDescription
limitnumberMaximum requests per minute
usednumberRequests made in the current minute
leftnumberRemaining requests in the current minute
nextResetstringWhen the minute window resets (ISO 8601)
metadataobject

Request tracking information

Show child attributes
FieldTypeDescription
requestIdstringUnique identifier for this request
executionTimeMsnumberTotal 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.

Webhook callback (success)

Success payload

{
  "webhookId": "b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4",
  "data": [
    {
      "value": "+33612345678",
      "type": "mobile"
    }
  ]
}
dataobject

One entry per phone number discovered for the person.

Show child attributes
FieldTypeDescription
valuestringThe discovered phone number, in the format reported by the provider (usually E.164)
typestring | nullPhone 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:

Webhook callback (error)

Error payload

{
  "webhookId": "b8c9d0e1-f2a3-4b4c-5d6e-7f8091a2b3c4",
  "data": {
    "errorCode": "phone-not-found"
  }
}

data.errorCode takes one of these values:

CodeBilledDescription
phone-not-foundNoNo phone number was discovered for the person
person-not-foundNoNo matching person was found for the supplied identifiers
invalid-requestNoThe lookup input is malformed or does not match an accepted form
fetch-data-errorNoThe lookup failed while fetching data; safe to retry
webhook-url-invalidYesThe callback URL returned a 4xx response
webhook-url-erroredYesThe callback URL returned a 5xx response or a network error
webhook-url-timeoutYesThe callback URL did not respond in time
webhook-url-unreachableYesThe 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;
}

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"
      }
    }
  }
}

Last verified