Skip to content

HTTP API Reference ​

All CritterWatch HTTP endpoints are implemented using Wolverine.HTTP and mounted under /api/critterwatch/*. UseCritterWatch() maps them on a standalone console, and UseCritterWatchEmbedded() maps the same set on an embedded one.

The HTTP API is for reads. Operator commands — replaying or discarding dead letters, pausing a listener, acknowledging an alert, editing a scheduled message, pausing a recurring schedule — travel over the SignalR hub at /api/messages, not over HTTP. See SignalR Integration. A handful of older mutating routes remain for scripts and CI tasks that cannot hold a SignalR connection; they are listed under Remaining POST routes.

Bus-only queries don't appear here

The on-demand lookups for endpoint configuration, handler properties, handler source code, and HTTP-chain OpenAPI are bus queries, not HTTP endpoints — they go from the CritterWatch console to the monitored service over the message bus and the response comes back the same way. They live on the Inbound Commands page (RequestEndpointProperties, RequestMessageHandlerProperties, RequestHandlerSourceCode, RequestHttpChainOpenApi). If you're looking for an HTTP equivalent, there isn't one — invoke the matching command record over your transport.

Services ​

GET /api/critterwatch/services ​

Returns all monitored services as ServiceSummary documents, with their capabilities, agent roster, endpoint and broker health, ingest state and recurring-schedule state merged back in. A service parked over the licensed service cap is still listed, and marked as such.

Response: ServiceSummary[]

json
[
  {
    "id": "trip-service",
    "label": "Trip Service",
    "wolverineVersion": "6.54.0",
    "communicationUri": "rabbitmq://queue/trip-service-control",
    "tenancy": "None",
    "nodes": { ... },
    "agents": { ... },
    "messages": [ ... ],
    "messagingEndpoints": [ ... ]
  }
]

Shard progression is not part of this payload. Read it from the shard-progression routes below.

GET /api/critterwatch/services/{serviceName} ​

Returns a single service by name, in the same shape. 404 when the console has no such service.

Per-service reads ​

RouteReturns
GET /services/{serviceName}/agentsThe service's agent roster, loaded on demand by the Service Details and Node Detail pages.
GET /services/{serviceName}/shard-progressionProjection shard rows, paged (skip, take) and filtered (storeUri, databaseIdentifier, tenantId, baseName).
GET /services/{serviceName}/shard-progression/summaryThe header tiles and roll-ups for the Operations view, computed on the server.
GET /services/{serviceName}/shard-progression/healthShard health verdicts, for the "needs attention" view.
GET /services/{serviceName}/projection-rollupOne row per projection, rolled up across its shards.
GET /services/{serviceName}/high-water-loopsEach node's high water detection loops, for High Water Detection.
GET /services/{serviceName}/unplaced-agentsAgents no node had room for. 204 when there are none.
GET /services/{serviceName}/message-store-configuration?store=One message store's configuration, from the service's capabilities.

All routes in these tables are relative to /api/critterwatch.

Dead letters ​

Querying, replaying, discarding, editing, archiving and restoring dead letters are SignalR commands (DlqOperation). The HTTP routes read what those operations did, and the fleet-wide failure groups.

GET /api/critterwatch/dlq/operations ​

The recent replay, discard, edit-and-replay, archive and restore operations, newest first — the data behind the Operations tab on the Dead Letters page.

Query parameters: limit (default 25, at most 200)

Response: an array of operations:

json
[
  {
    "id": "6f0c1d1e-…",
    "type": "Replay",
    "serviceName": "trip-service",
    "services": ["trip-service"],
    "parameters": { "messageType": "TripService.Messages.BookTrip" },
    "reason": "Downstream API restored",
    "initiatedBy": "jane@example.com",
    "channel": "Console",
    "client": null,
    "startedAt": "2026-10-25T09:14:02Z",
    "status": "CompletedWithFailures",
    "databases": 6,
    "answered": 6,
    "failed": 1,
    "affected": 112,
    "lastAnsweredAt": "2026-10-25T09:14:05Z",
    "perService": [
      { "serviceName": "trip-service", "databases": 6, "answered": 6, "failed": 1, "affected": 112 }
    ],
    "failures": [
      { "serviceName": "trip-service", "database": "postgresql://db3/trips", "error": "…" }
    ]
  }
]
  • status is Running, Completed, CompletedWithFailures, Unconfirmed or Cancelled (an operator cancelled it and every database has answered: the ones already running finished, the rest did nothing). An operation nothing has answered for ten minutes reads Unconfirmed, not failed. A service on a Wolverine.CritterWatch client older than 1.1 runs the operation but never reports an outcome, so its operations end there.
  • databases is null until the service has announced which databases the operation runs against.
  • affected is null when any database did not report a count. Null means "not reported", never 0.
  • channel is Console, Mcp, System or Unknown; client names the MCP client when there is one.

GET /api/critterwatch/dlq/groups ​

Dead letters as groups across the fleet — the data behind the Dead Letters page's failure groups. The console asks each service, merges every database's and every service's answer on the server, and returns each group with its count, first and last failure, what it spans and the operators' note. Every service's answer says how many of its databases answered, and a partial read is flagged rather than shown as complete. A service on a Wolverine.CritterWatch client older than 1.1 is grouped by exception type and flagged.

Query parameters: grouping (FailureGroup by default, or MessageType, Endpoint, ExceptionType; an unknown value is a 400), service, from, to, tenant, messageType, exceptionType, and archived=true to group the archived dead letters instead.

GET /api/critterwatch/dlq/operations/{id}/refailures ​

After a replay of a failure group, how many of its dead letters failed again: those replayed since the replay started and dead-lettered once more (needs the replay history Wolverine 6.54 records). 404 for an unknown operation; 400 for an operation that was not a replay of a failure group.

Projections and rebuild batches ​

RouteReturns
GET /rebuildsRebuild batches.
GET /rebuilds/{batchId}One batch and its per-tenant / per-database cells.
POST /rebuildsStarts a rebuild batch. Body: serviceName, projectionName, optional storeUri, tenantId, allTenants. Needs projection.rebuild.

Alerts ​

RouteReturns
GET /alertsEvery active alert, newest first.
GET /alerts/historyThe 100 most recently resolved alerts.
GET /alerts/service/{serviceName}One service's active alerts.
GET /alerts/remediationThe remediation catalog: which console actions answer each alert type.
GET / PUT /alerts/config/metrics/defaultsGlobal metrics thresholds.
GET / PUT /alerts/config/metrics/services/{serviceName}One service's metrics thresholds.
PUT /alerts/config/metrics/services/{serviceName}/baselinesOne service's declared baselines.
GET /alerts/config/metrics/services/{serviceName}/baselines/historyThe baseline history.
GET / PUT /alerts/config/projections/defaultsGlobal projection thresholds.
GET / PUT /alerts/config/projections/services/{serviceName}One service's projection thresholds.
GET / PUT /alerts/config/projections/shards/{serviceAndShard}One shard's override.
GET / PUT /alerts/config/transport/defaultsGlobal transport thresholds.
GET / PUT /alerts/config/transport/services/{serviceName}One service's transport thresholds.
GET / POST /alerts/config/historyThe alert-configuration change history.

Acknowledge, snooze and clear are SignalR commands (AcknowledgeAlert, SnoozeAlert, ClearAlert). POST /alerts/{alertStreamId}/clear remains for scripts.

Timeline, audit log and conversations ​

RouteQuery parameters
GET /timelineservice, category, severity, limit, eventTypes (comma-separated)
GET /audit-logservice, action, targetUri, channel (Console, Mcp, System, Unknown), limit (default 100). Needs a license tier with the audit log. See Audit Log.
GET /conversations/recentlimit (default 50), search (a service or message type, or a conversation, correlation, trace or message id, over every retained conversation), service
GET /conversations/by-typemessageType, limit (default 25)
GET /conversations/{conversationId}— (the id may be a conversation, correlation, trace or message id)

GET /timeline answers 503 with a problem body and a Retry-After header while the console is building a missing timeline index on PostgreSQL, instead of scanning the whole table. The body names the indexes, and GET /system-health reports the build. See the upgrade notes.

Event Model and specifications ​

RouteReturns
GET /event-modelThe fleet's assembled Event Model. The console's own slices are left out unless you pass ?includeConsole=true.
GET /lifecycle/{typeName}The lifecycle of one aggregate or saga type across the fleet.
GET /spec-evidenceBobcat specification runs, read from the configured evidence source.

Document Explorer state ​

These hold what the console remembers for the Document Store Explorer. Both need documents.read when permissions are wired. Saving goes over SignalR.

RouteQuery parameters
GET /documents/filtersservice, type — the saved and recent filters for one document type
GET /documents/column-layoutservice, type — the grid's column layout for one document type

Saga state ​

Both need sagas.read on the service when permissions are wired, and both are audited. They answer from the same reader as the MCP list_saga_instances / get_saga_instance tools. The body is { "value": …, "failure": … }: exactly one is set, and a failure (ExplorerDisabled, NotFound, NoResponse, ServiceUnknown, …) is never an empty list.

RouteQuery parameters
GET /services/{serviceName}/sagas/instancessagaType, count (1–100, default 20) — a bounded peek at an arbitrary set of instances in the service's saga storage. Add where, orderBy, arguments (a JSON array) or page and it is a query run by the storage, answered with totalCount and abilities; a criterion the storage refuses is a CriteriaRefused failure, and a service without the saga-query feature is refused the same way
GET /services/{serviceName}/sagas/instancesagaType, identity — one instance's state, executed messages, spans, pending timeouts and outstanding message types, with readAt

Metrics and tracing ​

RouteReturns
GET /throughput-seriesBucketed throughput for the dashboard trend chart. serviceName (omit for the fleet total), hours (1–168, default 24), bucketMinutes (5–1440, default 60).
GET /metrics/data-sourcesRegistered metrics data sources.
GET /metrics/data-source-bindingsEvery service's metrics data-source binding.
GET / PUT / DELETE /metrics/data-source-bindings/{serviceName}One service's binding. PUT body: { "dataSourceId": "…" }.
GET /tracing/providersRegistered trace providers.
GET /tracing/providers/{id} and /tracing/providers/{id}/healthOne provider, and whether it answers.
GET /tracing/bindingsEvery service's trace-provider binding.
GET / PUT / DELETE /tracing/bindings/{serviceName}One service's binding. PUT body: { "providerId": "…" }.
GET /tracing/services/{serviceName}/trace/{traceId}One trace.
POST /tracing/recentRecent traces matching a query.

Notification channels ​

Route
GET /notifications/channelsList channels.
POST /notifications/channelsCreate one. Body: name, type (Slack, Discord, MSTeams), webhookUrl, isEnabled, alertSeverities.
PUT /notifications/channels/{id}Replace one. Same body.
DELETE /notifications/channels/{id}Delete one.
POST /notifications/channels/{id}/testSend a test notification.

Console information ​

RouteReturns
GET /aboutVersion information, and the update check's result.
GET /licenseThe license tier and which features it enables.
GET /settings/retentionThe effective retention settings and the configuration section each binds from. Read-only.
GET /ingest-healthEvery ingest listener with its depth, and whether the console is applying telemetry.
GET /system-healthThe console's own component health — see below.

GET /api/critterwatch/system-health ​

The console's own component health — not the health of monitored services. Console subsystems that detect they are broken (e.g. the metrics sample storage when its table schema cannot be reconciled) mark themselves degraded here with an actionable reason, instead of failing silently behind anonymous 500s.

Response:

json
{
  "status": "degraded",
  "components": [
    {
      "component": "metrics-store",
      "status": "healthy",
      "reason": null,
      "changedAtUtc": "2026-11-06T13:43:58.839272+00:00"
    },
    {
      "component": "timeline-indexes",
      "status": "degraded",
      "reason": "Building the missing timeline index(es) mt_doc_timelineentry_idx_service_nametimestamp in the background; ...",
      "changedAtUtc": "2026-11-06T13:43:58.847125+00:00"
    }
  ],
  "timelineIndexes": {
    "state": "building",
    "buildMode": "background",
    "expected": ["mt_doc_timelineentry_idx_timestamp", "mt_doc_timelineentry_idx_service_nametimestamp"],
    "missing": ["mt_doc_timelineentry_idx_service_nametimestamp"],
    "buildStartedAt": "2026-11-06T13:43:58.846399+00:00",
    "buildCompletedAt": null,
    "buildSeconds": null,
    "error": null
  }
}

status is "healthy" when no component is degraded.

timelineIndexes says whether the timeline's two indexes exist, as the console last read the catalog. state is present, building, failed (with error), unknown for the first moments of a boot, or unmanaged on an embedded console, which manages none of its schema. buildMode is background on PostgreSQL, which builds concurrently while the console serves, and atStartup on SQL Server and SQLite, which build before it does. After a build, buildSeconds is how long it took. The same state also feeds the critterwatch-system ASP.NET Core health check, so hosts that call MapHealthChecks(...) report Degraded through their standard health endpoint. See the upgrade notes for the schema migration that motivated this surface.

The console also maps /health/live and /health/ready — outside /api/critterwatch. Point an orchestrator's liveness probe at /health/live, never at /. See Probing the CritterWatch console itself.

Remaining POST routes ​

These predate the rule that commands travel over SignalR. Each one turns the request into the same command the console relays from the browser, so the license, RBAC and audit checks are the same.

RouteSends
POST /projections/{serviceName}/pause, /restart, /rebuildPauseProjection, RestartProjection, RebuildProjection. Body: { "agentUri": "…", "tenantId": null }.
POST /projections/{serviceName}/rewindRewindSubscription.
POST /projections/{serviceName}/dead-lettersRequestProjectionDeadLetters.
POST /tenants/{serviceName}/addAddTenant. Body: { "tenantId": "…", "connectionString": "…" }.
POST /tenants/{serviceName}/{targetTenantId}/disable, /enable, /remove, /hard-deleteThe matching tenant command.
GET /tenants/{serviceName}RequestTenantList — the answer arrives over SignalR, not in the response.
POST /agents/{serviceName}/thresholdsPushAgentThresholds. Needs config.edit.
POST /alerts/{alertStreamId}/clearClears an alert. Body: { "clearedBy": "…" }.
POST /chaos/{serviceName}/…Chaos-monkey controls for the sample services: enable, disable, failure-rate/{rate}, projection-failure-rate/{rate}, projection-poison, projection-poison/clear, seed-dead-letters/{count}, slow-handler/{delayMs}.

These answer with an empty 200 once the command is published. What the service did arrives as telemetry or over SignalR, as it does for a command sent from the browser.

Authentication ​

The HTTP API does not ship with built-in authentication. Add ASP.NET Core authentication and authorization middleware in front of UseCritterWatch(); an embedded console takes UseCritterWatchEmbedded(configureEndpoints: b => b.RequireAuthorization("ops")), which applies your policy to the UI, this API and the SignalR hub. When a host registers an ICritterWatchAuthorizer, routes marked with a capability are checked against it: see Role-based access control.

Response Format ​

All responses use application/json with camelCase property names. Enums are written as strings, but the casing depends on the route:

  • Routes that return a typed result write camelCase names ("inProgress", "failureGroup").
  • Routes that write through the console's store serializer write the C# member name ("CompletedWithFailures"): /services, /services/{serviceName} and its /agents, /high-water-loops, /shard-progression (with /summary and /health) and /projection-rollup reads, /dlq/operations, /audit-log and /event-model.

Compare enum values case-insensitively.