Opsmeter logo
Opsmeter
AI Cost & Inference Control
Integration docs

Developer Docs

Find what caused your AI bill. Ship telemetry fast with provider-agnostic LLM cost tracking and token-and-cost attribution.

Updated for 2026API v1GitHub

n8n integration

Use workspace status booleans directly in n8n If nodes. No string casting is required.

Fieldn8n use
isPlanLimitReachedPause or reroute telemetry pipelines.
telemetryPausedShow clear operator message in Slack/Discord/email.
isBudgetWarningSend early warning notification.
isBudgetExceededTrigger escalation flow.
severitySingle branch key (normal/warning/critical).

Status check workflow (example)

  1. HTTP Request node calls GET /v1/diagnostics/workspace-status with X-API-Key.
  2. If node checks $json.telemetryPaused and $json.isBudgetExceeded.
  3. Slack/Discord/email nodes notify the correct channel.
{
  "method": "GET",
  "url": "https://api.opsmeter.io/v1/diagnostics/workspace-status",
  "headers": {
    "X-API-Key": "YOUR_WORKSPACE_API_KEY"
  }
}

Ingest branch for 402

Provider calls should continue. Branch only telemetry behavior when ingest returns 402.

if ($json.statusCode === 402 && $json.body.reason === "plan_limit_reached") {
  // pause telemetry retries; notify owner/admin
}

Ready-to-import templates: n8n workflow templates.