Repository navigation
Agents and API Keys
Saadamjad edited this page Jul 14, 2026
·
1 revision
Tenant (your account)
└── Agent "support-bot"
│ └── API key(s) scoped to support-bot only
└── Agent "cursor-agent"
│ └── API key(s) scoped to cursor-agent only
└── Tenant-wide API key (optional)
└── Can log to ANY agent name
When you Create agent on the dashboard:
- Agent row is created (e.g.
maria-agent) - First API key is created and bound to that agent
- Key only works for requests where
agent=maria-agent
Use case: One bot, one product, one integration (Cursor MCP, single app).
Open agent → API keys → New key
Agent page or Settings overview → trash icon. Revoked immediately.
Deletes agent + all events + all its keys. Cannot be undone.
Settings → Tenant-wide API key
- No agent scope (
agent_idis null) - One key can log to
conv-user1,conv-user2,sales-agent-xyz, etc. - Use when: your app generates dynamic agent names per user/session
Use case: zizka.ai productivity chat (conv-{userId} per user).
| Prefix | Status |
|---|---|
zizkadb_live_... |
Current managed-cloud keys |
agdb_live_... |
Legacy keys from AgentDB era — still work |
Keys are SHA-256 hashed server-side. Full key shown once at creation.
| Variable | Purpose |
|---|---|
ZIZKADB_API_KEY |
Preferred |
AGENTDB_API_KEY |
Legacy alias (same value) |
ZIZKADB_HOST |
Self-hosted API URL |
AGENTDB_HOST |
Legacy alias for host |
| Mistake | Result |
|---|---|
API=... instead of AGENTDB_API_KEY=
|
Key ignored |
| Space or line break in key | 401 Invalid API key |
Key for agent-A, code logs agent-B
|
403 Agent mismatch |
Only pm2 restart after .env change |
Stale baked env — run npm run build for Next.js apps |
Means no successful authenticated request hit the API with that key.
- 401 = key never reached server correctly
- 403 = key reached server but wrong agent name (may still update last_used)
- Settings Send test event uses JWT, not your API key, and logs to
dashboard-connection-test
Use Test agent on the agent page to verify that specific agent.
- Getting Started
- CONNECT.md — connect your stack
- Worked example 01
- Agents and API Keys
- Troubleshooting