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/Ask Narro

Ask Narro

A founder in your program asks Narro a question in their own words, inside your app, and gets the answer Narro's assistant would give them on thenarro.com. The answer is personalised to their company and read-only through the API.

What it is

Ask Narro answers open questions (advice, explanations, "how", "why", "what should I") from what Narro knows about this founder: their company profile, documents, investor and customer matches, network and earlier conversations. It never uses another founder's data, and an answer never contains a person's email address or phone number.

It is asynchronous and never times out on you. You send the question and get its id at once. A question always ends as answered, failed (with what to do next) or cancelled. It never ends as an error page.

It is read-only. Ask Narro answers; it does not change the founder's profile, send emails, request intros or file approvals. If the founder asks for a change, the answer says what to change and that they can do it in Narro. It does not read the founder's connected inbox or drive, and it does not answer about other founders.

The answers also appear in the founder's Narro chat on thenarro.com. There is one shared memory: Narro remembers what the founder told it in your app and on thenarro.com alike.

Who can ask

Ask Narro answers the founder, so it needs the founder token: Authorization: Bearer nft.1..., minted with POST /founder-tokens by a key with the queries.ask scope. A founder session or the ask widget works too. A partner key on its own can still ask list and search questions ("list my investors"), but an open question sent with only the partner key gets 403 founder_token_required. See Authentication.

Ask a question

Base: https://api.thenarro.com/programs/v1. text is the question, up to 500 characters. ref in a path is the founder's account ref (acc_...).

# Ask Narro answers the founder, so the bearer is the founder token your server minted (POST /founder-tokens), never the partner key.
# acc_<founder-ref> is the founder's account ref.
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries" \
  -H "Authorization: Bearer <founder-token>" \
  -H "Content-Type: application/json" \
  -d '{
  "schema_version": "standard.v1",
  "text": "How should I prepare for my first investor meetings?"
}'

You get one of two answers:

  • 200 with the answer, when it was ready within about 6 seconds.
  • 202 with the question id, its state (queued or working), the thread_id and retry_after_seconds. The Retry-After header says the same.
{
  "schema_version": "standard.v1",
  "id": "qry_<query-ref>",
  "state": "working",
  "intent": "ask_narro",
  "thread_id": "thr_<thread-ref>",
  "created_at": "2026-11-14T15:04:05.000Z",
  "retry_after_seconds": 3
}

An answer has answer_text, the full answer in Markdown (up to 8,000 characters): show this one. answer is the same answer as short plain statements, for clients that render statements.

{
  "schema_version": "standard.v1",
  "id": "qry_<query-ref>",
  "state": "answered",
  "intent": "ask_narro",
  "question": "How should I prepare for my first investor meetings?",
  "thread_id": "thr_<thread-ref>",
  "answer_text": "For Analytical Engines (seed, fintech, Toronto), open with ...",
  "answer": [{ "text": "For Analytical Engines (seed, fintech, Toronto), open with ...", "inference": true, "refs": [] }],
  "results": [],
  "suggestions": [],
  "created_at": "2026-11-14T15:04:05.000Z",
  "completed_at": "2026-11-14T15:04:31.000Z"
}

States

StateMeaningWhat to do
queuedAccepted and waiting to start. It also waits here while the founder's Narro assistant finishes another reply, or between automatic attempts.Poll after retry_after_seconds.
workingNarro is working on the answer. Most take seconds; research heavy ones can take a few minutes.Poll after retry_after_seconds, or wait for the webhook.
answeredThe answer is ready.Show answer_text.
failedNo answer this time. failure says why and what to do.Follow failure.next_step.
cancelledThe question was cancelled.Retry it if you still want the answer.

Get the answer

Use any of these. They all see the same answer.

  • Poll GET /founders/{ref}/queries/{id}. While the question is queued or working you get 202 with retry_after_seconds. When it is done you get 200 with the answer. Wait at least retry_after_seconds between polls.
  • Webhook query.completed. Narro sends it when the question is answered, failed or cancelled. Its data carries object_id (the question id) and state. Fetch the answer with the GET above. See Webhooks.
  • History GET /founders/{ref}/queries lists the founder's questions (see below).
A client timeout never loses the answer.If your request times out or your server restarts while a question is working, the work goes on. The answer is there the next time you poll or list.
// Your server, with the founder token it holds for this founder. The browser never sees the token.
const base = process.env.NARRO_PROGRAMS_API_BASE_URL;
const headers = { Authorization: 'Bearer ' + founderToken, 'Content-Type': 'application/json' };
const queries = base + '/founders/' + accountRef + '/queries';

export async function askNarro(text, threadId) {
  const body = { schema_version: 'standard.v1', text };
  if (threadId) body.thread_id = threadId;
  const res = await fetch(queries, { method: 'POST', headers, body: JSON.stringify(body) });
  const answer = await res.json();
  // 200 is an answer, 202 is still working. Anything else is an error body with a code.
  if (!res.ok && res.status !== 202) throw new Error(answer.code);

  // Wait for it. You can also stop here, keep answer.id, and wait for the query.completed webhook.
  let current = answer;
  while (current.state === 'queued' || current.state === 'working') {
    await new Promise((resolve) => setTimeout(resolve, (current.retry_after_seconds || 3) * 1000));
    current = await (await fetch(queries + '/' + answer.id, { headers })).json();
  }
  return current; // answered (answer_text), failed (failure.message, failure.next_step) or cancelled
}

const post = (id, action) => fetch(queries + '/' + id + ':' + action, { method: 'POST', headers }).then((res) => res.json());
export const cancelQuestion = (id) => post(id, 'cancel');
export const retryQuestion = (id) => post(id, 'retry');
export const regenerateQuestion = (id) => post(id, 'regenerate');

Cancel, retry, regenerate

CallWhat it does
POST .../queries/{id}:cancelStops a queued or working question. The answer is 200 with state: "cancelled". Narro stops the work too. A question that already finished comes back as it is.
POST .../queries/{id}:retryRuns a failed or cancelled question again under the same id. Answers like the ask: 200 with the answer, or 202 while it works. Any other state comes back as it is.
POST .../queries/{id}:regenerateA new answer to the same question in the same conversation, under a new id. regenerated_from names the earlier one.

None of the three takes a body. They honour an Idempotency-Key when you send one and do not need it.

# Poll: 202 while queued or working (wait retry_after_seconds), 200 when answered, failed or cancelled.
curl -sS -i "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries/qry_<query-ref>" \
  -H "Authorization: Bearer <founder-token>"

# Stop a queued or working question.
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries/qry_<query-ref>:cancel" \
  -H "Authorization: Bearer <founder-token>"

# Run a failed or cancelled question again under the same id.
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries/qry_<query-ref>:retry" \
  -H "Authorization: Bearer <founder-token>"

# A new answer to the same question, under a new id.
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries/qry_<query-ref>:regenerate" \
  -H "Authorization: Bearer <founder-token>"

Conversations and history

Every answer has a thread_id. Send it with the next question to ask a follow-up, and Narro answers with that conversation in mind. Without it a new conversation starts. A thread_id that is not this founder's gets 404 query_job_not_found.

GET /founders/{ref}/queries lists the founder's questions, newest first. A question still in progress is listed with its state and no answer yet. Filter with thread_id, and page with limit (1 to 100) and cursor (the next_cursor of the previous page).

# A follow-up: send the thread_id of an earlier answer.
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries" \
  -H "Authorization: Bearer <founder-token>" \
  -H "Content-Type: application/json" \
  -d '{
  "schema_version": "standard.v1",
  "text": "And what should I leave out of the deck?",
  "thread_id": "thr_<thread-ref>"
}'

# History: the founder's questions, newest first. thread_id, limit (1 to 100) and cursor are optional.
curl -sS "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/queries?thread_id=thr_<thread-ref>&limit=20" \
  -H "Authorization: Bearer <founder-token>"

# Feedback: a thumb on an answer ("up" or "down").
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/query/qry_<query-ref>/feedback" \
  -H "Authorization: Bearer <founder-token>" \
  -H "Content-Type: application/json" \
  -d '{ "schema_version": "standard.v1", "rating": "up" }'

Feedback

POST /founders/{ref}/query/{id}/feedback with rating up or down records the founder's thumb on an answer. It takes the founder token only.

When a question fails

A failed question is still a normal 200 answer, with state: "failed", a failure object and retry_after_seconds. failure.message is written for the founder, so you can show it as it is. Narro retries a passing failure once on its own before it reports failed.

{
  "schema_version": "standard.v1",
  "id": "qry_<query-ref>",
  "state": "failed",
  "intent": "ask_narro",
  "question": "How should I prepare for my first investor meetings?",
  "failure": {
    "code": "timed_out",
    "message": "Narro took longer than usual to answer this question. Ask again with Retry; complex questions can take a few minutes.",
    "next_step": "retry"
  },
  "retry_after_seconds": 30
}
failure.codeWhynext_step
timed_outThe answer took longer than the deadline (15 minutes from the start).retry
unavailableNarro could not answer just now (it already tried again for you), or the founder's assistant allowance is used up for now.retry, after retry_after_seconds
withheldA safety check held the answer back.rephrase
not_answerableThe founder's Narro account is still being set up.contact_support if it persists
interruptedThe work stopped before it finished.retry

next_step can also be complete_profile, when the founder's company profile needs fields first. Show the code and the next_step to the founder, and offer the matching button.

Other errors you may see on these routes: 400 query_too_large, 403 founder_token_required, 403 query_protected_field_requested, 403 query_rejected_unsafe, 404 query_job_not_found, 422 refused_out_of_scope and 429 rate_limited. A slow or failed answer is never an error: it is a state of the question. See Errors and retries.

Questions far from building and funding a company (weather, recipes, jokes, sports, politics, medical advice) get 422 refused_out_of_scope with suggested questions. Legal, tax, code and news questions are answered as general guidance personalised to the company, not advice from a professional.

Personalised answers

If the founder's company profile is missing fields Narro needs, the answer says so where it matters, and the result carries a notice. Show it next to the answer.

{
  "schema_version": "standard.v1",
  "id": "qry_<query-ref>",
  "state": "answered",
  "intent": "ask_narro",
  "answer_text": "Your company profile is missing industry and company stage, so parts of this answer are general ...",
  "notice": {
    "code": "company_profile_incomplete",
    "message": "The founder's company profile is missing industry, company_stage, so parts of this answer are general ...",
    "missing": ["industry", "company_stage"]
  }
}

Add the missing fields with PATCH /me/company (founder token) or the partner key company routes, then ask again. See Company profile and readiness.

Ask by voice

The founder can also talk to Ask Narro. Ask for a voice session with the founder token (or the ask widget token), then open the socket from the founder's browser. The audio goes straight from the browser to Narro and never passes through your servers. Spoken questions go through the same Ask Narro checks as typed ones, stay read-only, and appear in the founder's history and in their own Narro conversation.

# Ask Narro by voice: a single-use ticket for the founder's browser. The bearer is the founder token (or the ask widget token).
curl -sS -X POST "$NARRO_PROGRAMS_API_BASE_URL/founders/acc_<founder-ref>/voice-sessions" \
  -H "Authorization: Bearer <founder-token>"
{
  "schema_version": "standard.v1",
  "session_id": "vs_3f9a0c1b2d4e5f60718a",
  "websocket_url": "wss://api.thenarro.com/programs/v1/voice/stream",
  "ticket": "<single-use ticket>",
  "expires_at": "2026-11-15T18:04:12.000Z",
  "max_seconds": 600,
  "environment": "live",
  "sandbox": false,
  "protocol": "narro.voice.v1",
  "audio_input": "pcm16le;rate=16000;channels=1",
  "audio_output": "uint32le-generation+pcm16le;rate=24000;channels=1"
}

Within a minute, open websocket_url with ?ticket= from the founder's browser. The ticket works once. If the founder token is bound to an origin, the socket opens only from that origin. Send { "type": "hello" }, wait for ready, then stream the microphone as binary frames. Narro answers with binary audio, plus caption, transcript, state and ended frames. Send { "type": "end" } to finish; the session also ends at max_seconds, with a wrap_up frame shortly before.

// In the founder's browser. session is the VoiceSession your backend got for this founder.
// The audio goes from the browser straight to Narro, never through your servers.
function talkToNarro(session) {
  const ws = new WebSocket(session.websocket_url + '?ticket=' + encodeURIComponent(session.ticket));
  ws.binaryType = 'arraybuffer';
  const speaker = new AudioContext({ sampleRate: 24000 });
  let playAt = 0;
  let generation = 0;
  ws.onopen = () => ws.send(JSON.stringify({ type: 'hello' }));
  ws.onmessage = (event) => {
    if (typeof event.data === 'string') {
      const frame = JSON.parse(event.data);
      if (frame.type === 'ready') startMicrophone(ws);
      if (frame.type === 'flush') { generation = frame.generation; playAt = 0; } // the founder interrupted
      if (frame.type === 'transcript') console.log(frame.role, frame.text);
      return;
    }
    // Binary: a 4-byte little-endian generation, then 16-bit PCM at 24 kHz, mono.
    if (new DataView(event.data).getUint32(0, true) < generation) return;
    const pcm = new Int16Array(event.data.slice(4));
    const buffer = speaker.createBuffer(1, pcm.length, 24000);
    buffer.getChannelData(0).set(Float32Array.from(pcm, (v) => v / 32768));
    const source = speaker.createBufferSource();
    source.buffer = buffer;
    source.connect(speaker.destination);
    playAt = Math.max(playAt, speaker.currentTime);
    source.start(playAt);
    playAt += buffer.duration;
  };
  return () => ws.send(JSON.stringify({ type: 'end' }));
}

// The microphone as 16-bit little-endian PCM, 16 kHz, mono, in binary frames.
async function startMicrophone(ws) {
  const stream = await navigator.mediaDevices.getUserMedia({ audio: { channelCount: 1, echoCancellation: true } });
  const mic = new AudioContext({ sampleRate: 16000 });
  const worklet = 'registerProcessor("pcm", class extends AudioWorkletProcessor {' +
    ' process([input]) { const ch = input[0]; if (ch) this.port.postMessage(Int16Array.from(ch, (v) => Math.max(-1, Math.min(1, v)) * 32767).buffer); return true; } });';
  await mic.audioWorklet.addModule(URL.createObjectURL(new Blob([worklet], { type: 'application/javascript' })));
  const node = new AudioWorkletNode(mic, 'pcm');
  node.port.onmessage = (e) => { if (ws.readyState === WebSocket.OPEN) ws.send(e.data); };
  mic.createMediaStreamSource(stream).connect(node);
}
SituationAnswer
Live key, a daily voice limit reached429 voice_founder_daily_limit, voice_partner_daily_limit or voice_global_daily_limit, with retry_after (seconds to midnight UTC). Live keys get 15 minutes per founder and 300 per program each UTC day. Typed questions still work.
Voice switched off or not reachable503 voice_unavailable. Offer typing.
Test keyNo limits and no speech model. The socket answers { "type": "text", "text": "..." } frames with the sandbox's synthetic Ask Narro answer as caption and transcript frames; audio frames get one notice saying they are not transcribed.

Testing in the sandbox

With a test key, Ask Narro answers every question from the founder's synthetic sandbox data, without a model and at no cost. The states, shapes, webhooks, cancel, retry, regenerate, conversations and history are the same as live. There are no limits. Two markers in the question text let you exercise the slow and the failure paths:

Put in the questionWhat happens
[slow]The answer takes 20 seconds. The ask answers 202 working and polls answer 202 until it is ready. Cancel it to see cancelled.
[fail]The first attempt fails (failed, failure.next_step: "retry"). The retry call answers it.

See Sandbox.

Limits

Live: up to 100 questions a minute and 2,000 a day per founder, a safety ceiling on paid model use. Retries and regenerations count as questions. Over the ceiling you get 429 rate_limited with Retry-After. The sandbox has no limits. See Rate limits.

The endpoints

Each row links to the full section on Endpoints.

EndpointCredential and scopeParametersReturns
POST /founders/{ref}/queriesFounder token. Scope on the minting key: queries.askref (path). Body QueryRequestInput200 The answer to a question for a founder: 200 with the QueryResult when it is ready within about 6 seconds, else 202 with a QueryJob (id, state, thread_id, retry_after_seconds). Open questions are answered by Ask Narro with the founder token; a partner key alone gets 403 founder_token_required for them. The result also arrives by query.completed or GET on the query. It never confirms an action.
GET /founders/{ref}/queries/{query_ref}Founder token. Scope on the minting key: queries.askref (path), query_ref (path)200 The state and result of one query: 202 with retry_after_seconds while it is queued or working, 200 with the QueryResult when it is answered, failed (failure.code and next_step) or cancelled.
GET /founders/{ref}/queriesFounder token. Scope on the minting key: queries.askref (path), thread_id (query), limit (query), cursor (query)200 The founder's Ask Narro questions, newest first, as QueryResult items (one still in progress shows its state and no answer yet). Filter by thread_id. Supports limit and cursor.
POST /founders/{ref}/queries/{query_ref}:cancelFounder token. Scope on the minting key: queries.askref (path), query_ref (path)200 A queued or working question stopped: 200 with state cancelled. A question that already finished comes back as it is. No body.
POST /founders/{ref}/queries/{query_ref}:retryFounder token. Scope on the minting key: queries.askref (path), query_ref (path)200 A failed or cancelled question run again under the same id: 200 with the answer, or 202 while it works. Any other state comes back as it is. No body.
POST /founders/{ref}/queries/{query_ref}:regenerateFounder token. Scope on the minting key: queries.askref (path), query_ref (path)200 A new answer to the same question in the same conversation, under a new id (regenerated_from names the earlier one): 200 with the answer, or 202 while it works. No body.
POST /founders/{ref}/query/{id}/feedbackFounder session or founder token, Widget tokenref (path), id (path). Body QueryFeedbackInput200 An acknowledgement that the thumbs feedback was recorded for the answer.
POST /founders/{ref}/voice-sessionsFounder session or founder token, Widget tokenref (path)201 A single-use ticket to talk to Ask Narro by voice: 201 with websocket_url (a Narro address), ticket, expires_at (about a minute), max_seconds and the frame protocol. Open the socket from the founder's browser. No body.
PreviousCompany profile and readinessNextAuthentication

Home · Sign in

On this page

What it isWho can askAsk a questionStatesGet the answerCancel, retry, regenerateConversations and historyFeedbackWhen a question failsPersonalised answersAsk by voiceTesting in the sandboxLimitsThe endpoints