> ## Documentation Index
> Fetch the complete documentation index at: https://docs.introlink.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Events from your network, signed, sent to your own address, and retried.

> [!NOTE]
>
> Source: `app/src/lib/webhooks/` (`emit.ts`, `deliver.ts`, `sign.ts`, `url.ts`)
> and the tables `webhook_endpoints` and `webhook_deliveries`
> (`packages/db/migrations/0024_public_api.sql`).

In IntroLink, **Settings, API, Webhooks**: enter the address to send events to,
tick the events, and press **Send a test**. Each person sets their own webhook,
and it carries their own events only. It works while the workspace is on
Individual, Team or Business, the plans that include the API.

## Events

| Event | When |
| - | - |
| `person.job_changed` | someone in your network started a new role: a job move, a champion moving on, or a former colleague joining a company you follow |
| `signal.created` | any new signal: job moves, alumni, relationships going quiet, weaker paths, a bounced address, a connector engaging on LinkedIn with someone you're after. Not "you looked at someone again", which is your own action |
| `connector.mapped` | one of your connectors' LinkedIn networks finished mapping |
| `ask.sent` | an ask left your Gmail |
| `intro_request.created` | a founder asked for an intro through your intro page and confirmed their email |
| `intro_request.closed` | an intro request closed: introduced, declined, no answer, or withdrawn by the founder |
| `webhook.test` | you pressed Send a test |

Each event has its own page under **Endpoints**, with its body field by field
and an example: [`person.job_changed`](https://docs.introlink.ai/public-api/reference/webhooks/person-job-changed), [`signal.created`](https://docs.introlink.ai/public-api/reference/webhooks/signal-created), [`connector.mapped`](https://docs.introlink.ai/public-api/reference/webhooks/connector-mapped), [`ask.sent`](https://docs.introlink.ai/public-api/reference/webhooks/ask-sent), [`intro_request.created`](https://docs.introlink.ai/public-api/reference/webhooks/intro-request-created), [`intro_request.closed`](https://docs.introlink.ai/public-api/reference/webhooks/intro-request-closed), [`webhook.test`](https://docs.introlink.ai/public-api/reference/webhooks/webhook-test).

An event about someone you keep private is not sent. On `ask.sent`, a private
connector is left off (`connector: null`).

## The body

```json theme={null}
{
  "type": "ask.sent",
  "timestamp": "2026-11-25T12:00:00.000Z",
  "data": {
    "ask": { "id": "…", "subject": "Intro to Priya?", "sent_at": "2026-11-25T12:00:00.000Z", "url": "https://app.introlink.ai/asks?ask=…" },
    "target": { "id": "p_Qm3…", "name": "Priya Raman", "role": "VP Finance, Kestrel Logistics", "url": "https://app.introlink.ai/open?person=p_Qm3…" },
    "connector": { "id": "p_8Tz…", "name": "Daniel Reyes", "role": null, "url": "…" }
  }
}
```

People carry the same ids as the [API](https://docs.introlink.ai/public-api/conventions.md#ids): pass one to
`GET /v1/people/{id}/paths` with a key you created. Never an email address or a
phone number, and nothing from an email.

| Event | `data` |
| - | - |
| `person.job_changed` | `person`, `from` and `to` (`title`, `company`; either may be null), `observed_at`. A move noticed in email names the company by its email domain, with no title |
| `signal.created` | `signal` (`id`, `kind`, `text`, `observed_at`, `url`), `person` |
| `connector.mapped` | `connector`, `people_found`, `finished_at`, `url` |
| `ask.sent` | `ask` (`id`, `subject`, `sent_at`, `url`), `target`, `connector` |
| `intro_request.created` | `intro_request` (`id`, `page_id`, `created_at`, `url`). Ids only: never the founder's name or address, and never who they asked for |
| `intro_request.closed` | `intro_request` (`id`, `page_id`, `status`, `closed_at`, `url`). `status` is `introduced`, `declined`, `target_declined`, `expired` or `withdrawn` |
| `webhook.test` | `message`, `url` |

## Checking the signature

Deliveries are signed the [Standard Webhooks](https://www.standardwebhooks.com)
way, so a stock library can check them. Three headers:

| Header | Holds |
| - | - |
| `webhook-id` | `evt_…`, the same on every attempt: use it to drop repeats |
| `webhook-timestamp` | seconds since the epoch |
| `webhook-signature` | `v1,` + base64 of HMAC-SHA256 over `"<id>.<timestamp>.<body>"`. Read it as a space-separated list, and accept the delivery when any one matches |

The key is your signing secret (`whsec_…`, from Reveal on Settings) with the
`whsec_` taken off and base64-decoded. Refuse a timestamp more than five
minutes from your clock. In Node:

```js theme={null}
import { createHmac, timingSafeEqual } from "node:crypto";

function verify(secret, headers, rawBody) {
  const id = headers["webhook-id"];
  const ts = headers["webhook-timestamp"];
  const signatures = headers["webhook-signature"];
  if (!id || !signatures || !/^\d+$/.test(ts ?? "")) return false;
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const key = Buffer.from(secret.slice("whsec_".length), "base64");
  const want = createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest("base64");
  return signatures.split(" ").some((s) => {
    const got = Buffer.from(s.replace(/^v1,/, ""));
    return got.length === want.length && timingSafeEqual(got, Buffer.from(want));
  });
}
```

Check the raw body, before any JSON parsing changes it.

## Answering, and retries

Answer any `2xx` within 10 seconds. Otherwise:

| What happened | Then |
| - | - |
| no answer, a timeout, `408`, `429`, `5xx` | tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours; then marked failed |
| any other answer, including `4xx` | marked failed, not retried |
| a redirect (`3xx`) | marked failed: deliveries never follow redirects |

Retries go through IntroLink's job queue. Settings shows the last delivery and
how it went.

## Addresses

The address must be `https://` on the public internet: not `localhost`, a
private or link-local IP address, a host with no dot, or an IntroLink address.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.