Skip to main content
POST
/
v1
/
knowledge
/
query
Query
curl --request POST \
  --url https://api.adapter.com/v1/knowledge/query \
  --header 'Content-Type: application/json' \
  --data '
{
  "question": "<string>",
  "sources": [
    "<string>"
  ]
}
'
{
  "answer": "<string>",
  "citations": [
    {
      "excerpt": "<string>",
      "source_id": "<string>",
      "source_type": "<string>",
      "title": "<string>"
    }
  ],
  "confidence": 123
}

Body

application/json
question
string
required

Natural language question (1–2000 chars).

Required string length: 1 - 2000
Example:

"What are our top blockers for Q1?"

sources
string[] | null

Filter by source types. Omit for all sources.

Response

Successful Response

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

Confidence score 0.0–1.0.