Skip to content
Orqen Docs

API Reference

API Reference

Base URL: https://api.orqen.app

Use your Orqen API key in the Authorization header for both chat completions and account APIs: Authorization: Bearer sk-orq-YOUR_KEY. The browser dashboard may use a session internally, but scripts and agents should use Orqen API keys.

Common response headers

x-orqen-tools-inputNumber of tools in the original request
x-orqen-tools-outputNumber of tools forwarded to the LLM
x-orqen-prune-ratiooutput/input (e.g. 8/32)
x-orqen-routingTool routing mode when set: semantic, keyword (omitted if no tools or no routing)
x-orqen-ctx-tokens-inEstimated context tokens before compression (when compression ran)
x-orqen-ctx-tokens-outEstimated context tokens after compression
x-orqen-ctx-tokens-savedContext tokens saved by compression (in − out)
X-Request-IDUnique request ID for tracing

Request logs may show additional routing values (passthrough, heuristic, intent_guided, passthrough_small_toolset, limit, and composite suffixes such as _ab_ctrl). See the payload optimization docs for pruning modes.