API referenceEndpoints

Webhooks

Receive every requested person or company with its warm paths when a list's Homie sync is done: register endpoints, the payload, signatures and retries.

After a company list or People list request, Homie pushes the results to every active webhook endpoint of your organization, one person or company at a time. Each one gets a single sync_request.target_completed event with its warm paths, as soon as it is done: its LinkedIn search ended, or no search was needed because Homie already had its paths. It works the same for 1 person or 50, sent in one request or several.

All your server needs is one public https endpoint that accepts these POSTs, checks the signature, and answers 2xx within 10 seconds. Register the endpoint before you create the list: a request only notifies the endpoints that existed when it was made.

Register an endpoint

POST /api/v1/webhooks
curl -X POST https://app.usehomie.com/api/v1/webhooks \-H "Authorization: Bearer $HOMIE_API_KEY" \-H "Content-Type: application/json" \-d '{ "url": "https://example.com/homie-webhook", "description": "Production" }'

The response contains secret (whsec_...). It is shown only once, so store it to verify signatures. The URL must be public https. An organization can have up to 10 endpoints.

RequestDescription
GET /api/v1/webhooksYour endpoints, with active, consecutiveFailures, lastSuccessAt and lastError. Secrets are never returned again.
DELETE /api/v1/webhooks/{id}Remove an endpoint.
POST /api/v1/webhooks/{id}/testSend a signed webhook.test event now and see what your receiver answered.

Each person or company: sync_request.target_completed

data.result holds the target and its warm paths, in the same shape and order as GET /api/v1/search/warm-paths (data.paths): direct relationships first, then routes through the key owner's own connections that are at least 20% warm on every hop, then the rest by route strength (the warmness of a route's weakest hop). Up to 10 paths are sent per target. progress counts the request's targets done so far, including this one.

{
  "id": "evt_cm..._person_cm...",
  "type": "sync_request.target_completed",
  "createdAt": "2026-11-19T15:00:00.000Z",
  "data": {
    "syncRequestId": "cm...",
    "list": { "id": "cm...", "name": "Q1 people", "kind": "people" },
    "outcome": "searched",
    "progress": { "done": 7, "total": 20 },
    "result": {
      "target": { "type": "person", "id": "cm...", "name": "Person A", "linkedinUrl": "https://www.linkedin.com/in/person-a/" },
      "pathCount": 2,
      "paths": [ { "fromUserName": "Kalle", "connectionType": "second_degree", "connector": { "name": "Jane Doe" }, "warmness": 64, "...": "..." } ]
    }
  }
}

outcome is one of:

  • searched: Homie's LinkedIn search for it finished.
  • not_searched: no search was needed. Homie already had its paths, it was searched recently, or it is your first-degree connection.
  • failed: the search stopped without results. Its paths are still whatever Homie already knew.
  • timed_out: still searching after 72 hours. Its paths are the ones found so far.

A company is searched together with others, so its event comes when every search that included it has ended. Two people can finish at the same moment, so rely on progress, not arrival order.

When a request is finished

Every requested person or company gets exactly one event. A request is finished when you have received the event with progress.done equal to progress.total. Because events can arrive out of order, you can also count the events per syncRequestId. If searches are still running after 72 hours, those people or companies are sent with outcome: "timed_out" and the paths Homie has so far. You can check progress at any time with GET /api/v1/sync-requests/{id}.

Verify the signature

Every request carries these headers:

  • Homie-Event-Id
  • Homie-Event-Type
  • Homie-Signature: t=<unix seconds>,v1=<hex>

v1 is the HMAC-SHA256 of <t>.<raw body>, keyed with your endpoint's secret. Compare it in constant time against the raw body (before parsing JSON), and reject timestamps older than 5 minutes.

import { createHmac, timingSafeEqual } from "node:crypto";

function verify(secret, header, rawBody) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((part) => part.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return v1.length === expected.length && timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}

Delivery and retries

  • Answer fast. Respond with any 2xx within 10 seconds. Redirects are not followed.
  • At least once. Delivery can repeat, and id stays the same across retries, so dedupe on it.
  • Retries. A failed delivery is retried with growing backoff, up to 8 attempts.
  • Disabling. An endpoint that fails 10 times in a row is disabled (active: false); register it again once it is fixed.
  • Timing. Homie checks for finished searches every 5 minutes, so a person or company's event arrives within about 5 minutes of its search ending. People Homie already reaches arrive on the first check.

Sync request progress

GET /api/v1/sync-requests/{id}

Use the sync.syncRequestId from a list call. Returns state (syncing or done), overdue (still syncing after 72 hours), and runs (counts of total, active, done, needsAttention, failed, canceled).

On this page