Narro docs
Loading…
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.
POST to your HTTPS endpoint. Any 2xx answer acknowledges it.occurred_at to order events about the same object.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"]
}'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.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.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>"
}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| Header | Value |
|---|---|
Narro-Signature | t=<unix seconds>,v1=<hex>. During a secret rotation there is one v1 per live secret, newest first. |
Narro-Timestamp | Unix seconds when this attempt was signed. The same value as t in the signature. |
Narro-Event-Id | The event id, evt_.... Deduplicate on it. |
Idempotency-Key | The same value as Narro-Event-Id. |
Narro-Schema-Version | The contract, standard.v1, the same for every program. |
Content-Type, User-Agent | application/json and Narro-Webhooks/1. |
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.| Event | Sent when | data usually carries |
|---|---|---|
account.provisioned | A founder's Narro account was created or linked after sign in. | account_ref, state |
deliverable.status_changed | A submission changed review state. | object_id, state |
event.added | You added one of your own events (POST /events). | object_id, state |
event.changed | One of your own events changed (PATCH /events/{id}). | object_id, state |
founder.deleted | A founder's data was deleted. The last event for that founder. | Nothing beyond the envelope |
founder.email | An 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_ready | A 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.offboarded | A founder was offboarded: sessions, codes and tokens are revoked. | Nothing beyond the envelope |
intake.processed | An intake document finished its scan: accepted, or rejected. | object_id, state |
intro.requested | A founder submitted an intro request. | object_id, state |
intro.state_changed | An intro request moved to a new base state. | object_id, state |
intro.status_changed | An intro request moved to a new public status. | object_id, state |
key.status_changed | One of your keys changed status. message carries the generic reason category. | object_id, state, message |
matches.published | A founder got a first set of matches. | state, count |
matches.updated | A founder's matches changed. | state, count |
partner.killed | The partner connection was switched off. A final notice, sent once. | state, message |
partner.suspended | The partner connection was suspended. A final notice, sent once. | state, message |
query.completed | A query finished. | object_id, state |
registration.cancelled | A founder's event registration was cancelled. | object_id, state |
registration.created | A founder was signed up for an event, or moved off a waiting list. | object_id, state |
version.deprecation_notice | A 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.
{
"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"
}
}| Field | Type | Required | Notes |
|---|---|---|---|
cohort_id | string | No | Public id starting coh_. |
founder_ref | string | No | Public founder reference only. Public id starting fdr_. |
id | string | Yes | Deduplicate on this id. Public id starting evt_. |
occurred_at | string (date-time) | Yes | ISO 8601 date-time with a UTC offset. At most 40 characters. |
schema_version | string | Yes | Required in every request and response body. Always "standard.v1". |
type | string | Yes | One of the events above. New values can be added. Tolerate unknown values. |
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.
| Field | Type | Notes |
|---|---|---|
account_ref | string | Public id starting acc_. |
count | integer | 0 to 100000. |
deprecation | object | |
deprecation.deprecation_at | string (date-time) | ISO 8601 date-time with a UTC offset. At most 40 characters. |
deprecation.major | integer | 1 to 99. |
deprecation.migration_url | string (uri) | At most 2048 characters. |
deprecation.sunset_at | string (date-time) | ISO 8601 date-time with a UTC offset. At most 40 characters. |
email | object | The founder email. Only on founder.email events. |
email.category | string | intro, meeting, pipeline, network, message, updates, program, event or onboarding. At most 20 characters. |
email.cohort_name | string | The founder's cohort. At most 200 characters. |
email.data | object | The 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_mode | string | partner_only: Narro did not email the founder, you send it. both: Narro also sent it. At most 12 characters. |
email.env | string | sandbox or live: the mode of the founder's cohort. At most 8 characters. |
email.event | string | The moment that sent the email, for example intro.placed. At most 80 characters. |
email.founder_id | string | The public founder id the email is for. Public id starting fdr_. At most 40 characters. |
email.html | string | The HTML body, as Narro sends it. Present only when html_included is true. At most 24000 characters. |
email.html_included | boolean | False when the HTML was switched off in the Hub, or is longer than 19,000 characters (then use the text). |
email.idempotency_key | string | The 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_handling | string | narro: the links are Narro's own. partner: links that pointed at Narro's portal point at your platform. At most 10 characters. |
email.links | array of object | The action links in the email, in order. At most 20 items. |
email.locale | string | The language of the email. At most 20 characters. |
email.narro_sends | boolean | True when Narro sent (or is sending) this email to the founder as well. |
email.program_name | string | Your program's name, as it appears in Narro's version of the email. At most 200 characters. |
email.recipient | object | Who the email is for, as your roster knows them. Present for every founder on your roster. |
email.recipient.email | string | The program email you gave Narro for this founder. Send to this address. At most 254 characters. |
email.recipient.first_name | string | The 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_name | string | The founder's last name on your roster. Present with first_name. At most 40 characters. |
email.recipient.member_id | string | Your own id for the founder (the id on your roster). At most 128 characters. |
email.recipient.name | string | The founder's name on your roster. At most 200 characters. |
email.subject | string | The subject line. At most 300 characters. |
email.template_id | string | The id of the Narro template. At most 120 characters. |
email.template_version | string | The version of the template. At most 20 characters. |
email.text | string | The 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.type | string | The email type, for example founderPortalIntroductionStatus. The subtype of this event. At most 80 characters. |
message | string | Status message for connection notices (partner.suspended, partner.killed). At most 300 characters. |
object_id | string | Public id of the object the event is about. At most 40 characters. |
state | string | At most 40 characters. |
Narro-Timestamp. Reject it unless it is within 5 minutes of your clock, in either direction. That stops replays of an old capture.timestamp + "." + rawBody with your signing secret.v1 value in Narro-Signature. Accept if any one matches any secret you still hold.// 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);# 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 "", 200Return 400 for a failed check and do not say why. The failure reasons in the samples are for your logs.
v1 values, new first. A receiver that holds either secret verifies it.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 answer | What Narro does |
|---|---|
Any 2xx | The delivery is done. |
3xx | A failure. Narro does not follow redirects. |
Other 4xx, 5xx, or no answer in 10 seconds | A failure. Retried on the schedule. |
410 Gone | The endpoint is disabled at once and the owner is notified. |
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.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.
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.
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:
| Choice | What happens |
|---|---|
| Narro sends | The default. Narro emails your founders in your program's name, with your program's branding. Nothing to build. |
| You send them | Narro 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. |
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.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.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,
});
}