Ir al contenido

API Keys & Trace Routing

Esta página aún no está disponible en tu idioma.

API keys authenticate your system when sending traces to Mibo. You need one before you send your first trace.

Keys belong to a workspace. You manage them in Settings, on the API keys tab. Only the workspace owner can manage them.

Open the verification link in the browser you signed up with. If you open it elsewhere, Mibo asks you to choose a new password and earlier API keys stop working. See Email verification.

Until the workspace owner verifies their email, Mibo stores the traces your keys send but does not evaluate them. See Passive testing for how held traces are evaluated after verification.

  1. Open Settings

    Click Settings in the sidebar. The API keys tab opens.

  2. Choose an expiry

    In Expiry, choose Never, 30 days, 90 days, 365 days, or Custom date. A custom date must be within one year. The default is Never. Choose an expiry for keys that run in short-lived environments.

  3. Create the key

    Click Create API key.

  4. Copy the key

    The full key appears under Workspace key created. Copy it and store it securely. Then click Done, I’ve saved it.

A workspace key sends traces for every Agent in the workspace, including Agents created later. Keys created before this setup can be limited to selected Agents. The list shows those keys with Restricted to selected agents.

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).

Include the key in the x-api-key header when making requests:

Terminal window
curl -X POST "https://api.mibo-ai.com/public/traces" \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "x-request-id: chat-001" \
-d '{ "serviceName": "support-bot", "spans": [{ "span_id": "s-1", "name": "Support Agent", "attributes": { "gen_ai.operation.name": "chat", "gen_ai.request.model": "gpt-4o-mini", "gen_ai.input.messages": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"When does my order ship?\"}]}]", "gen_ai.response.text": "Your order ships on Friday." } }] }'

serviceName names the Agent that receives the trace. Mibo uses the Agent with that service name, or creates it. If you omit it, a workspace key uses the workspace’s only active non-demo Agent. With no such Agent or several, the request fails with 400 SERVICE_NAME_REQUIRED. A restricted key that matches no allowed Agent fails with 400 CUSTOM_API_PLATFORM_NOT_FOUND. If creating the Agent would exceed your plan’s Agent limit, the request fails with 403 AGENT_LIMIT_REACHED. The trace is held pending unless the pending limit is reached. To get the Agent, upgrade your plan or archive an Agent, then send another trace for it, then assign tests.

Rotate a key before it expires, or when you suspect it leaked.

  1. Click Create a new key. The new key appears under Workspace key created.
  2. Update your exporters with the new key.
  3. Click Revoke key on the older key, then confirm in Revoke API key.

While two keys are active, the create form is hidden until you revoke one.

When a trace arrives, Mibo resolves its target differently for each ingestion path:

Path How Mibo selects the agent What the key scope does
Your API A key limited to one agent selects it. Otherwise, send serviceName, the same name as OTLP service.name, or use the n8n workflow identity. With no identifier, a workspace key uses the workspace’s only active non-demo Agent. platformId is an optional advanced override. The key must allow the selected agent.
OTLP A single-agent key selects that Agent. Other keys match service.name to an allowed Agent’s Service name. A workspace key creates an Agent for a new service name. It can fall back to the only active non-demo Agent when service.name is unconfigured.

A missing service name without a single-Agent scope or fallback returns 400 OTLP_SERVICE_NAME_REQUIRED. A restricted key with a configured name and no matching Agent returns 400 OTLP_PLATFORM_NOT_FOUND. A multi-Agent key cannot use the fallback.

Click Revoke key on the key card, then confirm in Revoke API key. Exporters using the key stop sending traces, and they start getting authentication errors.

  • Don’t share keys across environments. Create separate keys for staging and production, so you can revoke one without affecting the other.
  • Set an expiry for short-lived integrations. The list warns you when a key is about to expire. Create its replacement before then.

With your API key configured, your system can start sending traces.