Skip to main content
POST
/
v1
/
knowledge
/
query
Query
curl --request POST \
  --url http://localhost:8080/v1/knowledge/query \
  --header 'Content-Type: application/json' \
  --data '
{
  "question": "<string>",
  "force_graph": true,
  "sources": [
    "<string>"
  ],
  "timezone": "America/New_York"
}
'
{
  "answer": "<string>",
  "citations": [
    {
      "excerpt": "<string>",
      "source_id": "<string>",
      "source_type": "<string>",
      "title": "<string>"
    }
  ],
  "confidence": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.beta.adapter.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
question
string
required
Required string length: 1 - 2000
Example:

"What are our top blockers for Q1?"

force_graph
boolean | null

When true, require a graph snapshot. If none exists, trigger a build and return 503 instead of falling back to the LLM corpus path. The caller should retry until the graph is ready.

sources
string[] | null
timezone
string | null

IANA timezone identifier (e.g. "America/New_York") for resolving relative time references like "today" or "last week". Defaults to UTC.

Example:

"America/New_York"

Response

Successful Response

answer
string
required
citations
Citation · object[]
required
confidence
number
required