Narro docs
Loading…
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 key | Live key | |
|---|---|---|
| Prefix | narro_pk_test_ | narro_pk_live_ |
| Environment | Sandbox. | Live. |
| Cohort | Your sandbox cohort, which mirrors your cohort with synthetic founders. It cannot reach real founders. | Your real cohort, through the same paths. |
| Scopes | Every partner scope (24), roster and codes included. See Authentication. | The scopes Narro set for your program. |
| How many | One at a time. Replacing it ends the old one at once. | Up to 5 active live keys, each with its own name. |
| Secret | Can 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 it | An Owner, Admin or Developer. | An Owner or Admin. |
| Billing | Free. | Priced per request, paid with a plan or a funded balance. See Pricing and billing. |
| Works | As 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.
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.
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.
| Status | Hub label | What it means | Does the key work? |
|---|---|---|---|
not_active | Not active | A 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. |
pending | Pending | The live key was submitted for go-live when you created it and waits for a Narro reviewer. | No. |
under_review | Under review | A Narro reviewer is looking at your request. | No. |
changes_requested | Changes requested | The reviewer left notes. Update your integration and resubmit. | No. |
active | Active | The 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. |
suspended | Suspended | Narro paused the key. The reason shows only as a generic category. | No, until Narro restores it. |
revoked | Revoked | The key was revoked and cannot be used again. | No. Final. |
expired | Expired | The key reached the end of its life, or a rotation overlap ended. | No. Final. |
active_test | Active (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.