For the complete documentation index, see llms.txt. This page is also available as Markdown.

OTel

Receive Logs

post

Ingest LLM usage from OTLP log events (Claude Code, Codex, or GenAI logs).

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json
anyOptional
post/otlp/v1/logs
POST /otlp/v1/logs HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

No content

Receive Metrics

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json
anyOptional
post/otlp/v1/metrics
POST /otlp/v1/metrics HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

No content

Receive Traces

post

Ingest LLM usage from OTLP spans (GenAI semantic conventions).

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json
anyOptional
post/otlp/v1/traces
POST /otlp/v1/traces HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

No content

Last updated

Was this helpful?