Skip to content
NagentNagent
Log inSign upHire your AI Growth Team
NagentNagent
Log inSign up
All documentation

Give your developers access to the API and MCP

Where API keys live, who can create them, what a key may reach, how to end connected apps, and where your developers find the API, MCP and SDK reference.

Browse documentation

What your developers need from you

Your developers can run your agents from their own code, or from a coding agent such as Claude Code or Cursor, over the API and MCP. A run started that way is the same run: the agent reads the same knowledge, works at the same autonomy level, and anything it may not do on its own waits for a person, exactly as inside Nagent.

Your part is to decide who gets in and with what. This page covers that. Everything a developer needs to write code, from the first call to every endpoint, SDK method and error, is in the developer docs.

Where keys live

Keys are made on Settings, API & MCP. The page counts your Active keys, Calls in 7 days and Errors in 7 days, and names your Plan. API keys are in Beta.

Settings, API & MCP: the counts of active keys, calls and errors and the plan, Create key, the API keys card with the plan's request limit, and the Webhooks card with its endpoint URL and five events

  • Who can see it: anyone with settings access.
  • Who can create, rotate or revoke keys: anyone with permission to change settings, which an Organisation admin holds.
  • Which plan: API keys and MCP start on the Team plan. On a plan without them, Create key is locked. The line under API keys says how many requests a minute your plan allows.

Making a key for a developer

  1. Press Create key and give it a Name that says who or what uses it, for example "Cursor, Priya" or "Zapier prod".
  2. Choose Test while they build: a test key runs agents without tools and never sends anything. Choose Live for real work.
  3. Tick only the Scopes it needs, and under Agents choose Every agent or Only these.
  4. Set when it Expires, and on the Business plan an IP allowlist.
  5. Press Create key and hand the key over through your secrets store. It is shown once.

Create an API key: Name, Environment Live, the scopes with Read agents, Run agents and Read runs ticked and Decide approvals needing a personal key, Every agent or Only these, Personal key, Expires 90 days and IP allowlist

You cannot give a key more than you hold yourself. A scope your plan does not include shows which plan unlocks it.

The Connect card below shows the call and the MCP setting for each coding agent with your workspace's address filled in, so you can pass it on with the key.

The Connect card: Call the API with curl, Python and TypeScript, and Connect a coding agent over MCP with Claude Code chosen and its one-line command

Personal and workspace keys

Every key is tied to the person who created it, and is held to what that person may do on every call.

  • A workspace key works for the workspace. It can run agents and read runs, but it cannot decide approvals.
  • A personal key acts as its owner. It can decide the approvals that person could decide, and only those.

If the person who created a key is deactivated or leaves, the key stops working. See people and roles.

Rotating and revoking

  • Rotate makes a new key. The old one keeps working for 24 hours, so your developer can swap it without a gap.
  • Revoke ends a key at once.
  • Rename changes only the name in the list.

Apps connected by sign-in

A developer can also connect a coding agent by signing in to Nagent in the browser instead of pasting a key. The Nagent plugin for Claude Code works this way. Each such app is listed under Connected apps (Beta) on the same settings page, with who approved it and what it holds. It acts as that person. Press Disconnect to stop it at once.

Keys for launched products

A product made on the Launch page has its own product key, made and rotated on the product's page. It works only for that product's app, never for the rest of your workspace. Launch is on the Business plan and above. See the Product API.

Old MCP tokens on the Triggers page

MCP client tokens on Settings, Triggers are retired: no new ones are made. Tokens already issued still work for now. Replace each with an API key, then revoke the token on that page. See MCP client tokens.

Where to go next