ClearMaas adds a small number of headers to every API response so you can inspect how your request was routed. They tell you which model served the call (in the same provider-prefixed format you’d pass asDocumentation Index
Fetch the complete documentation index at: https://docs.clearmaas.com/llms.txt
Use this file to discover all available pages before exploring further.
model); they don’t expose internal routing details like channel
identifiers or upstream backend URLs.
| Header | Present when | Example | Meaning |
|---|---|---|---|
X-Clear-Fallback-Level | extra_body.models caused a fallback | 1 | Zero-indexed position in your fallback chain that served the response. 0 means the primary model succeeded and fallback did not trigger. |
X-Clear-Fallback-Model | Fallback triggered (level > 0) | google/gemini-2.5-pro | The model that actually served the response after the primary failed. |
X-Clear-Router | You called clearmaas/{name} | auto | The name of the router you invoked. |
X-Clear-Resolved-Model | You called clearmaas/{name} | openai/gpt-4o-mini | The concrete model the router resolved to at request time. |
Retry-After | Response is 429 Too Many Requests | 5 | How many seconds to wait before retrying. |
Reading them in code
What ClearMaas does not expose
We deliberately do not add:- A
providerorrouted_toheader or response field - Any internal routing identifier or upstream backend URL
- Any header that tells a caller which upstream served the request