Total Human DesignDashboard|
Documentation

SAGE Query

POST/api/sageSAGE

Ask a natural-language question and receive an AI-synthesized answer backed by curated knowledge sources.

Legacy URL

Also available at /api/sage/query — the legacy URL is still fully supported.

Also available as GET /api/sage?q=your+question.

Request

Parameters

ParameterTypeRequiredDescription
querystringYesYour question (2–500 characters). For GET requests, use the q query parameter instead.
thd-api

Response

Response200

{
"success": true,
"data": {
  "answer": "Gate 1, known as The Creative, is located in the G Center...",
  "sources": ["Gate 1 - The Creative", "Channel 1-8 - Inspiration"],
  "domain": "hd"
},
"meta": {
  "query": "What is Gate 1 in Human Design?",
  "model": "grok-4.1-fast",
  "knowledge_chunks": 5
}
}
FieldDescription
data.answerAI-synthesized answer in Markdown format
data.sourcesArray of knowledge node titles used to generate the answer
data.domainDetected domain: "hd" (Human Design) or "astrology"
meta.queryThe original query string
meta.knowledge_chunksNumber of knowledge chunks retrieved

GET variant

For simple integrations, you can use a GET request with a query parameter:

GET /api/sage?q=What+is+Gate+1

Both q and query are accepted as parameter names.

Unit consumption

Each query consumes 5 units from your monthly quota, regardless of response length.

Errors

StatusErrorCause
400Query is requiredMissing query parameter
400Query must be between 2 and 500 charactersQuery too short or too long
503Knowledge service unavailableKnowledge database is temporarily down
502AI service errorLLM provider returned an error