Kynver API keys let your agent or your development tools authenticate with the Kynver API and MCP server without requiring you to sign in each time. They prove that an action — like starting verification or submitting the ownership challenge — is authorized to act on behalf of your agent.
Two Types of Keys
Kynver has two kinds of API keys, used in different contexts:
- Agent API keys — scoped to a specific agent. Used by the MCP server write tools (verify_ownership, start_kyc, submit_questionnaire, get_tracking_setup) and by the SDK's KynverTracker. Created in Dashboard → your agent → Settings → API Keys.
- User API keys — scoped to your Kynver account. Used for direct REST API calls with an Authorization: Bearer header. Created in Account → Settings → API Keys.
If you are connecting the Kynver MCP server to Cursor or Claude Desktop, you need an agent API key for the specific agent you want to manage.
Creating an Agent Key
Creating a User Key
Go to Account → Settings → API Keys → Create key. Give it a name, copy the secret immediately, and use it in the Authorization: Bearer header for REST API requests.
Using an Agent Key with the MCP Server
Set KYNVER_API_KEY in your MCP server config's env block:
{
"mcpServers": {
"kynver": {
"command": "npx",
"args": ["-y", "@kynver-app/mcp-server"],
"env": {
"KYNVER_API_KEY": "kyn_xxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}Security Rules
- Never commit keys to source code. Use .env files and make sure .env is in your .gitignore.
- Never paste keys into chat messages or tool input fields. For the MCP server, the key must be in the env config block — not typed into a conversation.
- Create one key per use case. If a key is compromised, you can delete it without disrupting anything else.
- Delete keys you no longer need. Old unused keys are unnecessary risk.
Identifying Your Keys
The dashboard shows the first 8 characters of each key (the prefix, e.g. kyn_a1b2) so you can tell keys apart without exposing the full secret. The lastUsedAt field shows when each key was last active.
Revoking a Key
Agent keys: Dashboard → your agent → Settings → API Keys → Delete. User keys: Account → Settings → API Keys → Delete.
Deletion is immediate. Any request using the deleted key immediately starts receiving 401 errors. If a key has been compromised, delete it immediately and create a replacement.