Skip to content
Narro
Narro AI
Pricing
Log inContact sales
Contact sales
Documentation
How it worksSupport

Get started

OverviewWorkspaceHow Narro works

Moxie

Moxie

The record

Company record

Prepare

Prepare

Fundraise

Fundraise
Add-ons

Network

Narro Network

Bring data in

IntegrationsGoogle DriveGmail

Share Narro out

Connect
MCP
PlatformsPermissionsCustom apps

Account

AccountBillingTeamMemory

Reference

SecurityFAQ

Developers

Which API do I need?
Data API
Getting started for partnersAuthentication and keysRate limitsEnvelope and errorsSandbox dataEndpointsWebhooksEvents APIOutcome write-backIntakeMCP for Claude and CursorJSON SchemasPricing and tiers
Programs API
Getting startedCompany profile and readinessAsk NarroAuthenticationKeysKey scopingRate limitsErrors and retriesSandboxEndpointsWebhooksEventsOutcomesIntake and documentsMCPJSON SchemasObjects and error codesWidgetsVersioningGo livePricing and billingData protection

Narro docs

Loading…

Docs/Developers/Programs API/Webhooks

Webhooks

Narro sends a signed event to your server when something changes. Events are small: public ids and states, never names or contact details.

Webhooks are optional. Nothing in setup or go-live needs them, and Validate setup checks one only when you have it.

How delivery works

  • Each event is a JSON POST to your HTTPS endpoint. Any 2xx answer acknowledges it.
  • Delivery is at least once. The same event can arrive more than once, so deduplicate on the event id.
  • Do not rely on order. Use occurred_at to order events about the same object.
  • Every delivery is signed with the endpoint's own signing secret, never your API key or its signing secret. Reject anything you cannot verify.
  • Answer fast. Do your work after you have stored the event.

Register an endpoint

Register in the Webhooks or with POST /webhooks (partner key scope webhooks.manage, idempotent, no signature needed). A key that is scoped to one cohort manages only that cohort's endpoints and sees only that cohort's events.

narro_call POST "/webhooks" '{
  "schema_version": "standard.v1",
  "url": "https://<your-site-origin>/narro/webhook",
  "events": ["deliverable.status_changed", "intro.status_changed", "key.status_changed"]
}'
  • The URL must be https, on port 443 or 8443, on a public host, with no username or password. Narro resolves the host when you register and again before each send. An address that is private is refused.
  • Subscribe to between 1 and 20 event types. A partner can have up to 10 live endpoints; sandbox endpoints (made with a test key) have no cap.
  • Remove one with DELETE /webhooks/{id} (or in the Hub). It stops receiving events at once, and a live endpoint gives its place among the 10 back. Like every partner write it takes an Idempotency-Key.
  • Registration challenge. A new endpoint starts as pending_verification. Narro posts a signed request with type set to endpoint.verification and a random challenge. Answer 2xx within 10 seconds and echo the challenge, either as JSON { "challenge": "..." } or as the bare text. Then the endpoint turns on. Changing the URL later starts the check again.
  • The signing secret starts with whsec_. It is shown once, in the response and in the Hub when you create or rotate it. Narro does not keep the plain value. Only the last four characters show afterward.
{
  "schema_version": "standard.v1",
  "id": "evt_<event-id>",
  "type": "endpoint.verification",
  "occurred_at": "2026-01-05T15:00:00Z",
  "challenge": "<random-challenge>"
}

Headers

POST /narro/webhook HTTP/1.1
Content-Type: application/json
User-Agent: Narro-Webhooks/1
Narro-Timestamp: 1767225600
Narro-Signature: t=1767225600,v1=<64-hex-signature>
Narro-Event-Id: evt_<event-id>
Idempotency-Key: evt_<event-id>
Narro-Schema-Version: standard.v1
HeaderValue
Narro-Signaturet=<unix seconds>,v1=<hex>. During a secret rotation there is one v1 per live secret, newest first.
Narro-TimestampUnix seconds when this attempt was signed. The same value as t in the signature.
Narro-Event-IdThe event id, evt_.... Deduplicate on it.
Idempotency-KeyThe same value as Narro-Event-Id.
Narro-Schema-VersionThe contract, standard.v1, the same for every program.
Content-Type, User-Agentapplication/json and Narro-Webhooks/1.
Header formatThe header is t=...,v1=.... During a secret rotation it carries two v1 values, and you accept the delivery if either one matches. The OpenAPI description of the header uses the same format.

Events

EventSent whendata usually carries
account.provisionedA founder's Narro account was created or linked after sign in.account_ref, state
deliverable.status_changedA submission changed review state.object_id, state
event.addedYou added one of your own events (POST /events).object_id, state
event.changedOne of your own events changed (PATCH /events/{id}).object_id, state
founder.deletedA founder's data was deleted. The last event for that founder.Nothing beyond the envelope
founder.emailAn email for a founder on your roster, with everything needed to send it (data.email). Sent when you choose "You send them" (or "Both") for that email type on the Partner Hub Founder emails page. Program emails, such as intro placed, need no key scope; Narro account emails need founder_emails.read. Sign-in, password, security and billing emails are never sent.email.type, email.event, email.subject, email.text, email.html, email.links, email.recipient, email.program_name, email.cohort_name, email.data, email.idempotency_key, email.delivery_mode, email.narro_sends
founder.matches_readyA founder's matches are ready: the end of matching after their first token or a refresh. Poll GET /me/matches/status (or the partner-key read) instead if you prefer.state, count
founder.offboardedA founder was offboarded: sessions, codes and tokens are revoked.Nothing beyond the envelope
intake.processedAn intake document finished its scan: accepted, or rejected.object_id, state
intro.requestedA founder submitted an intro request.object_id, state
intro.state_changedAn intro request moved to a new base state.object_id, state
intro.status_changedAn intro request moved to a new public status.object_id, state
key.status_changedOne of your keys changed status. message carries the generic reason category.object_id, state, message
matches.publishedA founder got a first set of matches.state, count
matches.updatedA founder's matches changed.state, count
partner.killedThe partner connection was switched off. A final notice, sent once.state, message
partner.suspendedThe partner connection was suspended. A final notice, sent once.state, message
query.completedA query finished.object_id, state
registration.cancelledA founder's event registration was cancelled.object_id, state
registration.createdA founder was signed up for an event, or moved off a waiting list.object_id, state
version.deprecation_noticeA major version entered its deprecation notice window.deprecation

partner.suspended and partner.killed are final notices. Narro sends each once per change to every verified endpoint, whatever it subscribes to, even while the connection is suspended. While a connection is suspended or killed, other events are held. They can be replayed within 7 days after it is restored.

founder.deleted and version.deprecation_notice name no cohort. An endpoint registered with POST /webhooks by a key scoped to one cohort is tied to that cohort, and events that name no cohort are not sent to it.

New event types can be added within a major version. Ignore types you do not know, and answer them with 2xx.

Payload

{
  "schema_version": "standard.v1",
  "id": "evt_<event-id>",
  "type": "deliverable.status_changed",
  "occurred_at": "2026-01-20T16:30:00Z",
  "cohort_id": "coh_<your-cohort-id>",
  "founder_ref": "fdr_<founder-ref>",
  "data": {
    "object_id": "dlv_<deliverable-id>",
    "state": "accepted"
  }
}

Envelope

FieldTypeRequiredNotes
cohort_idstringNoPublic id starting coh_.
founder_refstringNoPublic founder reference only. Public id starting fdr_.
idstringYesDeduplicate on this id. Public id starting evt_.
occurred_atstring (date-time)YesISO 8601 date-time with a UTC offset. At most 40 characters.
schema_versionstringYesRequired in every request and response body. Always "standard.v1".
typestringYesOne of the events above. New values can be added. Tolerate unknown values.

The data object

data holds public references and states only. Every field is optional. Which fields appear depends on the event, as in the table above. Fields you do not know are safe to ignore.

FieldTypeNotes
account_refstringPublic id starting acc_.
countinteger0 to 100000.
deprecationobject
deprecation.deprecation_atstring (date-time)ISO 8601 date-time with a UTC offset. At most 40 characters.
deprecation.majorinteger1 to 99.
deprecation.migration_urlstring (uri)At most 2048 characters.
deprecation.sunset_atstring (date-time)ISO 8601 date-time with a UTC offset. At most 40 characters.
emailobjectThe founder email. Only on founder.email events.
email.categorystringintro, meeting, pipeline, network, message, updates, program, event or onboarding. At most 20 characters.
email.cohort_namestringThe founder's cohort. At most 200 characters.
email.dataobjectThe facts the email is built from (for an intro: intro_id, status, status_label, target_name, reason_code, reason_text), so you can write your own wording.
email.delivery_modestringpartner_only: Narro did not email the founder, you send it. both: Narro also sent it. At most 12 characters.
email.envstringsandbox or live: the mode of the founder's cohort. At most 8 characters.
email.eventstringThe moment that sent the email, for example intro.placed. At most 80 characters.
email.founder_idstringThe public founder id the email is for. Public id starting fdr_. At most 40 characters.
email.htmlstringThe HTML body, as Narro sends it. Present only when html_included is true. At most 24000 characters.
email.html_includedbooleanFalse when the HTML was switched off in the Hub, or is longer than 19,000 characters (then use the text).
email.idempotency_keystringThe same for the same email, across retries and replays. Pass it to your email provider so a repeat never sends twice. At most 200 characters.
email.link_handlingstringnarro: the links are Narro's own. partner: links that pointed at Narro's portal point at your platform. At most 10 characters.
email.linksarray of objectThe action links in the email, in order. At most 20 items.
email.localestringThe language of the email. At most 20 characters.
email.narro_sendsbooleanTrue when Narro sent (or is sending) this email to the founder as well.
email.program_namestringYour program's name, as it appears in Narro's version of the email. At most 200 characters.
email.recipientobjectWho the email is for, as your roster knows them. Present for every founder on your roster.
email.recipient.emailstringThe program email you gave Narro for this founder. Send to this address. At most 254 characters.
email.recipient.first_namestringThe founder's first name on your roster. Present when the roster has the name in parts (first_name and last_name). At most 40 characters.
email.recipient.last_namestringThe founder's last name on your roster. Present with first_name. At most 40 characters.
email.recipient.member_idstringYour own id for the founder (the id on your roster). At most 128 characters.
email.recipient.namestringThe founder's name on your roster. At most 200 characters.
email.subjectstringThe subject line. At most 300 characters.
email.template_idstringThe id of the Narro template. At most 120 characters.
email.template_versionstringThe version of the template. At most 20 characters.
email.textstringThe plain text body, as Narro sends it. E-mail addresses and phone numbers inside it are masked, as in every webhook. At most 24000 characters.
email.typestringThe email type, for example founderPortalIntroductionStatus. The subtype of this event. At most 80 characters.
messagestringStatus message for connection notices (partner.suspended, partner.killed). At most 300 characters.
object_idstringPublic id of the object the event is about. At most 40 characters.
statestringAt most 40 characters.

Verify the signature

  1. Read the raw body, before any JSON parsing. The signature covers the exact bytes.
  2. Take the timestamp from Narro-Timestamp. Reject it unless it is within 5 minutes of your clock, in either direction. That stops replays of an old capture.
  3. Compute the lowercase hex HMAC-SHA256 of timestamp + "." + rawBody with your signing secret.
  4. Compare it, in constant time, with every v1 value in Narro-Signature. Accept if any one matches any secret you still hold.
  5. Check the event id against the ones you have handled.

Node

// verify-webhook.mjs. Depends only on node:crypto.
import { createHmac, timingSafeEqual } from 'node:crypto';

const TOLERANCE_SECONDS = 300; // reject a timestamp more than 5 minutes from now, in either direction

function header(headers, name) {
  const wanted = name.toLowerCase();
  for (const [key, value] of Object.entries(headers)) {
    if (key.toLowerCase() === wanted) return Array.isArray(value) ? value[0] : value;
  }
  return undefined;
}

function parseSignature(value) {
  const out = { t: null, v1: [] };
  for (const part of String(value || '').split(',')) {
    const at = part.indexOf('=');
    if (at < 1) continue;
    const key = part.slice(0, at).trim();
    const item = part.slice(at + 1).trim();
    if (key === 't' && out.t === null) out.t = item;
    else if (key === 'v1' && /^[0-9a-f]{64}$/i.test(item)) out.v1.push(item.toLowerCase());
  }
  return out;
}

// secrets: every signing secret you still hold (the new one and, during a rotation overlap, the old one).
// rawBody: the exact request body as a string or Buffer, before any JSON parsing.
export function verifyWebhook({ secrets, headers, rawBody, now = Date.now() }) {
  const parsed = parseSignature(header(headers, 'Narro-Signature'));
  if (parsed.v1.length === 0) return { ok: false, reason: 'missing_signature' };
  const stamped = header(headers, 'Narro-Timestamp');
  const timestamp = String(stamped === undefined ? parsed.t : stamped).trim();
  if (!/^\d{9,11}$/.test(timestamp)) return { ok: false, reason: 'invalid_timestamp' };
  if (Math.abs(now / 1000 - Number(timestamp)) > TOLERANCE_SECONDS) return { ok: false, reason: 'timestamp_out_of_tolerance' };
  const text = Buffer.isBuffer(rawBody) ? rawBody.toString('utf8') : String(rawBody);
  let matched = false;
  for (const secret of secrets) {
    const expected = createHmac('sha256', secret).update(timestamp + '.' + text, 'utf8').digest('hex');
    for (const candidate of parsed.v1) {
      const a = Buffer.from(candidate, 'utf8');
      const b = Buffer.from(expected, 'utf8');
      if (a.length === b.length && timingSafeEqual(a, b)) matched = true; // no early exit
    }
  }
  if (!matched) return { ok: false, reason: 'signature_mismatch' };
  return { ok: true, eventId: header(headers, 'Narro-Event-Id') || null };
}
import express from 'express';
import { verifyWebhook } from './verify-webhook.mjs';

const app = express();
const seen = new Set(); // use a database in production: deduplicate on the event id

// The raw body is required: the signature covers the exact bytes Narro sent.
app.post('/narro/webhook', express.raw({ type: 'application/json' }), (req, res) => {
  const result = verifyWebhook({
    secrets: [process.env.NARRO_WEBHOOK_SECRET],
    headers: req.headers,
    rawBody: req.body,
  });
  if (!result.ok) return res.status(400).end();

  const event = JSON.parse(req.body.toString('utf8'));
  if (event.type === 'endpoint.verification') {
    return res.json({ challenge: event.challenge }); // the registration challenge
  }
  if (seen.has(event.id)) return res.status(200).end(); // a retry or a replay: already handled
  seen.add(event.id);
  // Hand the event to your own queue here, then answer fast.
  res.status(200).end();
});

app.listen(3000);

Python

# verify_webhook.py. Depends only on the standard library.
import hashlib
import hmac
import re
import time

TOLERANCE_SECONDS = 300  # reject a timestamp more than 5 minutes from now, in either direction


def _parse_signature(value):
    out = {"t": None, "v1": []}
    for part in (value or "").split(","):
        key, sep, item = part.partition("=")
        key, item = key.strip(), item.strip()
        if not sep or not key:
            continue
        if key == "t" and out["t"] is None:
            out["t"] = item
        elif key == "v1" and re.fullmatch(r"[0-9a-fA-F]{64}", item):
            out["v1"].append(item.lower())
    return out


def verify_webhook(secrets, headers, raw_body, now=None):
    """secrets: every signing secret you still hold. raw_body: the exact request body as bytes."""
    lower = {key.lower(): value for key, value in headers.items()}
    parsed = _parse_signature(lower.get("narro-signature"))
    if not parsed["v1"]:
        return {"ok": False, "reason": "missing_signature"}
    stamped = lower.get("narro-timestamp")
    timestamp = str(stamped if stamped is not None else parsed["t"]).strip()
    if not re.fullmatch(r"\d{9,11}", timestamp):
        return {"ok": False, "reason": "invalid_timestamp"}
    current = time.time() if now is None else now
    if abs(current - int(timestamp)) > TOLERANCE_SECONDS:
        return {"ok": False, "reason": "timestamp_out_of_tolerance"}
    matched = False
    for secret in secrets:
        signed = timestamp.encode("utf-8") + b"." + raw_body
        expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
        for candidate in parsed["v1"]:
            if hmac.compare_digest(candidate, expected):
                matched = True  # no early exit
    if not matched:
        return {"ok": False, "reason": "signature_mismatch"}
    return {"ok": True, "event_id": lower.get("narro-event-id")}
import json
import os

from flask import Flask, request

from verify_webhook import verify_webhook

app = Flask(__name__)
seen = set()  # use a database in production: deduplicate on the event id


@app.post("/narro/webhook")
def narro_webhook():
    raw = request.get_data()  # the exact bytes, before any parsing
    result = verify_webhook([os.environ["NARRO_WEBHOOK_SECRET"]], dict(request.headers), raw)
    if not result["ok"]:
        return "", 400
    event = json.loads(raw)
    if event.get("type") == "endpoint.verification":
        return {"challenge": event["challenge"]}  # the registration challenge
    if event["id"] in seen:
        return "", 200  # a retry or a replay: already handled
    seen.add(event["id"])
    # Hand the event to your own queue here, then answer fast.
    return "", 200

Return 400 for a failed check and do not say why. The failure reasons in the samples are for your logs.

Secret rotation

  • Rotate from the Webhooks, with two-step verification. A new secret is shown once. A secret is never shown again after that: if you lose it, rotate it.
  • The previous secret keeps signing during an overlap, 24 hours by default. In that time each delivery carries two v1 values, new first. A receiver that holds either secret verifies it.
  • Add the new secret to your receiver, rotate, and remove the old secret after the overlap. Hold both while the overlap is open, and the samples above already accept a list of secrets.

Retries, failed deliveries and replay

A delivery that does not get a 2xx within 10 seconds is retried. The waits are 1 minute, 5 minutes, 30 minutes, 2 hours, 12 hours and 24 hours, with a little jitter. That is 7 attempts in all. Each attempt is signed again with a new timestamp. The body and the event id never change.

Your answerWhat Narro does
Any 2xxThe delivery is done.
3xxA failure. Narro does not follow redirects.
Other 4xx, 5xx, or no answer in 10 secondsA failure. Retried on the schedule.
410 GoneThe endpoint is disabled at once and the owner is notified.
  • After the last failed attempt the delivery goes to the failed list, which keeps it for 14 days. The Hub shows it with the reason and the times, never the body.
  • Replay. You can replay events from the last 7 days from the Webhooks or with POST /webhook-events/{id}:replay. A replay sends the stored body with the same event id. The endpoint must be enabled first.
  • GET /webhook-events lists recent events and their delivery state. The delivery log is kept for 30 days.

Auto-disable

An endpoint that fails 50 times in a row, or fails continuously for 24 hours, is disabled. Narro notifies the partner Owner, and the deliveries still waiting go to the failed list. To recover, fix the endpoint, resume it in the Webhooks so it passes the challenge again, then replay the failed events.

Idempotency

The event id is the idempotency key. It is in the body, in Narro-Event-Id and in Idempotency-Key. A retry or a replay never changes it. Record the ids you have handled, and when an id comes again, answer 2xx and do nothing. Keep them at least as long as the replay window.

Founder emails

One setting on the Founder emails page decides who sends each email to your founders, per email type, with one default for all at once:

ChoiceWhat happens
Narro sendsThe default. Narro emails your founders in your program's name, with your program's branding. Nothing to build.
You send themNarro sends nothing. Your server gets a signed founder.email webhook with the full payload: the recipient, the subject, the text and HTML, the links and the facts the email is built from, so you send it from your own provider, in your own voice.
Both (advanced)Narro sends, and your server also gets the webhook, for a copy in your CRM for example.
  • Program emails come first: the founder's intro request was placed, accepted, declined or expired (intro.placed, intro.accepted, intro.declined, intro.expired). They need no key scope. Narro account emails, for founders who linked a Narro account and consented, need founder_emails.read.
  • Choosing You send them subscribes your verified endpoints to founder.email. With no verified endpoint, Narro keeps sending those emails for you so no founder is left without one, and the page shows a warning.
  • recipient.email is the program email on your roster, the one contact a webhook does not mask. Greet with recipient.first_name when your roster has the name in parts, else recipient.name.
  • idempotency_key is the same for the same email across retries and replays: pass it to your email provider so a repeat never sends twice. Retries and replay are the usual webhook ones above.
  • Sign-in and verification links, password and email changes, two-step codes, security notices, and billing, legal and support emails always come from Narro and are never sent to a webhook.
  • In the sandbox, choose You send them for one email type and press Send a test email event: Narro delivers a signed sample for a made-up founder and shows the payload and your endpoint's answer.

The intro placed email, as your endpoint receives it when you send it yourself:

{
  "schema_version": "standard.v1",
  "id": "evt_<event-id>",
  "type": "founder.email",
  "occurred_at": "2026-11-10T15:04:05Z",
  "cohort_id": "coh_<your-cohort-id>",
  "founder_ref": "fdr_<founder-ref>",
  "data": {
    "email": {
      "type": "programIntroPlaced",
      "category": "intro",
      "subject": "Your intro request was placed (Sample Ventures) - Example Accelerator",
      "text": "Your interest has been placed (Sample Ventures). Example Accelerator will update you as soon as there is news.",
      "html": "<p>Your interest has been placed (Sample Ventures). Example Accelerator will update you as soon as there is news.</p>",
      "html_included": true,
      "links": [{ "label": "Open your pipeline", "url": "https://<your-site-origin>/pipeline" }],
      "link_handling": "partner",
      "template_id": "narro.founder_email.programIntroPlaced",
      "template_version": "1",
      "locale": "en",
      "env": "sandbox",
      "delivery_mode": "partner_only",
      "narro_sends": false,
      "founder_id": "fdr_<founder-ref>",
      "recipient": {
        "member_id": "EX-1042",
        "name": "Ada Sample",
        "first_name": "Ada",
        "last_name": "Sample",
        "email": "ada.sample@sandbox.invalid"
      },
      "program_name": "Example Accelerator",
      "cohort_name": "Spring cohort",
      "event": "intro.placed",
      "idempotency_key": "evt_<event-id>",
      "data": {
        "intro_id": "int_<intro-id>",
        "status": "submitted",
        "status_label": "Request sent",
        "target_name": "Sample Ventures"
      }
    }
  }
}

Sending it from your verified handler:

// Inside your verified webhook handler (see Verify the signature): send the email with your own provider.
// The idempotency_key is the same across retries and replays, so a repeat never sends twice.
export async function onFounderEmail(event, sendEmail) {
  if (event.type !== 'founder.email') return;
  const email = event.data.email;
  const hello = email.recipient.first_name ? 'Hi ' + email.recipient.first_name : 'Hello';
  await sendEmail({
    to: email.recipient.email, // the program email on your roster
    subject: email.subject, // or write your own from email.data
    text: hello + ',\n\n' + email.text,
    html: email.html_included ? email.html : undefined,
    idempotencyKey: email.idempotency_key,
  });
}
PreviousEndpointsNextEvents

Home · Sign in

On this page

How delivery worksRegister an endpointHeadersEventsPayloadVerify the signatureSecret rotationRetries, failed deliveries and replayAuto-disableIdempotencyFounder emails