API Keys
How to obtain and configure API keys
MCPeek API keys are organization-scoped and used for ingest + metrics access. This section documents the exact key behavior enforced by dashboard and API services.
How to get a key
- 1. Open Dashboard
- 2. Create subscription (Pro plan required)
- 3. Go to Settings
- 4. Open the API Keys tab
- 5. Create a key (owner/admin, Pro plan required)
- 6. Copy key immediately (shown once)
| Description |
|---|
| API keys are managed in Dashboard > Settings > API Keys. |
| Only organization owner/admin can create keys. |
| Pro subscription is required for API key creation. |
| Full key is shown exactly once at creation time. |
How keys are used
- 1. validate events sent to ingest api
- 2. request metrics from analytics api (same key can be used for both ingest and analytics)
Secret handling
Use server-side secret injection. Avoid embedding long-lived production keys in public bundles.