Skip to main content
POST
/
v1
/
knowledge
/
context
Context
curl --request POST \
  --url http://localhost:8080/v1/knowledge/context \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "force_graph": true,
  "max_tokens": 4000,
  "sources": [
    "<string>"
  ],
  "timezone": "America/New_York"
}
'
{
  "context": "<string>",
  "entities": [
    {
      "entity_type": "<string>",
      "id": "<string>",
      "name": "<string>"
    }
  ],
  "sources": [
    {
      "id": "<string>",
      "source_type": "<string>",
      "timestamp": "<string>",
      "title": "<string>"
    }
  ],
  "token_count": 1
}

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
query
string
required
Required string length: 1 - 2000
Example:

"what do we know about Acme Corp?"

force_graph
boolean | null

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

max_tokens
integer | null
default:4000
Required range: 100 <= x <= 16000
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

context
string
required
entities
EntityRef · object[]
required
sources
SourceRef · object[]
required
token_count
integer
required
Required range: x >= 0