Skip to main content

๐Ÿ”‘ Keys in a team

A key is how your own software reads the team's knowledge. Each key is read-only, scoped to one knowledge set, rate-limited, and billed to the team. This page explains the model, then walks through minting one, calling it, and revoking it.

For whoever writes the integration~10 minutesOne HTTP call
๐Ÿ’ก

What a key is

๐Ÿ’กThe 30-second version. A key is a password for a program, not a person. It can search one knowledge set, ask it a question, and export its items โ€” nothing else. It cannot write, it cannot reach another team's knowledge, and it disappears the moment you revoke it.

๐Ÿค–Who uses it

Your warehouse tool, support desk, internal search, a scheduled job, or an LLM connected over MCP. Anything that is not a signed-in person.

๐Ÿ“šWhat it can read

One knowledge set โ€” the rooms bound to it. Not the whole team, and never a room that is not bound.

๐ŸšซWhat it cannot do

Write, delete, publish, or change anything. There is no write scope to grant, by design.

๐Ÿ’ณWho pays

The team. Every call is metered to the account that owns the knowledge, exactly like the team's AI and its website chatbot.

Keys are not seats, and not chatbots

ThingWho or what it is for
SeatA person on the roster, with admin rights. Not a credential.
KeyA program. Read-only, scoped, revocable, rate-limited.
ChatbotAn anonymous website visitor, through a widget token.
Room membershipWhether a person may enter a room. A key never grants rooms.
๐Ÿ—บ๏ธ

Where keys live

Home Room โ†’ Teams โ†’ pick a team โ†’ Settings โ†’ Connections

Keys are listed per knowledge set, because that is what they are scoped to. A team with two sets has two key sections, and a key in one cannot read the other.

On the pageWhat it tells you
LabelYour own name for the key โ€” โ€œWarehouse toolโ€, โ€œZendeskโ€. Use it.
ScopesWhat the key may do: search & info, ask, export.
LimitCalls per hour, enforced on the token itself.
CallsHow many requests it has made.
Last usedThe quickest way to spot a key nothing uses any more.
RevokeKills it immediately. The next call fails.
โ„น๏ธAdmin-only. The Connection settings page requires an ADMIN seat. A member can use the team's rooms, but cannot mint a credential for them.
๐ŸŽฏ

Why teams issue them

1

Your knowledge, in your tools

A support agent should see the same answers your website chatbot gives. A key lets your own software ask the team's knowledge instead of a second copy of it.

2

Scoped by default

One key reads one set. If it leaks, the blast radius is that set โ€” and you can revoke it in one click.

3

Auditable

Calls and last-used dates are on the page. A key that nobody has used for months is a key you should revoke.

4

Billed where the knowledge is

Usage lands on the team that owns the set, not on whoever deployed the integration. That is the same payer rule as everywhere else.

๐Ÿงฐ

What a key can actually call

ScopeLets youSurface
Search & infoSearch the set and read what it contains.knowledge:read
AskGet a written answer with citations.query:invoke
Export itemsPull the approved items out, cursor-paginated.export:read

Three surfaces read the same knowledge: a REST answer endpoint, a REST export endpoint, and an MCP endpoint for tools that speak that protocol. All of them are read-only and all of them are metered.

โš ๏ธSend the key in the header, not the URL. Use Authorization: Bearer nec_โ€ฆ. A key in a URL ends up in access logs, referrers and error trackers.
๐Ÿญ

Worked example: Acme's warehouse tool

Acme Picnic Co. keeps its supplier terms in the Acme โ€” All Knowledge set. They want their warehouse tool to answer โ€œwhat is the lead time for hampers?โ€ from that set, without giving the tool any write access.

1

Make sure there is a set to read

Keys are per knowledge set. If the team has none, the Connection settings page says so and there is nothing to issue. Create the set and add rooms first โ€” see the knowledge tutorial.

2

Open Keys and fill in the form

Choose a label you will recognise in six months โ€” Acme warehouse tool, not โ€œtestโ€. Tick Search & info and Ask. Leave Export off unless the tool really needs the raw items.

3

Set a limit you can live with

Calls / hour defaults to 60. Set it to the tool's real burst, not to a round number that makes you feel safe โ€” a background sync and a human clicking a button need very different ceilings.

4

Optionally restrict by IP

Allowed IPs is an extra lock: if the caller's address is not on the list, the key is refused. It is abuse damping, not authentication โ€” a server-to-server caller can be behind anything. The key is the credential.

5

Copy it โ€” once

Press Create key. The plaintext appears once, in a panel, with an I have copied it button. It is stored hashed; nobody โ€” including an admin โ€” can read it again. If it is lost, revoke it and mint another.

6

Call it

A query is one authenticated POST with a JSON body:

curl -X POST https://notaelibrary.com/api/enterprise/corpus/query \
  -H "Authorization: Bearer nec_โ€ฆ" \
  -H "Content-Type: application/json" \
  -d '{"query":"What is the lead time for hampers?","limit":5}'

The answer comes back with the text, a confidence, the citations it used, and any cap status. If the answer is passages only, degraded is true โ€” that means a spend cap was reached, not that the request failed.

7

Watch it, then rotate it

The row shows calls and last-used. When a tool is retired, revoke its key the same day โ€” revocation is immediate, and a revoked key fails on the next request, not at the end of a billing period.

๐Ÿ’กOne key per tool, not one key for everything. Separating them is what makes revocation safe: retiring the warehouse tool should not break the support desk.
๐Ÿ’ณ

Cost and limits

Every authenticated call is metered to the team that owns the knowledge, on the same meter as its AI and its chatbot. The key does not have its own balance.

โฑ๏ธRate limit

Calls per hour, enforced durably on the key. A rejected call does not count as usage.

๐Ÿ“‰Spend caps

A team can set a monthly cap. At the ceiling the endpoint answers from retrieved passages and sets degraded, rather than failing the request.

๐Ÿท๏ธUnpriced calls

If a model has no pricing row, the call is recorded as unpriced โ€” honest, not free. The Spend report counts them separately.

๐ŸŒIP allowlist

Optional. Empty means any address, which is the normal case for a hosted integration.

๐Ÿ› ๏ธ

When something is wrong

โ€œThis team has no knowledge set yet.โ€

Keys are scoped to a set, so there is nothing to issue one for. Create a knowledge set and bind at least one room first.

401 Missing bearer token.

The key is not in the Authorization header. A key in the URL or a query string is not read.

403 Token lacks the query:invoke scope.

The key has read access but not โ€œAskโ€. Mint a key with that scope, or use the search endpoint if the scope is enough.

429, or โ€œrate limitedโ€.

The per-hour ceiling on the key was reached. Raise it in the key's row, or batch your calls โ€” the limit is on the key, not on the tool.

โ€œIP not allowedโ€.

The caller's address is not in the allowlist, or the allowlist entry is a hostname where an IP was expected. Clear the field to allow any address.

The key stopped working overnight.

It was revoked, or the set it reads was unbound / the team was deactivated. Check the row for โ€œrevokedโ€, then Settings โ†’ Rooms.

๐ŸŽฏ

The mental model, in five lines

  • 1. A key is a read-only credential for a program, scoped to one knowledge set.
  • 2. It can search, ask and export โ€” never write.
  • 3. It is shown once, stored hashed, and revocable immediately.
  • 4. Its usage is billed to the team and rate-limited on the key itself.
  • 5. One key per tool, so revoking one does not break another.
๐Ÿš€

Where to go next

Last verified against the code on 2026-11-25. If this page and the product disagree, the product is right โ€” tell us and the roadmap says what is not built yet.