---
title: "Receive Metrics"
method: POST
path: "/v1/metrics"
tags: ["otel"]
---

# Receive Metrics

`POST /v1/metrics`

Ingest content-free coding-agent outcome metrics from OTLP metric points.

Records the outcome counters a coding agent reports on the metrics signal and
that Otari has no other source for: lines of code changed, commits, pull
requests, and active time. Points are stored exactly as reported, with their
OTLP series identity, so a cumulative counter is turned into an increment at
read time rather than re-counted on every export. Metrics that duplicate an
already-recorded signal (token/cost usage, already billed; edit decisions,
already captured as behavioral events) are skipped, as is any metric name this
gateway does not know, so a newer agent version never breaks reception.

Outcome metrics are never billable: they touch no budget and no spend. Capture
answers to the same ``capture_agent_telemetry`` toggle as behavioral events;
with it off, the export still succeeds and simply stores nothing.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.net/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/2d6e4912e230/schema)
