API ReferenceCorpus
Query a corpus for relevant content (end-user JWT). Tenant-scoped; x-api-key funds the retrieval.
Supports an optional `x-api-key` header (Bearer token format) for API-key-scoped access.
Authorization
EndUserAuth AuthorizationBearer <token>
End-user JWT minted via POST /v1/end-users/tokens, sent as Authorization: Bearer <token>.
In: header
Path Parameters
corpus_id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/end-user/corpus/string/query" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{ "chunks": [ { "content": "string", "score": 0, "source_id": "string" } ], "entities": [ { "description": "string", "name": "string", "score": 0, "type": "string" } ], "llm_response": "string", "metadata": { "high_level_keywords": [ "string" ], "low_level_keywords": [ "string" ], "query_mode": "string", "rerank_applied": true }, "references": [ { "content": "string", "source_id": "string" } ], "relationships": [ { "description": "string", "relationship": "string", "score": 0, "source": "string", "target": "string" } ], "result": "string"}{ "error": { "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "request_id": "string", "errors": [ { "field": "string", "message": "string" } ] }}{ "error": { "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "request_id": "string", "errors": [ { "field": "string", "message": "string" } ] }}