debug

Trace Query

Execute a QA query with full tracing enabled.

Authentication Required: This endpoint requires a valid JWT token.

Debug Mode Required: Set ENABLE_DEBUG_ENDPOINTS=true in environment.

Returns the answer plus detailed trace data including:

  • All service method calls with timing
  • Knowledge base sources retrieved with scores
  • LLM metrics (tokens, model, latency)
  • Total request duration

Example response:

{
    "answer": "With Sun in your 10th house...",
    "trace": {
        "trace_id": "abc12345",
        "query": "What does Sun in 10th house mean?",
        "total_duration_ms": 1850,
        "services_called": [...],
        "kb_sources_used": [...],
        "llm_metrics": {...}
    }
}
post/api/debug/trace-query

Request

  • Base URL: https://api.erux.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.erux.ai/api/debug/trace-query
  • Auth: OAuth 2 (password, token URL token)

Request body

questionstring required

The astrological question to trace

systemstring

Astrological system: 'western' or 'vedic'

chart_dataobject nullable

Optional chart data. If not provided, uses a sample chart.

Response

Successful Response

answerstring required
traceobject required

Changes

No recorded changes to this operation across all 1 revision of this API.