AimableDocs
DocsAPI Reference
POST/v1/knowledge/calculate_context

Enhance Knowledge

Retrieve context chunks and return structured response with sources. LEGACY: This endpoint is not scoped to a space. Use the space-scoped tool execution endpoint instead: POST /v1/spaces/{space_id}/tools/knowledge_search/execute TODO: Deprecate once all clients migrate to server-driven tool discovery.

Query Parameters

NameTypeRequiredDescription
questionstringRequired
collection_idsstringOptional
Default:
alphanumberOptional
Default: 0.75

Headers

NameTypeRequiredDescription
X-API-KeystringOptional

Request

curl -X POST '/api-proxy/v1/knowledge/calculate_context' \
  -H 'Authorization: Bearer <YOUR_TOKEN>'

Response

200

No response body documented

Error Responses