POST
/
v1
/
retrieval
Get Context
curl --request POST \
  --url https://api.staging.qontext.ai/v1/retrieval \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "workspaceId": "ws_123e4567-e89b-12d3-a456-426614174000",
  "knowledgeGraphId": "kg-681c0068-b589-4923-ac4a-73040fab7a45",
  "prompt": "What is the capital of France?",
  "limit": 5,
  "depth": 1
}'
{
  "summary": "France is a country in Western Europe."
}

Authorizations

X-API-Key
string
header
required

API key for the Qontext API

Body

application/json

Response

201
application/json

Context retrieved successfully

The response is of type object.