Orqen Docs

API Reference

Usage and requests

Usage endpoints power the dashboard: token savings, request logs, billing estimates, and routing performance. Authenticate these requests with your Orqen API key. The /v1/account/... routes are the primary account API; the shorter /v1/usage/summary, /v1/usage/daily, and /v1/requests aliases are also supported for scripts.

Summary

curl https://api.orqen.app/v1/account/usage/summary \
  -H "Authorization: Bearer sk-orq-YOUR_KEY"

Daily usage

curl https://api.orqen.app/v1/account/usage/daily \
  -H "Authorization: Bearer sk-orq-YOUR_KEY"

Request log

curl "https://api.orqen.app/v1/account/requests?limit=50&offset=0" \
  -H "Authorization: Bearer sk-orq-YOUR_KEY"

Request detail

curl https://api.orqen.app/v1/account/requests/2ea9b5c8-... \
  -H "Authorization: Bearer sk-orq-YOUR_KEY"

Billing

curl https://api.orqen.app/v1/account/billing \
  -H "Authorization: Bearer sk-orq-YOUR_KEY"

Savings estimate

estimated_tokens_saved is computed from the difference between input and output tool counts multiplied by Orqen's conservative tokens-per-tool estimate. Provider savings use model pricing where available.