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/Keys

Keys

A program key belongs to one cohort of one program. It is a partner key: it stays on your server and calls the API at the base below.

Test and live keys

Test keyLive key
Prefixnarro_pk_test_narro_pk_live_
EnvironmentSandbox.Live.
CohortYour sandbox cohort, which mirrors your cohort with synthetic founders. It cannot reach real founders.Your real cohort, through the same paths.
ScopesEvery partner scope (24), roster and codes included. See Authentication.The scopes Narro set for your program.
How manyOne at a time. Replacing it ends the old one at once.Up to 5 active live keys, each with its own name.
SecretCan be seen in the Hub at any time, and is in the SETUP.md the Hub gives you.Shown once, when the key is made. Lost it? Create a new live key and revoke the old one.
Who creates itAn Owner, Admin or Developer.An Owner or Admin.
BillingFree.Priced per request, paid with a plan or a funded balance. See Pricing and billing.
WorksAs soon as it is made.Only when its status is Active, inside its network scope, and while your live use is covered.

Both are used the same way: Authorization: Bearer to https://api.thenarro.com/programs/v1, with no signature. Your .env holds the same two names for both, NARRO_PROGRAMS_API_KEY and NARRO_PROGRAMS_API_BASE_URL, so going live is swapping the key value. No second factor is asked for to create, rotate or replace a key, sandbox or live, unless your org turned on a second factor for every member. See Authentication.

How a key is issued

  • Sandbox key. Press Create sandbox key in Programs setup or Keys at any time: an Owner, Admin or Developer can, and no second factor is asked for. Turning the Programs API on never makes a key by itself. The key is bound to your sandbox cohort. Its secret is kept encrypted, so you can see it again in the Hub whenever you need it, and the setup file carries it. A sandbox key made before this change cannot be shown again: replace it once and the new one can. Making a new one replaces the old one at once.
  • Live key. An Owner or Admin presses Create live key. Before the first one, your org accepts the Partner Program Terms, the Data Processing Agreement and the Founder Consent Terms, once, with one checkbox in the same step (read them at partner.thenarro.com/terms). No two-step verification is needed, unless your org requires a second factor for every member. Give the key a name. The key is made at once, for your live cohort, and its secret is shown once: store it in your secret manager. When the go-live essentials are done it is submitted for go-live in the same call. See Go live.
  • A live key can carry allowed origins and IP ranges it may be used from. They are optional. A live key with no allowed origins cannot hold the widget scope, and a live key with no origins and no IP ranges lives 90 days. See Key scoping.

Format and the other API

A key secret is narro_pk_test_ or narro_pk_live_, then random characters and a short checksum. Treat it as opaque. Each key also has a public id, such as key_live_7F3K-9Q2M-X (key_live_ or key_test_, two groups of four characters and a check character). The id is not the secret: it shows in the Hub, in GET /ping and in support requests. Your code never needs it. Older keys keep the ids they were made with.

Same prefix as the Data APIA Data API partner key uses the same two prefixes. The prefix does not tell the two apart. Each API checks a key only against its own keys: a Programs API key sent to the Data API is refused as unauthorized, and a Data API key sent here is refused the same way. Keep them under different names in your secret manager. See Developers.

Key status

The Hub shows the status of each key. A key that is not Active, or Active (test), is refused with a generic not-permitted answer.

StatusHub labelWhat it meansDoes the key work?
not_activeNot activeA live key made before the go-live essentials were done, so it was not submitted. Finish what the Hub lists, then request go-live.No. Requests get one generic not-permitted answer.
pendingPendingThe live key was submitted for go-live when you created it and waits for a Narro reviewer.No.
under_reviewUnder reviewA Narro reviewer is looking at your request.No.
changes_requestedChanges requestedThe reviewer left notes. Update your integration and resubmit.No.
activeActiveThe key is approved and live (narro_pk_live_), by a reviewer or at once when self-serve approval is on for your org.Yes, within its scopes and network scope, while your live use is covered by a plan or a funded balance.
suspendedSuspendedNarro paused the key. The reason shows only as a generic category.No, until Narro restores it.
revokedRevokedThe key was revoked and cannot be used again.No. Final.
expiredExpiredThe key reached the end of its life, or a rotation overlap ended.No. Final.
active_testActive (test)A sandbox test key (narro_pk_test_). Synthetic data only.Yes, on your sandbox cohort.

You can read the status of your own keys with GET /partner/keys/{key_ref}/status (scope keys.status.read), and Narro sends key.status_changed when it changes. See Webhooks.

Expiry

  • A key has a limited life: 90 days by default, and at most 365. A live key with no allowed origins and no IP ranges lives 90 days. The expiry date shows in Keys.
  • Narro reminds you 14 days before a key expires.
  • An expired key is final and answers like any other key that is not allowed.

Rotation and replacement

  • A live key has no self-serve rotation. An Owner or Admin asks for one in Keys, with no second factor unless your org requires one, and a Narro key administrator issues the replacement. A sandbox key is replaced in place, at once.
  • The replacement has the same scopes, uses, cohort, environment and network scope, and a new secret, shown once. A live replacement keeps the approved go-live state.
  • A rotation keeps the old key and its secret working for an overlap, 7 days by default, which Narro can set from 1 to 30 days. Switch inside that window. Then the old key expires and stops working at that moment.
  • A replacement that Narro makes after a leak is different: it revokes the old key at once, with no overlap. Several replacements in one day also need a second Narro administrator to approve them.
  • Webhook signing secrets rotate on their own, with their own overlap. See Webhooks.

Revocation

  • Narro reads the status of a partner key on every request, so a revoked, replaced or expired key stops working on its next request.
  • Widget tokens and founder tokens minted by that key stop working within seconds: the revocation view they depend on is cached for at most 15 seconds by default, and never more than 60.
  • If a key leaks, do not wait. Ask for a replacement in Keys and say it leaked. See Go live.
PreviousAuthenticationNextKey scoping

Home · Sign in

On this page

Test and live keysHow a key is issuedFormat and the other APIKey statusExpiryRotation and replacementRevocation