> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API catalog

> A current map of MoleSignal HTTP API families and the protecting permissions or scopes.

All product APIs use the `/api/v1` prefix unless noted. This catalog groups the current route
families; individual recipe pages document common requests.

| Family                 | Representative paths                                                                                                                | Purpose                                                                                                    |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Health                 | `/healthz`, `/readyz`, `/version`, top-level `/metrics`                                                                             | Liveness, readiness, build, and Prometheus metrics.                                                        |
| Authentication         | `/auth/signin`, `/auth/signup`, `/auth/tokens`, `/auth/sso/*`                                                                       | Sessions, API tokens, OIDC, and SAML.                                                                      |
| Home & onboarding      | `/home/overview`, `/onboarding/sample-data`, `/instance`                                                                            | Workspace activation, first-data bootstrap, and public instance discovery.                                 |
| IAM                    | `/iam/permissions`, `/iam/capabilities`, `/iam/role-bindings`, `/roles`, `/users`, `/teams`, `/orgs`                                | Capability catalog, identities, memberships, and workspace selection.                                      |
| Preferences & settings | `/workspace/preferences`, `/settings/*`, `/billing/*`                                                                               | Personal preferences, workspace defaults, runtime policy, and supported billing configuration.             |
| Intake                 | `/intake/{type}/{stream}`, `/logs`, `/metrics`, `/traces`, compatibility receivers                                                  | Native JSON, OTLP HTTP, and protocol-compatible intake.                                                    |
| Query                  | `/query`, `/query/stream`, `/query/jobs`, `/query/running`                                                                          | SQL, PromQL, streaming, async jobs, and cancellation.                                                      |
| APM                    | `/apm/overview`, `/apm/services`, `/apm/transactions`, `/apm/dependencies`, `/apm/errors`                                           | Trace-derived service RED metrics, transactions, dependencies, errors, deployments, and projection health. |
| Exploration metadata   | `/metrics/catalog`, `/log_patterns`, `/annotations`                                                                                 | Metric discovery, reusable log patterns, and time-bound annotations.                                       |
| Streams                | `/streams`, `/streams/{id}`, `/streams/{id}/settings`                                                                               | Stream lifecycle and runtime settings.                                                                     |
| Dashboards             | `/dashboards`, `/folders`, `/dashboards/variables/resolve`                                                                          | Dashboards, folders, and variables.                                                                        |
| Alerting               | `/alerts/rules`, `/alerts/incidents`, `/schedules`, `/alerts/mutes`, `/notify/connectors`, `/notify/policies`, `/notify/deliveries` | Detection, response, on-call, and notifications.                                                           |
| Data processing        | `/functions`, `/scheduled_pipelines`, `/connectors`, `/extend_tables`                                                               | Transforms, pipelines, sinks, and enrichment.                                                              |
| Reports                | `/scheduled_reports`, `/report_templates`                                                                                           | Report content, schedules, preview, and delivery history.                                                  |
| Files & artifacts      | `/files/download`, `/files/stream/{token}`                                                                                          | Scoped download-token creation and streamed artifact delivery.                                             |
| RUM                    | `/rum/*`, `/rum/sessions/*`, `/debug-artifacts`                                                                                     | Browser and mobile telemetry, replay, errors, related traces, source maps, and native symbols.             |
| Profiles               | `/profiles`, `/profiles/intake`, `/profiles/flamegraph`, `/profiles/diff`                                                           | Profile intake, download, flame graphs, and comparisons.                                                   |
| Web correlation        | `/web/search`, `/web/topology`, `/web/trace/*`, `/web/correlation/*`                                                                | Product search and cross-signal views.                                                                     |
| Sharing                | `/resource_shares`, `/public/share/*`, top-level `/s/{token}`                                                                       | Authenticated, cross-org, and restricted public shares.                                                    |
| Security & governance  | `/audit`, `/cipher_keys`, `/regex_patterns`, `/auth/jwt/*`, `/domains`                                                              | Audit search, encryption, reusable patterns, signing-key rotation, and managed domains.                    |
| Cluster operations     | `/clusters`, `/clusters/{id}/org_map`, `/node/drain`                                                                                | Remote clusters, organization mapping, node visibility, and graceful drain.                                |
| Agent                  | `/agent/chat`, `/agent/investigations`, `/agent/automations`, `/agent/approvals`, `/agent/settings/*`                               | Mole Agent, evidence, workflow, provider, prompt, tool, and MCP control.                                   |
| Commercial control     | `/marketplace/*`, `/model_prices`                                                                                                   | Marketplace, trial or billing integration, and model-cost catalog.                                         |
| Platform system        | `/system/platform-admins`, `/system/telemetry`, `/system/license`, `/system/audit`                                                  | Protected `_sys` administration.                                                                           |

## Authorization model

An endpoint can require:

* an organization permission such as `streams.query` or `alerts.manage`;
* a platform permission such as `sys.telemetry.read`;
* a feature entitlement such as `agent`;
* resource-level ownership or a relationship/grant;
* a public share session restricted to one resource.

Do not infer authorization from a display role. Query `/api/v1/iam/capabilities` for the effective
permission and feature snapshot.

## Source of truth

The maintained OpenAPI file lives at `molesignal/docs/api/openapi.yaml`. Some rapidly evolving
families have more routes in `src/api/http/routes/` than the compact OpenAPI overview. When the two
differ, the server route and handler contract are authoritative and the documentation should be
updated in the same change.

<Card title="API introduction" icon="code" href="/en-US/api-reference">
  Review base URLs, bearer authentication, pagination, errors, and request conventions.
</Card>
