Skip to content

Find a professional or personal email address from a Social URL, a Reverse Contact person id, or full name and company domain, then receive the result by webhook.

POST/v2/contact/email
Available inAPIMCPSDKCLI

Credits

3 credits when a professional email is found, 5 for a personal one, whatever the emailType: an any lookup costs 3, 5 or 8 (8 when it finds both).

A lookup that finds none is free.

Introduction

The Find Email endpoint discovers email addresses for a person: professional ones by default, personal ones on request with emailType. 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 an email address for outreach or CRM enrichment. For push delivery, configure a workspace webhook URL in Settings > Webhooks, which receives found emails only, or provide webhookUrl in the request, which also receives not-found and error outcomes.

The price depends on the kind of email found, not on the emailType you send: a professional email costs 3 credits and a personal email costs 5 credits, so an any lookup costs 3, 5 or 8 credits depending on what it finds. A lookup that finds no email is free. See Credits by email type for what each emailType debits.

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.
emailTypestringOptionalKind of email to find: professional (default), personal, or any to accept either. Omit it to find professional emails.
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/email \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"prs_01jbd5vewyenebxgaz869ffe5t"}'

Idempotency-Key header

A lookup is debited when its task is created. 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/email \
  -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"}'

Credits by email type

Each kind of email is billed once, however many addresses of that kind the lookup returns: a professional email costs 3 credits (two professional addresses still cost 3) and a personal email costs 5 credits. When a lookup finds both kinds, which only any can do, the prices add up to 8 credits. An any lookup therefore has no fixed price: it costs 3, 5 or 8 credits depending on what it finds. A lookup that finds no email costs 0 credits.

The credits are debited when the task is created, then adjusted to what the lookup found when the result arrives:

emailTypeDebited at creationFinal cost by result
professional (or omitted)3Email found: 3. No email found: the 3 credits are refunded.
personal5Email found: 5. No email found: the 5 credits are refunded.
any5Professional only: 3 (2 credits refunded). Personal only: 5 (no change). Both kinds: 8 (3 more credits debited). No email found: the 5 credits are refunded.

Before it accepts the request, the API checks that your balance could pay for the most expensive result: 3 credits for a professional lookup, 5 for personal, and 8 for any in case it finds both kinds. This is a balance check, not the price: an any lookup is still billed 3, 5 or 8 credits depending on what it finds. Below that balance, the request returns 402 INSUFFICIENT_CREDITS and nothing is debited (see Error handling & retries). With 6 credits left, for example, a personal lookup is accepted and an any lookup is refused.

The initial response's quotas.creditsConsumed shows what was debited at creation: 3, or 5 for personal and any. Any refund or extra debit is applied to your balance when the result arrives.

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 emails 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 debited when the task is created: 3, or 5 for personal and any
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": "jane.doe@acme.com",
      "type": "professional"
    }
  ]
}
dataobject

One entry per email address discovered for the person.

Show child attributes
FieldTypeDescription
valuestringThe discovered email address
typestringEmail category: professional or personal

Webhook callback errors (advanced)

When the lookup cannot return an email, 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": "email-not-found"
  }
}

data.errorCode takes one of these values:

CodeBilledDescription
email-not-foundNoNo email address 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.findEmail({ 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 email of done.data.result ?? []) console.log(email.value, email.type);
} catch (error) {
  if (error instanceof TaskFailedError) console.log("Ended without an email:", 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": "a9a842f2-ac02-4f37-aa4f-b8c738dd74af",
    "executionTimeMs": 95
  },
  "quotas": {
    "creditsConsumed": 3,
    "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