API reference (index)

Public base: https://api.withohm.dev/v1. OpenAI-compatible chat is the primary contract.

Essentials

AreaEndpoints / notes
ChatPOST /v1/chat/completions — BYOK, optional X-Ohm-Cache-Tree, path headers
Cache treesGET/POST /v1/cache/trees, .../reset, .../promote, .../freeze
API passthroughReceipted third-party business-API calls — see Architecture
Session receiptGET /v1/sessions/{id} — one signed receipt aggregating a whole X-Ohm-Session
UsageGET /v1/usage
SavingsGET /v1/savings — always estimate_only
HonestyGET /v1/public/honesty
StatsGET /v1/public/stats
HealthGET /health, GET /ready
JWKS/.well-known/http-message-signatures-directory

Headers that matter

  • Authorization: Bearer sk-at-… — legacy prefix; brand is Metrecept. A sk-ohm- cutover is planned and will be announced before rename.
  • X-Ohm-Cache-Tree — named inventory (header wins over body cache_tree)
  • X-Ohm-Path — cost-center / path attribution
  • Provider BYOK headers per Quickstart

Examples