API Keys & Trace Routing
API keys authenticate your system when sending traces to Mibo. You need at least one to use passive testing.
Each project can have multiple API keys. Keys can be unrestricted (access all platforms in the project) or scoped to specific platforms.
Creating an API key
Section titled “Creating an API key”-
Open your project
Go to the project you want to create a key for.
-
Go to API Keys
Click API Keys in the project navigation.
-
Create a new key
Click Create API Key. Give it a descriptive name, for example, “Production Traces” or “n8n Integration.”
-
Scope the key (optional)
By default, a key has access to all platforms in your project. If you want to restrict it, select specific platforms. A restricted key can only send traces to the platforms you choose.
-
Copy the key
The full key is shown only once at creation. Copy it and store it securely. You won’t be able to see it again.
Key format
Section titled “Key format”API keys follow this format: mibo_<random-string>. When listed in the dashboard, keys are masked as mibo_...xxxx (only the last 4 characters are visible).
Using API keys
Section titled “Using API keys”Include the key in the x-api-key header when making requests:
curl -X POST "https://api.mibo-ai.com/public/traces" \ -H "Content-Type: application/json" \ -H "x-api-key: mibo_your_key_here" \ -d '{ "data": { "input": "...", "output": "..." } }'Platform scoping
Section titled “Platform scoping”When you restrict a key to specific platforms:
- Traces sent with that key can only target the allowed platforms.
- If the key is restricted to a single platform, Mibo automatically routes traces to that platform, so you don’t need to include a
platformIdin every request. - If the key is restricted to multiple platforms, you must specify which platform each trace belongs to via
platformIdin the request body, or usemetadata(e.g.,{ "chatflowId": "abc" }for Flowise,{ "workflowId": "xyz" }for n8n) so Mibo can resolve it automatically.
An unrestricted key can target any platform in the project, but Mibo needs to know which one each trace is for.
Revoking a key
Section titled “Revoking a key”Click the revoke button next to any key to permanently delete it. Revoked keys stop working immediately, and any system using that key will start getting authentication errors.
Best practices
Section titled “Best practices”- Name your keys descriptively: use names like “Production n8n” or “Staging Traces” so you know what each key is for.
- Use restricted keys when possible. Scoping a key to specific platforms limits the blast radius if the key is compromised.
- Don’t share keys across environments. Create separate keys for staging and production.
- Monitor last used dates. If a key hasn’t been used in a while, consider revoking it.
What’s next
Section titled “What’s next”With your API key configured, your system can start sending traces. See the Platform Guides for platform-specific trace setup, and the Trace Format Reference for exact data structures.