Skip to content

Webhooks POST async enrichment results to your HTTPS URL. Use them when you already run a public HTTPS receiver and prefer push delivery to polling.

Introduction

Webhooks deliver async enrichment results to a public HTTPS URL you operate. Use them when you already operate a public HTTPS receiver and prefer a push model.

For most use cases, polling is faster to integrate and equally cost-effective: it uses the same endpoints and returns the same data at the same enrichment cost. The Polling guide compares both side by side.

How it works

Async endpoints work in the background so your application doesn't have to wait. The API accepts your request immediately, processes it, and delivers the result to your server as soon as it's ready:

  1. You call an async endpoint, for example POST /v2/fetch/persons/live.
  2. The API answers immediately with a webhookId that uniquely identifies the request. Use it to match incoming callbacks to your original request.
  3. The API fetches the data in the background.
  4. As soon as the data is ready, the API sends a POST request with the JSON payload to your webhook URL.

The delivery POST to your webhook URL does not count toward the per-minute rate limit. The request that creates the async task does count. See Rate limits.

Async endpoints

These endpoints deliver their results by webhook:

FamilyEndpointRoute
ProfilesPerson Profile LivePOST /v2/fetch/persons/live
ProfilesCompany Profile LivePOST /v2/fetch/companies/live
ContactFind EmailPOST /v2/contact/email
ContactVerify EmailPOST /v2/contact/email/verify
ContactFind PhonePOST /v2/contact/phone

1. Configure your webhook URL

Set a single HTTPS URL at workspace level, and the results of your async requests are delivered to it without a webhookUrl in each request.

  1. Go to Settings > Webhooks
  2. Enter your HTTPS endpoint URL
  3. Click Save
  4. Click Test to send a test payload and verify connectivity

Per-request webhook URL override (optional)

Include a webhookUrl field in your request body to override the delivery target for a single request. This is the fastest way to test locally with a tunnel like ngrok:

Bash

Local tunnel

ngrok http 3000

Then use the forwarding URL in your request:

JSON

Request body

{
  "url": "https://social.com/in/janedoe",
  "webhookUrl": "https://a1b2c3d4.ngrok-free.app/webhooks/reversecontact"
}

If no webhook URL is available (neither in the request body nor in workspace settings), the task still runs: retrieve its result by polling GET /v2/webhooks/:webhookId. To receive it as a callback instead, configure a default URL in Settings > Webhooks or include webhookUrl in your request body.

2. Set up a receiver

A webhook receiver is a standard POST endpoint that accepts JSON and returns 200.

const express = require("express");
const app = express();

app.use(express.json());

app.post("/webhooks/reversecontact", (req, res) => {
  const event = req.body;
  console.log("Webhook received:", event.webhookId);

  if (event.data) {
    // Process the result, e.g. from POST /v2/fetch/persons/live
    console.log("Profile:", event.data.firstName, event.data.lastName);
  }

  // Always respond with 200 to acknowledge receipt
  res.status(200).json({ received: true });
});

app.listen(3000, () => console.log("Listening on port 3000"));

Webhook payload

Error callback

When a task ends in error and the request carried a webhookUrl, you receive a callback with an errorCode inside data. The original input is echoed back alongside the error code: linkedinUrl for a person, slug (the last part of the company URL) for a company, and linkedinUrl, fullName or companyDomain for Find Email and Find Phone:

JSON

Error callback

{
  "webhookId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "data": {
    "linkedinUrl": "https://social.com/in/janedoe",
    "errorCode": "person-not-found"
  }
}

Result callback

When the task completes successfully, the callback carries the requested data in data:

JSON

Result callback

{
  "webhookId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "data": {
    "...": "endpoint-specific result payload"
  }
}

Enrichment error codes

These codes describe the enrichment outcome and arrive as data.errorCode in the callback:

CodeDescription
invalid-requestThe request input is malformed or doesn't match the expected format
data-not-foundNo matching result was found
person-not-foundThe person profile doesn't exist
company-not-foundThe company profile doesn't exist
email-not-foundNo email could be resolved for this person
fetch-data-errorThe API failed while fetching data. Safe to retry
result-unavailableThe enrichment completed but the result was lost on our side. Retry the task. If the request was charged, contact support to get the credit back.
data-subject-blockedThis person or company asked not to be processed under GDPR or CCPA. The task has no result and its credits are refunded. Do not retry.

Delivery error codes

These codes mean the enrichment was fetched successfully but the result could not be pushed to your webhook URL. The task is reported as succeeded, the result is still available, and the failed push is named by a deliveryStatus field (set to one of the codes below) on the poll and check_task responses.

CodeBilledDescription
webhook-url-invalidYesYour webhook returned a 4xx response
webhook-url-erroredYesYour webhook returned a 5xx or a network error
webhook-url-timeoutYesYour webhook did not respond in time
webhook-url-unreachableYesThe webhook URL could not be reached from production

Security best practices

  • Use HTTPS: the API rejects plain HTTP URLs for webhook delivery.
  • Validate the payload shape. Every callback contains webhookId and data: check for errorCode inside data to distinguish errors from results, and ignore anything that doesn't match.
  • Verify the webhookId. Store the webhookId from the initial response and check incoming callbacks against it, both to match each callback to its request and to reject unknown ones.
  • Respond quickly with a 200 status code. If you need to do heavy processing, acknowledge receipt first and process the data asynchronously.

Dashboard monitoring

The Webhook Events page in your dashboard shows every webhook delivery:

  • Status distribution: a summary of succeeded, errored, and in-progress events.
  • Event log: each row displays the timestamp, webhookId, status, credits consumed, credits refunded, and error code (if any).
  • Filters: narrow down events by status, error code, or webhookId to find specific deliveries.

Go to production

Before going live:

  • Deduplicate on webhookId: in rare cases, a callback may be delivered more than once.
  • Log the webhookId in your application logs to trace requests end to end.
  • Monitor your credits. Credits are deducted when the request is accepted, before the result is delivered, and refundable errors are refunded automatically. See Credits.

The Production checklist covers the rest of the hardening.

Troubleshooting

If you are not receiving webhooks:

  • Ensure your endpoint is publicly accessible from the internet (not only on localhost)
  • If you omitted webhookUrl from the request, verify that a workspace default URL is configured in Settings > Webhooks
  • A task that ends in error sends no callback to the workspace default URL: poll GET /v2/webhooks/:webhookId to read its errorCode
  • Verify that your endpoint accepts POST requests with a Content-Type: application/json body
  • Check your server/firewall logs for incoming requests

If you get timeout errors:

  • Your webhook endpoint must respond within 10 seconds
  • If processing takes longer, return 200 immediately and handle the data asynchronously

If you receive an error or not-found callback instead of data:

  • The API sends a callback with an errorCode in data when the result is not available, as expected (see Enrichment error codes)
  • Verify the URL does not require authentication or return redirects

If you receive duplicate deliveries:

  • Use the webhookId to deduplicate on your side

For transient errors:

  • fetch-data-error is usually transient and safe to retry after a short delay
  • result-unavailable means the enrichment completed but the result was lost on our side. Retry the task. If the request was charged, contact support to get the credit back

FAQ

Do I need webhooks to receive async results from Reverse Contact?

No. Polling uses the same endpoints and returns the same data at the same enrichment cost, needs no public HTTPS endpoint, costs zero credits per poll and does not count toward your per-minute rate limit. Webhooks are meant for teams that already run a public HTTPS receiver and prefer a push model, and most teams integrate faster with Polling.

How long does it take to receive a webhook result?

Reverse Contact aims to POST each async result to your webhook URL in under 15 seconds, but processing can stretch to tens of minutes depending on source availability, queue load and retries. There is no synchronous SLA: the live endpoints are built to update databases and feed async pipelines, not to back a real-time request a user is waiting on.

Do I need to send a webhook URL with every async request?

No. A default webhook URL set once in Settings > Webhooks receives the successful results of every async request sent without a webhookUrl, and a webhookUrl field in the request body overrides that default for a single request. Errors are sent only to a webhookUrl given in the request: with the default URL, read them by polling. If neither is set, the task still runs and you retrieve the result by polling GET /v2/webhooks/:webhookId.

Are credits refunded when webhook delivery fails?

No. A failed webhook delivery (webhook-url-invalid, webhook-url-errored, webhook-url-timeout or webhook-url-unreachable) is billed because the data was fetched successfully, so the credit is kept. The task stays succeeded, a deliveryStatus field names the delivery problem, and the result can still be retrieved by polling GET /v2/webhooks/:webhookId.

How quickly must my webhook endpoint respond?

An endpoint receiving Reverse Contact webhooks must respond within 10 seconds. If processing takes longer, return 200 immediately and handle the data asynchronously, because a webhook that does not respond in time is reported as webhook-url-timeout and that delivery failure is still billed.

Last verified